Appearance
Key expired
HTTP 401 key_expired
What it means
The key passed the expiry date set when it was added, or an Admin revoked it in the business portal.
What to do
Add a new key to the integration in the business portal and switch to it. Add the new one before the old one expires to rotate without downtime.
The response
json
HTTP/1.1 401
Content-Type: application/problem+json
{
"type": "https://docs.txgold.money/errors/key_expired",
"title": "Key expired",
"status": 401,
"code": "key_expired",
"detail": "…",
"requestId": "7219af94e39d"
}Branch on code, never on title or detail: the code never changes once published, and the text may. Quote requestId to TxGold support. See all errors.
