Journeys and departures API contract
Endpoints, payloads and caching rules the apps rely on.
Kwame AsanteEdited 84 words · 1 min read
Endpoints
| Method | Path | Cache |
|---|---|---|
| GET | /journeys | 60 s |
| GET | /departures/{station} | 15 s |
| GET | /disruptions | 15 s |
| POST | /refund-claims | none |
Conventions
- Times are ISO 8601 with the station's offset
- Every list is paginated with a cursor
- Errors use a stable `code` the apps can translate
Stale data
When departures are older than two minutes the apps show the timetable with a “live times unavailable” note instead of the last known values.