Delete API key
Deletes an API key on an account.
Endpoint
POST /api/v1/api-keys/{id}/delete
Authentication
Signing material is carried in the X-PUBLIC-KEY, X-SIGNATURE, and X-REQUEST-ID headers —
see [SessionSigAuth]. Signed message:
request_id (16) || account_id (8 LE) || api_key_id (16 raw bytes). The api_key_id is read
from the URL path; the request_id’s embedded timestamp must fall inside the OG’s skew window.
Reach
Mirrors the visibility rule of handle_list_api_keys: the caller’s session must reach the
target key’s scope. Pinned target → session must reach that subaccount; unpinned target →
caller must hold an admin-rooted, unpinned session.
Returns
200 OKwithDeleteApiKeyResponse(id, name, server-sidedeleted_attimestamp).400 Bad Requestif a signing header is malformed or therequest_id’s embedded timestamp falls outside the skew window.401 Unauthorizedif a signing header is missing, signature verification fails, the session is invalid/expired, or the caller’s session does not reach the target key’s scope.404 Not Foundif the target key does not exist.500 Internal Server Errorif an internal error occurs while deleting the key; the key record is then left untouched, so a retry is safe.
Authorizations
Base64 ed25519 session public key. Part of the SessionSig triple; not an API key.
UUIDv7 replay nonce; its embedded timestamp must fall inside the skew window [now-15s, now+5s]. Part of the SessionSig triple.
Base64 ed25519 signature over the canonical request message. Part of the SessionSig triple.
Path Parameters
Identifier of the API key to delete
Body
Request payload for POST /api-keys/{id}/delete. Signing material lives in the
X-PUBLIC-KEY / X-SIGNATURE / X-REQUEST-ID headers ([SessionSigAuth]).
Account that owns the key being deleted.
x >= 012345
Response
API key deleted
Confirmation that an API key was deleted.
Server-side timestamp at which the key was deleted.
"2026-06-23T16:00:00.000Z"
Identifier of the deleted key.
"0190b6c2-7e4a-7c3b-9f21-2b6a1c4e5d8f"
User-supplied label the deleted key carried.
"trading-bot"