Menu QaldyDocs

Personal access tokens

Who a token acts as, and retiring the token you are using. A token can never make another token. 5 routes, from the API’s own OpenAPI document.

5 routes. Every path starts at https://cloud-api.qaldy.com. Sign-in, tokens, errors and limits are on the overview.

Routes

MethodPathWhat it does
GET/​v1/​tokens/​selfWho the presented token acts as: workspace, person, role and scopes (tokens only)
DELETE/​v1/​tokens/​selfRevoke the token you present, at once (tokens only; qaldy logout)
GET/​v1/​workspaces/​{ws}/​tokensYour personal access tokens in this workspace (prefixes only)
POST/​v1/​workspaces/​{ws}/​tokensCreate a personal access token; its value is in this answer only
DELETE/​v1/​workspaces/​{ws}/​tokens/​{tokenId}Revoke one of your tokens at once

Reference

GET /v1/tokens/self

Who the presented token acts as: workspace, person, role and scopes (tokens only).

  • Authentication: the console’s session cookie.
  • Token: a personal access token or an MCP sign-in with the read scope.
  • Who: a personal access token (any scope)

Response 200

FieldTypeRequiredNotes
tokenobjectyes
token.idstringyesat least 1 characters
token.namestringyes1 to 60 characters
token.scopes"read" · "write" · "admin"[]yesup to 3 items
token.prefixstringyesat least 1 characters
token.last4stringyes4 to 4 characters
token.createdAtstring (date-time)yes
token.lastUsedAtstring (date-time) or nullyes
token.expiresAtstring (date-time) or nullyes
token.revokedAtstring (date-time) or nullyes
workspaceobjectyes
workspace.idstringyesat least 1 characters
workspace.namestringyesat least 1 characters
workspace.slugstringyesat least 1 characters
userobjectyes
user.idstringyesat least 1 characters
user.namestringyesat least 1 characters
user.emailstringyesat least 3 characters
role"owner" · "admin" · "builder" · "member" · "viewer"yes
oauthobject
oauth.grantIdstringyesat least 1 characters
oauth.clientNamestringyesat least 1 characters
oauth.clientKind"registered" · "metadata"yes
oauth.audiencestringyesat least 1 characters

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

DELETE /v1/tokens/self

Revoke the token you present, at once (tokens only; qaldy logout).

  • Authentication: the console’s session cookie.
  • Token: a personal access token or an MCP sign-in with the read scope.
  • Who: a personal access token (any scope)

Response 200

FieldTypeRequiredNotes
oktrueyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

GET /v1/workspaces/{ws}/tokens

Your personal access tokens in this workspace (prefixes only).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
idstringyesat least 1 characters
namestringyes1 to 60 characters
scopes"read" · "write" · "admin"[]yesup to 3 items
prefixstringyesat least 1 characters
last4stringyes4 to 4 characters
createdAtstring (date-time)yes
lastUsedAtstring (date-time) or nullyes
expiresAtstring (date-time) or nullyes
revokedAtstring (date-time) or nullyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/workspaces/{ws}/tokens

Create a personal access token; its value is in this answer only.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Request body (application/json)

FieldTypeRequiredNotes
namestringyes1 to 60 characters
scopes"read" · "write" · "admin"[]yesup to 3 items
expiresInDaysinteger or null1 to 365. default 90

Response 200

FieldTypeRequiredNotes
tokenobjectyes
token.idstringyesat least 1 characters
token.namestringyes1 to 60 characters
token.scopes"read" · "write" · "admin"[]yesup to 3 items
token.prefixstringyesat least 1 characters
token.last4stringyes4 to 4 characters
token.createdAtstring (date-time)yes
token.lastUsedAtstring (date-time) or nullyes
token.expiresAtstring (date-time) or nullyes
token.revokedAtstring (date-time) or nullyes
secretstringyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

DELETE /v1/workspaces/{ws}/tokens/{tokenId}

Revoke one of your tokens at once.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters
tokenIdpathstringyes1 to 64 characters

Response 200

FieldTypeRequiredNotes
oktrueyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

Type to search. Up and down to choose, Enter to open, Esc to close.