Skip to main content
POST
Create agent bootstrap token

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Requires a human organization member authenticated with a bearer token. API keys cannot create sponsor tokens.

label
string | null

Optional label carried into the issued agent API key.

scopes
string[]

Optional requested scopes; self-serve sponsor tokens are limited to read:sec.

ttlSeconds
integer

Optional lifetime in seconds. The service clamps the effective value to 60 through 86,400 seconds.

Required range: 1 <= x <= 86400

Response

Sponsor token issued. The secret is returned once.

object
string
required
Allowed value: "agent_bootstrap_token"
id
string
required
orgId
string
required
actorPrincipalId
string
required
label
string | null
required
tokenPrefix
string
required
scopes
string[]
required
livemode
boolean
required
expiresAt
string<date-time>
required
usedAt
string<date-time> | null
required
usedByPrincipalId
string | null
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
secret
string
required

One-time sponsor-token secret. Store only long enough to send it to the bootstrap agent.

requestId
string
required