API reference
The REST API lives at https://illusion3.datapull.cc/api/v1/. Authenticate with a bearer token from Settings → API keys.
Push metrics
curl -X POST https://illusion3.datapull.cc/api/v1/series \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"series":[{"metric":"queue.depth","points":[[1794988020,42]]}]}'
Query
curl -G https://illusion3.datapull.cc/api/v1/query \
-H "Authorization: Bearer $TOKEN" \
--data-urlencode 'q=avg:queue.depth{service:ingest}'
Errors
Errors come back as JSON with the matching HTTP status. A request without a valid token gets 401:
{"errors":[{"status":"401","code":"unauthorized","title":"Missing or invalid API key."}],"request_id":"013659936f718b2b755d11c663984714"}
Rate limits
1000 requests per minute per token. Throttled responses carry Retry-After.
Status codes
| Code | Meaning |
|---|---|
| 200 | OK |
| 202 | Accepted (async ingest) |
| 401 | Missing or invalid token |
| 429 | Rate limited |