Skip to main content
POST

Authorizations

Authorization
string
header
required

User PAT (cliq_tok_…, including session-scoped) or realm token (cliq_dt_…).

Body

application/json
type
enum<string>
required

user → cliq_tok_…; realm → cliq_dt_…; a2a → cliq_a2a_…; daemon_wire → short-lived RS256

Available options:
user,
realm,
a2a,
daemon_wire
name
string

Label shown in your token list. Up to 100 characters.

Maximum string length: 100
realm_ids
string[]

Required for type=realm (non-empty). User tokens omit this.

Minimum array length: 1
Minimum string length: 1
realm_id
string

a2a and daemon_wire: the realm.

Minimum string length: 1
aud
string

daemon_wire: the daemon the token is for.

run_id
string

daemon_wire: limit the token to this run.

action
enum<string>

daemon_wire: execute, cancel or access.

Available options:
execute,
cancel,
access
permissions
object

user and realm: what the token may do (domains: orgs and realms; access: read, write or admin per resource).

Response

The new token. user: { token, name, id, realm_ids }; realm: same; a2a: { type, token, bearer, realm_id, has_bearer, bearer_prefix }; daemon_wire: { type, token, expires_in, realm_id }.

ok
enum<boolean>
required

Always true on success.

Available options:
true
data
object
required