TokenExchangeResponse
Successful response from POST /v1/auth/token. For the api_key grant, subject.type is always service_account.
- accessType: string
Token requiredShort-lived JWT (1 hour) for use in the
Authorizationheader. - expiresType: stringFormat: date-time
At requiredISO-8601 timestamp at which the token expires.
- expiresType: integer
In requiredToken lifetime in seconds.
- scopesType: array string[]required
Permission scopes carried by this token; mirrors the API key's scopes.
- subjectType: object · Subjectrequired
Identifies the entity (service account, user, or embed session) the token represents.
- idType: stringrequired
Stable ID for the subject (UUID).
- typeType: stringenumrequiredvalues
- user
- service
_account - embed
- modeType: stringenum
Mode of the namespace this token operates in. Absent on org-scoped tokens.
values- live
- test
- namespaceType: string
Key Namespace this token is scoped to. Absent on org-scoped tokens.
- orgType: string
Id Pattern: ^org_[0-9a-z]{26}$Organization ID this token can act on. Prefixed lowercase ULID, e.g.
org_01jv8m7qfj6xj9gkz7a4s2h8e. - scopeType: stringenum
Level Credential class the token authorizes against.
namespacetokens act within a single namespace;orgtokens act at the organization level and are rejected at any:namespaceKeyURL.values- namespace
- org
- tokenenum
Type const:Bearerrequiredvalues- Bearer
