Get signed-in user's stable id and email (app UI, backend correlation)
get_sessions_identityReturns the workspace end-user's userId and email for the authenticated session
token. Does not return Firebase UID or session payload.
userId is a stable, opaque identifier for this person across sessions and logins — it is
not derived from Firebase. Use it as the correlation key when your own backend needs to
link an external event (e.g. a billing provider webhook you receive and verify yourself)
back to this user. Do not use the session token or session id for this — sessions expire and
rotate, userId does not.
Email is best-effort from hosted login (Firebase email claim persisted on the user row).
When unknown, email is null. Browser SDK: secureflows-js fetchSessionIdentity(token) (≥ 0.1.15 for userId).
Source: GET /api/v1/sessions/identity
Requires auth.sessionToken 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 | No | ||
| query | No | ||
| params | No | ||
| connection | Yes |