Skip to main content
POST
Rotate API token

Authorizations

Authorization
string
header
required

Bearer token authentication. Supports two token types:

  • JWT Access Token — obtained via POST /v1/auth/login
  • Personal Access Token (PAT) — created via POST /v1/api-tokens, format: cmnd_<tokenId>.<secret>

Path Parameters

id
string
required

The token ID to rotate

Response

Token rotated successfully

token
string

The token secret (shown only once). Format: cmnd_.

Example:

"cmnd_abc123.sk_xxxxxxxxxxxxxxxxxxxx"

id
string
Example:

"abc123"

name
string
Example:

"CI/CD Pipeline Token"

scopes
string[]
Example:
created_at
string<date-time>
expires_at
string<date-time>