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
| Status | Code | Description |
|---|---|---|
| 404 | AVNOLOGY_AUTH_901 | Key not found |
Related
- Rotate API Key -- rotate with grace period instead
- SDK:
client.admin.revokeApiKey(serviceAccountId, keyId)(TypeScript)