POST
Create a local API token

Authorizations

Authorization
string
header
required

Optional on loopback. Required for non-loopback when CLIQ_DISPATCH_PUBLIC_KEY is configured (dispatch JWT).

Body

application/json

Base message envelope shared by nearly all daemon POSTs

type
string
required

Message type discriminator

Allowed value: "token_create"
version
integer
required

Wire protocol version

id
string
required
Minimum string length: 1
timestamp
number
required

Unix epoch milliseconds

run_id
string | null
required
instance_id
string | null
required
payload
object
required

Response

200 - application/json

Reply envelope (ok or error)

Typical unary reply — prefer switching on type

type
string
required

Message type discriminator

Allowed value: "ok"
version
integer
required

Wire protocol version

id
string
required
Minimum string length: 1
timestamp
number
required

Unix epoch milliseconds

run_id
string | null
required
instance_id
string | null
required
payload
object
required