Skip to main content
DELETE
/
v1
/
user
/
tokens
/
{id}
Revoke a personal access token
curl --request DELETE \
  --url https://api.cnap.tech/v1/user/tokens/{id} \
  --header 'Authorization: Bearer <token>'
{
  "error": {
    "code": "not_found",
    "message": "Resource not found",
    "param": "name",
    "suggestion": "Run `cnap clusters list` to see available clusters",
    "details": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://dash.cnap.tech/account/tokens

Path Parameters

id
string
required

Token ID

Response

Token revoked