Create Client Token

Create an ephemeral API token for client sessions.

post/v1/client/tokens

Request

Headers

x-api-keystring required

API key for authentication

Request body

expiresIninteger nullable

Seconds until the token expires (default 60)

allowedModelsstring[] nullable

Restrict which models this token can access (max 20)

allowedOriginsstring[] nullable

Restrict which web origins this token can be used from (max 20)

metadataobject nullable

Response

Successful Response

apiKeystring required
expiresAtstring required
permissionsobject nullable
constraintsobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.