Account
Revoke the API key
DELETE/v1/account/api-key
Revokes the current key and any key in its grace window. Immediate.
Dashboard session · API keys refused.
Request
curl -fsS -X DELETE "$API/v1/account/api-key" \
-H "Authorization: Bearer $DASHBOARD_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "expected_generation": 4 }'Response
HTTP/1.1 204 No ContentBody
expected_generationintegerrequired
Response
204 No Content.
Status codes
- 401
identity_unauthorizedAPI key presented. - 409
api_key_generation_conflictGeneration mismatch.