Skip to main content

Overview

Revoke an API key so it can no longer be used for authentication or requests.

DELETE /api/v1/api-keys/

Purpose: revoke an API key. Path parameter:
  • id (UUID)
Example request:
curl -X DELETE \
  'https://api.example.com/api/v1/api-keys/550e8400-e29b-41d4-a716-446655440000'

Response

Status: 200 OK Example response:
{ "message": "API key revoked successfully" }
Errors:
  • 400 invalid UUID.
  • 401 unauthorized.
  • 404 key not found.
  • 500 internal error.