Create API token
API Tokens
Create API token
Create a new Personal Access Token (PAT) for programmatic API access.
The token secret is returned only once in the response — store it securely.
Token format: cmnd_<tokenId>.<secret>
Maximum 25 active tokens per user. Maximum expiry: 365 days.
POST
Create API token
Authorizations
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>
Body
application/json
Response
Token created successfully
The token secret (shown only once). Format: cmnd_.
Example:
"cmnd_abc123.sk_xxxxxxxxxxxxxxxxxxxx"
Example:
"abc123"
Example:
"CI/CD Pipeline Token"
Example:
[
"chat:write",
"models:read",
"knowledgebases:read"
]
