API reference

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

idstringrequired

API key id.

Response

Returns 200 with the following body.

revokedbooleanrequired
idstringrequired

Example

{
  "revoked": false,
  "id": "a1b2c3d4-0000-4000-8000-000000000000"
}

Errors

Failures use the standard error envelope. Branch on code, never on the message.

StatusCodeWhen it happens
400invalid_requestThe request body or query string failed validation. The message names the offending field.
401invalid_api_keyThe key does not exist, was revoked, or is malformed. Keys start with cdyn_live_.
404not_foundThe resource does not exist inside the resolved profile.
429rate_limit_exceededToo many requests for this key. Honour the Retry-After header before retrying.
500internal_errorSomething failed on our side. Retry with the same Idempotency-Key; report the requestId if it persists.