API Reference / API Keys

Revoke API key

delete https://api.intelig.ai/api/v1/intelig/api-keys/{id}

Auth: Authorization: ApiKey <key> (an API key sent as Bearer is rejected) or Authorization: Bearer <jwt> for a dashboard session. operationId: revokeApiKey

Revokes an API key, immediately disabling it

Example request

curl -X DELETE "https://api.intelig.ai/api/v1/intelig/api-keys/1" \
  -H "Authorization: ApiKey $INTELIG_API_KEY"

Path parameters

NameTypeRequiredDescription
id integer (int64) yes

Response 200

application/json · ApiResponseApiKeyResponseDto

FieldTypeDescription
success boolean
message string
data ApiKeyResponseDto

Status codes

  • 200 — API key revoked successfully
  • 400 — API key is already revoked
  • 401 — User is not authenticated
  • 403 — User does not have access to Settings pillar
  • 404 — API key not found
  • 429 — —

Every response is wrapped in { success, message, data }. A 4xx means the request is wrong — do not retry it unchanged. A 429 carries Retry-After in seconds.