v1

latestOpenAPI 3.1.02026-07-26202332.6 KB

Create Client Token

Create an ephemeral API token for client sessions.

post/v1/client/tokens

Headers

x-api-keystring required

API key for authentication

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
All 20 operations