Keys
Revoke one credential belonging to the current account
Requires scope account:manage.
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
| Name | In | Type | Description |
|---|---|---|---|
| keyIdrequired | path | string |
Errors
| Code | Meaning |
|---|---|
| 400 | Credential is unknown or belongs to another account. |
| 401 | Invalid or missing API key. |
| 403 | The 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"
}
}