Skip to main content
DELETE
/
v1
/
api-keys
/
{key_id}
curl -X DELETE "https://api.danubeai.com/v1/api-keys/abc123" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
{
  "message": "API key revoked successfully"
}

Overview

Revokes an API key by soft-deleting it (setting is_active to false). The key is immediately invalidated and any subsequent requests using it will be rejected. Auth: Requires JWT token (Authorization: Bearer <token>).

Path Parameters

key_id
string
required
The API key UUID to revoke

Response

message
string
Confirmation message

Example

curl -X DELETE "https://api.danubeai.com/v1/api-keys/abc123" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
{
  "message": "API key revoked successfully"
}