llms.txt

Error codes

Every X9 API and MCP error has the same shape and links here from its docs field. The list below is every code the API and MCP sources can raise; an agent can switch on it.

Shape

{
  "ok": false,
  "error": {
    "code": "OFFER_GONE",
    "message": "offer not available now",
    "retryable": false,
    "retry_after_s": null,
    "next_actions": [
      {
        "tool": "search_offers",
        "why": "pick a live offer"
      }
    ],
    "docs": "https://x9si.com/errors/OFFER_GONE"
  }
}
  • next_actions names the tool or call to make next, why, and sometimes an argument hint. Read it before anything else.
  • retryable says whether the same call can succeed later; retry_after_s says when, if known.
  • message is a sentence for the case at hand; switch on code.

All codes

30 codes. HTTP status as raised by the API code. A code without a status comes only from the MCP server, as a tool result.

Generated from /openapi.json and the API and MCP sources.