SmartGare
API referenceEndpoints

List lane barriers

Returns every barrier the station has heard from, by checkpoint: up or down, and since when. A barrier goes up when it takes an order to open or reports itself open, and down only when it reports itself closed. **Required permission:** `cycle.coach-cycle:read`

GET/cycle/v1/barriers

Returns every barrier the station has heard from, by checkpoint: up or down, and since when. A barrier goes up when it takes an order to open or reports itself open, and down only when it reports itself closed.

Required permission: cycle.coach-cycle:read

AuthorizationBearer <token>

In: header

Query Parameters

checkpoint_id?string

Only the barriers at this checkpoint.

Response Body

*/*

curl -X GET "https://example.com/cycle/v1/barriers"
{  "barriers": [    {      "bridge_address": "string",      "checkpoint_id": "string",      "position": "UP",      "since": "2019-08-24T14:15:22Z"    }  ]}