Errors / revoked_api_key

API key revoked or expired

HTTP 401authenticationrevoked_api_key

The key was real. It is not usable any more.

What to do

Mint a new one. Revocation is immediate and cannot be undone — that is the point of it — so a key revoked in error is replaced rather than restored.

What it looks like

{
  "error": {
    "type": "authentication",
    "code": "revoked_api_key",
    "message": "…",
    "doc_url": "https://docs.textmast.com/errors/revoked_api_key",
    "request_id": "req_01j8xk2p7n4qc3m9v0wz5bt6ay"
  }
}

Quote the request_id if you get in touch. It is on every response, including this one, and it turns a support email into a single log query rather than an archaeology exercise.