Skip to main content
DELETE
/
api
/
v1
/
keys
/
{keyId}
Revoke with a reason
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.

Authorizations

sb-access-token
string
cookie
required

Session cookie (for API key management endpoints)

Path Parameters

keyId
string<uuid>
required

API key ID to revoke

Example:

"00000000-0000-4000-8000-000000000123"

Body

application/json
reason
string

Reason for revocation (optional)

Response

API key revoked

success
boolean
Example:

true

message
string
Example:

"API key revoked successfully"