Skip to main content
POST
Create Client Token

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
required

API key for authentication

Body

application/json
expiresIn
integer | null

Seconds until the token expires (default 60)

allowedModels
string[] | null

Restrict which models this token can access (max 20)

allowedOrigins
string[] | null

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

constraints
TokenConstraints · object | null

Operational limits for the token

metadata
Metadata · object | null

Response

Successful Response

apiKey
string
required
expiresAt
string
required
permissions
Permissions · object | null
constraints
Constraints · object | null