Appearance
Key not found
HTTP 401 key_not_found
What it means
TxGold doesn't know the key in TxG-Key-Id, or it belongs to the other environment (Sandbox and Production keys are separate).
What to do
Check that you're using the key file for this environment, and that the key is still listed for the integration in the business portal.
The response
json
HTTP/1.1 401
Content-Type: application/problem+json
{
"type": "https://docs.txgold.money/errors/key_not_found",
"title": "Key not found",
"status": 401,
"code": "key_not_found",
"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.
