Skip to main content
POST
Create agent token (API key holders only)

Authorizations

Authorization
string
header
required

API key (sk_sandbox_* / sk_test_* / sk_live_*) or Agent token (at_* / at_dlg_*)

Headers

Idempotency-Key
string

Unique key for idempotent request handling

Path Parameters

id
string
required

Body

application/json
label
string
scopes
string[]
expiresInDays
integer
Required range: x >= 1

Response

Token created. Store the token value securely.

id
string
token
string

Plaintext token. Only returned on creation.

agentId
string
scopes
string[]
expiresAt
string<date-time> | null
hint
string