tier, limit, hint, etc.) when useful.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Standard error response shape + common error codes.
{ "error": "human-readable explanation" }
tier, limit, hint, etc.) when useful.
| Code | Meaning | Common causes |
|---|---|---|
| 200 | OK | |
| 400 | Bad Request | Invalid query parameters, unsupported period, malformed timestamp |
| 401 | Unauthorized | Missing or invalid X-API-Key |
| 404 | Not Found | Path doesn’t exist OR resource doesn’t exist (e.g. unknown outcome_id) |
| 413 | Payload Too Large | Request body exceeds 20KB |
| 429 | Too Many Requests | Rate limit hit (per-key or global) |
| 500 | Internal Server Error | Database error or unexpected failure |
| 503 | Service Unavailable | Database briefly unreachable, or global ceiling hit |
$ curl https://.../api/v1/markets
HTTP 401
{"error":"missing X-API-Key header","hint":"include header X-API-Key: hip4_live_..."}
HTTP 429
{
"error": "rate limit exceeded for tier 'free' (600 req/min)",
"tier": "free",
"limit": 600
}
$ curl ".../api/v1/markets/0/candles?period=2m" -H "X-API-Key: ..."
HTTP 400
{"error":"period must be one of 1m, 5m, 15m, 1h, 4h, 1d"}
$ curl .../api/v1/markets/9999 -H "X-API-Key: ..."
HTTP 404
{"error":"outcome 9999 not found"}