Delete API Token
Revoke and remove a specific API Token using its unique identifier. To obtain the token ID, utilize the List API Tokens endpoint.
HTTP Request
DELETE {API_URL}api-tokens/{id}
Path Parameters
| Parameter | Requirement | Type | Description |
|---|---|---|---|
id | Required | string | Unique identifier of the API Token to be revoked |
Response Structure
status boolean
Operation result indicator. Returns true for successful execution, false when encountering an error.
message string
Descriptive response indicating the outcome of the token deletion request.
Implementation Example
Request
bash
curl -X DELETE '{API_URL}api-tokens/{id}' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'refresh-token: {REFRESH_TOKEN}' \
-H 'Content-Type: application/json'Response
json
{
"status": true,
"message": "API Token successfully revoked"
}
