Keys

Revoke one credential belonging to the current account

Requires scope account:manage.

DEL/api/v1/keys/{keyId}Try it
iNote
Requires a key with the account:manage scope, sent as Authorization: Bearer <api-key>. Keys missing the scope are rejected with 403 — see Authentication.

Path parameters

NameInTypeDescription
keyIdrequiredpathstring

Errors

CodeMeaning
400Credential is unknown or belongs to another account.
401Invalid or missing API key.
403The API key lacks the required scope for this operation.
cURL
curl -X DELETE https://gateway.kepto.xyz/api/v1/keys/<keyId> \
  -H "Authorization: Bearer <api-key>"
200 · application/json
{
  "revoked": true,
  "key": {
    "id": "string",
    "name": "string",
    "prefix": "string",
    "scopes": [
      "account:manage"
    ],
    "createdAt": 0,
    "lastUsedAt": 0,
    "revokedAt": 0,
    "rotatedFrom": "string"
  }
}