Reference
View as MarkdownTokens API
API tokens.
3 operations. Every call needs a session cookie or an Authorization: Bearer nct_… token unless marked Public. Conventions, errors and scopes
/tokensList API tokens
Response 200 · OK · application/json
ListTokensOutputBody
- Token[] | nullrequired
Errors
401Unauthorized403Forbidden500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/tokensCreate an API token
Request body · application/json · required
CreateTokenInputBody
- allowProductionWithoutApprovalbooleanMCP calls with this token skip the human approval production changes otherwise need. Owner or Admin only; audited. Off by default.
- expiresAtstring (date-time)
- namestringrequired
- projectIdsstring[] | nullRestrict the token to these projects; omit for all projects
- requireProductionApprovalbooleanCalls with this token on production environments need a human approval first. REST tokens are exempt by default so CI and deploy scripts keep working.
- scopesstring[] | nullrequiredprojects:read, logs:read, projects:write, deployments:write, deployments:rollback, servers:read, servers:write, proxy:write, admin
Response 201 · Created · application/json
CreatedToken
- allowProductionWithoutApprovalbooleanrequiredMCP calls with this token skip the production approval. Set by an Owner or Admin when the token is created.
- createdAtstring (date-time)required
- expiresAtstring (date-time)
- idstringrequired
- lastUsedAtstring (date-time)
- namestringrequired
- prefixstringrequiredFirst 8 characters after nct_, for identification
- projectIdsstring[] | nullAbsent when the token can access all projects
- requireProductionApprovalbooleanrequiredCalls with this token on production environments need a human approval first (REST tokens are exempt by default so CI keeps working).
- revokedAtstring (date-time)
- scopesstring[] | nullrequired
- tokenstringrequiredThe raw API token. Shown once; store it now.
Errors
401Unauthorized403Forbidden422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/tokens/{id}Revoke an API token
| Parameter | In | Type | Description |
|---|---|---|---|
idrequired | path | string |
Response 204 · No Content
No body.
Errors
401Unauthorized403Forbidden404Not Found422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.