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: objectrequired
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.
values- live
- test
- namespaceType: string
Key Namespace this token is scoped to.
- orgType: string
Id Pattern: ^org_[0-9a-z]{26}$Organization ID this token can act on. Prefixed lowercase ULID, e.g.
org_01jv8m7qfj6xj9gkz7a4s2h8e.
- tokenenum
Type const:Bearerrequiredvalues- Bearer
