Search tasks, projects, docs, people
Passenger App v2

Journeys and departures API contract

Endpoints, payloads and caching rules the apps rely on.

Kwame AsanteEdited 84 words · 1 min read

Endpoints

Endpoints
MethodPathCache
GET/journeys60 s
GET/departures/{station}15 s
GET/disruptions15 s
POST/refund-claimsnone

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.