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

Shell
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

200 OK
HTTP/1.1 204 No Content

Body

expected_generationintegerrequired

Response

204 No Content.

Status codes

  • 401identity_unauthorized API key presented.
  • 409api_key_generation_conflict Generation mismatch.