SmartGare
API referenceEndpoints

Read the forward bay schedule

Every usable bay over the window, with what stands on it — commitments, holds and unavailabilities on one timeline each. A bay with nothing planned is on the board with an empty timeline. Overlaps are returned as they are. **Required permission:** `traffic.bay-availability:read`

GET/traffic/v1/bay-schedules

Every usable bay over the window, with what stands on it — commitments, holds and unavailabilities on one timeline each. A bay with nothing planned is on the board with an empty timeline. Overlaps are returned as they are.

Required permission: traffic.bay-availability:read

AuthorizationBearer <token>

In: header

Query Parameters

from*string

Start of the window, inclusive.

Formatdate-time
to*string

End of the window, exclusive.

Formatdate-time
bay_id?string

One bay, when the whole station's board is not wanted.

Response Body

*/*

*/*

curl -X GET "https://example.com/traffic/v1/bay-schedules?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z"
{  "data": [    {      "bay_id": "string",      "items": [        {          "departure_at": "2019-08-24T14:15:22Z",          "ends_at": "2019-08-24T14:15:22Z",          "id": "string",          "scheduled_departure_id": "string",          "starts_at": "2019-08-24T14:15:22Z",          "type": "BAY_ASSIGNMENT"        }      ]    }  ]}