x-cpod-domain: auth
Auth
Sign-in, token lifecycle, password reset, and invites. Not a data domain — the access layer every SDK call rides on.
Try in explorer
client.authSession
An issued access + refresh token bundle for a user.
REST path
/api/v1/sessionsOperations
meloginvalidaterefreshrevokechangePasswordforgotPasswordresetPasswordcreateInviteacceptInviteclientCredentialsSDK
// list — returns only your records; add filters/search:
await client.auth.sessions.list()| Field | Type | Description |
|---|---|---|
| token* | string | Short-lived access token (JWT). |
| refresh_token | string | Long-lived refresh token. |
| sub* | uuid | User id. |
| tenant_id* | uuid | — |
| user_name* | string | — |
| roles* | json | string[] of role names. |
| expires_at | date-time | Unix timestamp when the access token expires. |
| refresh_expires_at | date-time | Unix timestamp when the refresh token expires. |