DELETE
/v1/api-keys/{id}Revoke an API key
Deactivates a key immediately. A key cannot revoke itself.
Required permission: `connections:write`
- Base URL
- https://api.cutedyno.com
- Permission
connections:write- Idempotency
- Not applicable. This request has no side effects worth deduplicating.
Request
curl -X DELETE "https://api.cutedyno.com/v1/api-keys/KEY_ID" \
-H "Authorization: Bearer $CUTEDYNO_API_KEY"Path parameters
idstringrequiredAPI key id.
Response
Returns 200 with the following body.
revokedbooleanrequiredidstringrequiredExample
{
"revoked": false,
"id": "a1b2c3d4-0000-4000-8000-000000000000"
}Errors
Failures use the standard error envelope. Branch on code, never on the message.
| Status | Code | When it happens |
|---|---|---|
| 400 | invalid_request | The request body or query string failed validation. The message names the offending field. |
| 401 | invalid_api_key | The key does not exist, was revoked, or is malformed. Keys start with cdyn_live_. |
| 404 | not_found | The resource does not exist inside the resolved profile. |
| 429 | rate_limit_exceeded | Too many requests for this key. Honour the Retry-After header before retrying. |
| 500 | internal_error | Something failed on our side. Retry with the same Idempotency-Key; report the requestId if it persists. |