Skip to content

Revoke an API token

DELETE
/api/v2/organizations/{organization}/tokens/{token_id}
curl --request DELETE \
--url https://dashboard.quantcdn.io/api/v2/organizations/test-org/tokens/42 \
--header 'Authorization: Bearer <token>'
organization
required
string

Organization identifier

Example
test-org
token_id
required
integer

Token ID to revoke

Example
42

Token revoked successfully.

Media typeapplication/json
object
message
string
Example
{
"message": "Token revoked successfully"
}

Access is forbidden.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
Example
{
"message": "The requested resource was not found",
"error": true
}

Token not found.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
Example
{
"message": "The requested resource was not found",
"error": true
}