Skip to main content

DELETE /api-keys/

This endpoint permanently revokes and deletes an API key. Once revoked, the key can no longer be used to authenticate requests.
This action is irreversible. Once an API key is revoked, it cannot be recovered.
You cannot revoke the API key that is currently being used to make the request.

Path Parameters

keyId
string
required
The ID of the API key to revoke.

Response

success
boolean
Whether the key was successfully revoked.
message
string
A status message.
curl -X DELETE https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "message": "API key revoked successfully"
}