Keys

List credentials and audit activity for the current account

Requires scope account:manage. Secret values are never returned.

GET/api/v1/keysTry 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.

Errors

CodeMeaning
401Invalid or missing API key.
403The API key lacks the required scope for this operation.
cURL
curl https://gateway.kepto.xyz/api/v1/keys \
  -H "Authorization: Bearer <api-key>"
200 · application/json
{
  "keys": [
    {
      "id": "string",
      "name": "string",
      "prefix": "string",
      "scopes": [
        "account:manage"
      ],
      "createdAt": 0,
      "lastUsedAt": 0,
      "revokedAt": 0,
      "rotatedFrom": "string"
    }
  ],
  "audit": [
    {
      "type": "key.created",
      "keyId": "string",
      "actorKeyId": "string",
      "at": 0
    }
  ]
}