putty
API ReferenceAccount

Revoke an API key

Soft-deletes the key: the row stays so the audit trail is intact, but the SHA-256 hash is dropped from the verify index, so every future MCP request that presents the key receives 401. The endpoint returns 404 when the key does not exist or is owned by a different user; it does not differentiate, so it cannot be used to probe other users' key ids.

DELETE
/account/api-keys/{id}

Soft-deletes the key: the row stays so the audit trail is intact, but the SHA-256 hash is dropped from the verify index, so every future MCP request that presents the key receives 401. The endpoint returns 404 when the key does not exist or is owned by a different user; it does not differentiate, so it cannot be used to probe other users' key ids.

Authorization

bearerAuth
AuthorizationBearer <token>

A bearer token. The Account routes accept a Privy access token; the MCP transport accepts an sk- API key issued by POST /account/api-keys.

In: header

Path Parameters

id*string

The id of the key to revoke.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/account/api-keys/string"
Empty