Keys
List credentials and audit activity for the current account
Requires scope account:manage. Secret values are never returned.
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
| Code | Meaning |
|---|---|
| 401 | Invalid or missing API key. |
| 403 | The 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
}
]
}