zoxaAI
Homepage
API ReferenceAPI Keys

Revoke an API key

DELETE /api/v1/user/api-keys/{api_key_id} — archive a key. Effective immediately.

DELETE /api/v1/user/api-keys/{api_key_id}

Archive a key. Any request using the key immediately returns 401.

Response

{ "success": true, "message": "API key archived successfully" }

Examples

curl -X DELETE https://dashboard.zoxa.ai/api/v1/user/api-keys/7 \
  -H "X-API-Key: zsk_..."

Errors

StatusdetailWhen
404"API key not found"Id doesn't belong to your org.
500"Failed to archive API key"DB write failed.

On this page