Docs/Subscriptions/Fetch history on demand

Fetch history on demand

POST/v1/history/fetch🔑 API key required

Kick off a bounded historical backfill for a mint WITHOUT subscribing a slot — the fastest way to evaluate a token. Returns immediately with a status URL; poll GET /v1/token/:mint/backfill (and /ohlcv) as the data fills in.

Body

FieldTypeDescription
mintrequiredstringThe token mint (base58).
networkoptionalmainnet | devnetDefault mainnet. Devnet has no archive (400).
hoursoptionalnumberLookback window to walk (default 72h; capped server-side).

Response fields

FieldTypeDescription
enqueuedbooleanTrue when a backfill was queued; false when already indexed (see reason).
reasonstringWhen enqueued=false: already_indexed | invalid / why nothing was queued.
statusUrlstringPoll this (GET /v1/token/:mint/backfill) for progress.
No mint slot is consumed. The first GET /v1/token/:mint/ohlcv on an unindexed mint triggers the same bounded fetch automatically. Drained by the gTFA queue worker (recent slots) — much faster than the archive path.