List departures by origin, destination and time window (ListDepartures)
GET/departures
Open Host Service read for any context. Filters are ANDed; from and to bound cutoffAt (from inclusive, to exclusive). Ordered by cutoffAt then departureId, keyset-paged: limit (1-500, default 100) and the opaque cursor from nextCursor; filters are repeated on every page request. Any other query parameter is 400 unknown-query-parameter.
Request
Responses
- 200
- 400
- 422
- 500
Matching departures.
Malformed request. Types: malformed-request (bad JSON, unknown field, NUL character), idempotency-key-required, idempotency-key-invalid, invalid-limit, invalid-cursor and unknown-query-parameter.
Validation failure. Types: overlapping-slots (ErrOverlappingSlots), invalid-departure-times (ErrInvalidDepartureTimes) and validation-failed. An empty request body is decoded as all-zero values and fails here (validation-failed), not as a 400.
Unexpected failure (problem type internal-error); the detail never carries the internal message. A 5xx is never stored by the Idempotency-Key middleware, so the same key can retry.