Skip to main content
POST
/
api
/
v1
/
api-keys
/
{id}
/
delete
Delete API key
curl --request POST \
  --url https://staging.zerolatencylabs.com/api/v1/api-keys/{id}/delete \
  --header 'Content-Type: application/json' \
  --header 'X-PUBLIC-KEY: <api-key>' \
  --header 'X-REQUEST-ID: <api-key>' \
  --header 'X-SIGNATURE: <api-key>' \
  --data '
{
  "account_id": 12345
}
'
{
  "deleted_at": "2026-06-23T16:00:00.000Z",
  "id": "0190b6c2-7e4a-7c3b-9f21-2b6a1c4e5d8f",
  "key_name": "trading-bot"
}

Authorizations

X-PUBLIC-KEY
string
header
required

Base64 ed25519 session public key. Part of the SessionSig triple; not an API key.

X-REQUEST-ID
string
header
required

UUIDv7 replay nonce; its embedded timestamp must fall inside the skew window [now-15s, now+5s]. Part of the SessionSig triple.

X-SIGNATURE
string
header
required

Base64 ed25519 signature over the canonical request message. Part of the SessionSig triple.

Path Parameters

id
string<uuid>
required

Identifier of the API key to delete

Body

application/json

Request payload for POST /api-keys/{id}/delete. Signing material lives in the X-PUBLIC-KEY / X-SIGNATURE / X-REQUEST-ID headers ([SessionSigAuth]).

account_id
integer<int64>
required

Account that owns the key being deleted.

Required range: x >= 0
Example:

12345

Response

API key deleted

Confirmation that an API key was deleted.

deleted_at
string<date-time>
required

Server-side timestamp at which the key was deleted.

Example:

"2026-06-23T16:00:00.000Z"

id
string<uuid>
required

Identifier of the deleted key.

Example:

"0190b6c2-7e4a-7c3b-9f21-2b6a1c4e5d8f"

key_name
string
required

User-supplied label the deleted key carried.

Example:

"trading-bot"