Reuse active session or create one
post_sessions_get_or_createVerifies Firebase ID token. If an active session already exists for
(workspaceName, Firebase UID, app_id), returns a new sessionToken JWT for the most
recently created matching row (touches activity; does not create a duplicate session). The request
payload is ignored on reuse — it is applied only when a new session row is created. Prefer a
dedicated app_id per integration surface, or revoke old sessions, if you need a fresh payload.
Otherwise behaves like POST /sessions (new row + default 1 hour TTL).
If the Firebase token includes email, the server best-effort persists or backfills it on the
workspace end-user row (including when reusing an existing session). Intended for integrators that
mirror hosted login session reuse.
Source: POST /api/v1/sessions/get-or-create
Requires auth.firebaseToken and forwards it as a Bearer token.
Prefer connection.workspaceName and connection.appId as stable config instead of generating identity fields dynamically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | ||
| body | Yes | ||
| query | No | ||
| params | No | ||
| connection | Yes |