Avnology ID
API ReferenceService Accounts

Revoke API Key

Immediately revoke an API key, preventing any further use.

Endpoint

DELETE /v1/service-accounts/{id}/keys/{key_id}

Base URL: https://api-id.avnology.net

Authentication: API Key or OAuth token with admin:service-accounts:write scope

Request

curl -X DELETE "https://api-id.avnology.net/v1/service-accounts/sa_3c2d1e0f/keys/key_abc123" \
  -H "Authorization: Bearer ak_live_..."

Response

Success (204 No Content)

Errors

StatusCodeDescription
404AVNOLOGY_AUTH_901Key not found
  • Rotate API Key -- rotate with grace period instead
  • SDK: client.admin.revokeApiKey(serviceAccountId, keyId) (TypeScript)