Revoke Organization Token
Revoke an organization member token.
Quick Navigation
Endpoint
DELETE /api/v1/organizations/{org_id}/tokens/{token_id}
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org_id | integer | Yes | Organization ID |
token_id | integer | Yes | Token ID |
Response
Success (200)
{
"success": true,
"data": {
"message": "Token revoked successfully"
},
"message": "Token revoked successfully"
}
Error (404)
{
"success": false,
"error": {
"code": "token_not_found",
"message": "Token not found"
}
}
Error (403)
{
"success": false,
"error": {
"code": "permission_denied",
"message": "Permission denied"
}
}
Features
- Token owner can revoke their own token
- Organization administrators can revoke any member token
- Token will be immediately invalidated
- Cannot be undone
Example
curl -X DELETE "https://api.rivergen.com/api/v1/organizations/1/tokens/1" \
-H "Authorization: Bearer <access_token>"
Related Endpoints
- List Org Tokens - List all tokens
- Create Org Token - Create new token