Historical replay
Add asOf to a lookup to get the record as Bursary held it at that instant. The response has the same shape as a live lookup, so you can compare the two directly.
curl "https://api.bursary.dev/v1/schools/unitid:100654?asOf=2026-03-03T00:00:00Z" \ -H "x-api-key: sk_live_..."Historical replay needs the Enterprise tier. Below it, the request answers 403 with auth.forbidden before any lookup runs.
Send a full instant
Section titled “Send a full instant”asOf takes a UTC instant ending in Z, such as 2026-03-03T00:00:00Z. A bare date like 2026-03-03, or an offset like +05:00, answers 422 with validation.failed. A day is refused because its start and its end can have different answers.
An asOf in the future returns today’s values, still as a replay, so it leaves out the parts the table below lists.
How far back it reaches
Section titled “How far back it reaches”Replay reaches back to the first change Bursary recorded, and no further. An earlier asOf answers 422 with institution.history_unavailable, and error.details.earliest is the earliest instant you can ask for. Ask again at that instant or later. If Bursary has recorded no changes yet, earliest is null.
An institution Bursary first recorded after your asOf answers 404 with not_found, and details.asOf and details.message say so. The institution exists. Ask for a later instant.
That 422 is not a validation error. A malformed asOf answers 422 with validation.failed and needs fixing. This one is well formed and needs a later date. Branch on the code.
What comes back
Section titled “What comes back”| Part of the record | At the instant you asked for |
|---|---|
Single fields such as name, city, control, and closedAt |
The value then. A field that never changed has its current value |
identifiers and names |
Only the entries Bursary had recorded by then |
matchedIdentifier |
The identifier you sent, even if Bursary recorded it later |
accreditations, risk, history, and outcomes |
Left out. These keys are absent at every tier |
logoUrl and faviconUrl |
Today’s values. Bursary doesn’t keep their history |
provenance |
The source and date in effect then, or null where the record can’t show them |
The four blocks are left out because their sources overwrite old values, so Bursary has no earlier version to return. They are absent, not null, because null means no source supplied a value.
provenance never reports a date later than the instant you asked for, except on logoUrl and faviconUrl, whose entries are today’s and can be dated after it. A null entry in a replay means what it means in a live response. Nothing Bursary can show supplied that field at that time. A replay’s provenance has no block entries, because the replay has no blocks.
Three smaller details:
- A closure rebuilt from a recorded change comes back at midnight UTC on its day. A closure that never changed keeps its current time.
- A name corrected only in spelling or capitals keeps its original date, so the corrected spelling appears at the old date rather than as a change.
- An identifier’s
sourceis the source that binds it today. If a different source bound it on yourasOfdate, the replay still names today’s.
Corrections stay in the history
Section titled “Corrections stay in the history”Bursary never deletes a recorded change. A correction is recorded as a new change that names the one it replaces, so a replay before the correction shows the wrong value as Bursary said it then. Replay answers what Bursary said at that instant, not what is true about that instant.
getSchool has the full schema.