DELETE/v1/account/api-key
Revoke the key that sends this request.
Request
DELETE /v1/account/api-key. Needs x-api-key. No parameters.
curl -X DELETE "$API/v1/account/api-key" -H "x-api-key: $KEY"Response
204 No Content. The key stops working at once; the next call with it answers 401 unauthorized.
Errors
| HTTP | Code | Extra fields | When |
|---|---|---|---|
| 401 | unauthorized | — | Missing or invalid x-api-key, including a key already revoked |
| 403 | geo_blocked | — | Request from a blocked region |
| 429 | rate_limited | retryAfter | Over the limit; see Rate limits |
Notes
- A key can only revoke itself. Minting and rotating need a session, so a leaked key cannot lock the owner out. See Authentication.
- To get a new key, sign in again and call
POST /account/api-key, or press Generate key at API access.
