Revokes an MCP token owned by the authenticated user in the specified organization. Revocation is a soft deletion: the token record is retained and its revoked_at timestamp is set.
https://api.doboard.com/{account_id}/mcp_token_delete
account_id identifies the organization associated with the user session. The same endpoint path is used on https://api-next.doboard.com.
POST only. Send parameters as application/x-www-form-urlencoded. A raw JSON request body is not parsed by this endpoint.
session_id.REGULAR, PROJECT_MANAGER, and ADMIN. Guests are not allowed.user_id does not change the authenticated owner.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
session_id |
string | Yes | — | Valid user session for this organization. |
token_id |
unsigned integer | Yes | — | Identifier of a token owned by the user in this account. Range: 1–4,294,967,295. |
There is no default token. Omitting token_id, sending an empty string, an array, zero, a negative number or an out-of-range value is invalid. Send the numeric ID, not the secret token or its hash.
Revoking an active token releases its slot in the owner's allowance of 10 active tokens per organization. Revoked and expired tokens do not count toward that allowance.
Revocation does not change expires_at or issue a replacement token. To create another token, call mcp_token_add; its expiration must be in the future and within 90 days.
Regular user-session calls to token creation and revocation normally share the API's IP-based write-request quotas with other write methods:
| Window | Shared request limit |
|---|---|
| 1 minute | 80 |
| 1 hour | 800 |
| 1 day | 3,200 |
These are shared request quotas, not the limit on how many tokens can exist. Server-side exemptions may apply. When this regular-request limiter rejects a call, the current API returns HTTP 500 with error_no=429 and error_message="Too Many Requests".
The MCP connection's own request limits are separate from these session-authenticated management calls.
The IDs are fictional. Replace YOUR_SESSION_ID with a real session and use a token owned by that user.
POST /42/mcp_token_delete HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&token_id=9001
Equivalent cURL request:
curl --request POST 'https://api.doboard.com/42/mcp_token_delete' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'session_id=YOUR_SESSION_ID' \
--data-urlencode 'token_id=9001'
HTTP 200 on success:
{
"data": {
"token_id": 9001,
"operation_status": "SUCCESS"
}
}
| Field | Type | Description |
|---|---|---|
data.token_id |
integer | Identifier of the revoked token. |
data.operation_status |
string | SUCCESS. |
| HTTP Code | error_no |
Condition |
|---|---|---|
400 |
Not included in method validation responses | Missing or invalid token_id. |
401 |
401 |
Missing or invalid session. |
403 |
403 |
User role is not permitted, or an MCP credential is used to call the management endpoint. |
404 |
404 |
Token does not exist or does not belong to this user/account. |
405 |
0 in the current generic response |
Request method is not POST. |
500 |
429 in the shared regular-request limiter |
The applicable global API request quota is exceeded. |
500 |
May vary by failure path | Database or other internal failure. |
Example validation response:
{
"data": {
"operation_status": "FAILED"
},
"error_message": "token_id is required."
}
Invalid token_id. is returned for an invalid supplied identifier.
revoked_at and updated_at using MySQL NOW(). The database row is not physically deleted.