SmartGare
API referenceEndpoints

Who operates a line on a date

Derived from the register: the carriers holding active authorizations covering the line on that date, each with the authorization ids it holds. A carrier not active today (suspended or still pending) is left out, whatever the date: a carrier's status keeps no history. Several carriers operating one line on the same date is the ordinary case, e.g. 14 on one line in the reference register. **Required permission:** `referential.authorization:read`

GET/referential/v1/lines/{lineId}/operators

Derived from the register: the carriers holding active authorizations covering the line on that date, each with the authorization ids it holds. A carrier not active today (suspended or still pending) is left out, whatever the date: a carrier's status keeps no history. Several carriers operating one line on the same date is the ordinary case, e.g. 14 on one line in the reference register.

Required permission: referential.authorization:read

AuthorizationBearer <token>

In: header

Query Parameters

on?string

The date to answer as of, ISO format; the station's today when omitted.

Formatdate

Response Body

*/*

curl -X GET "https://example.com/referential/v1/lines/{lineId}/operators"
[  {    "carrier_id": "string",    "transport_authorization_ids": [      "string"    ]  }]