await fetch('/api/v1/keys/<uuid>', {
method: 'DELETE',
credentials: 'include',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ reason: 'rotation: 2026-Q2 quarterly key refresh' }),
});{
"success": true,
"message": "API key revoked successfully"
}Revokes an API key — requests made with it from this point on return 401 invalid_api_key. This action cannot be undone: revoked keys cannot be reactivated; create a new key instead.
The optional reason field is stored for audit purposes and shown in the dashboard. Use it to track why keys were revoked (compromise, rotation, employee departure, etc.).
await fetch('/api/v1/keys/<uuid>', {
method: 'DELETE',
credentials: 'include',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ reason: 'rotation: 2026-Q2 quarterly key refresh' }),
});{
"success": true,
"message": "API key revoked successfully"
}Documentation Index
Fetch the complete documentation index at: https://docs.socdefenders.ai/llms.txt
Use this file to discover all available pages before exploring further.
Session cookie (for API key management endpoints)
API key ID to revoke
"00000000-0000-4000-8000-000000000123"
Reason for revocation (optional)