SmartGare
API referenceEndpoints

List a visit's presentations

Returns the presentations behind one visit, oldest first, each with everything read and what its control point decided: at a station entrance, whether the coach was let in fully or on its plate alone, or refused and why. **Required permission:** `cycle.coach-cycle:read`

GET/cycle/v1/coach-cycles/{id}/access-attempts

Returns the presentations behind one visit, oldest first, each with everything read and what its control point decided: at a station entrance, whether the coach was let in fully or on its plate alone, or refused and why.

Required permission: cycle.coach-cycle:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

*/*

curl -X GET "https://example.com/cycle/v1/coach-cycles/string/access-attempts"
{  "data": [    {      "access_point_id": "string",      "clock_skew_tolerance": "string",      "confirmed_vehicle_id": "string",      "correlation_ends_at": "2019-08-24T14:15:22Z",      "correlation_window": "string",      "direction": "INBOUND",      "entry_checks": [        {          "details": {            "property1": "string",            "property2": "string"          },          "input": "STATION_OPEN",          "outcome": "PASSED",          "reasons": [            "string"          ]        }      ],      "entry_decided_at": "2019-08-24T14:15:22Z",      "entry_decision": "ADMITTED",      "entry_refusal": "STATION_CLOSED",      "first_received_at": "2019-08-24T14:15:22Z",      "id": "string",      "identification_assessment": "DOUBLE_IDENTIFIED",      "identification_policy_state": "RESOLVED",      "identification_rule_version_id": "string",      "keypad_entries": [        {          "assessment": "IDENTIFIED",          "id": "string",          "reading_id": "string",          "received_at": "2019-08-24T14:15:22Z",          "recorded_by": "string",          "source": "string",          "vehicle_cycle_id": "string"        }      ],      "lane_id": "string",      "matched_cycle_id": "string",      "observations": [        {          "access_attempt_id": "string",          "access_point_id": "string",          "candidate_vehicle_id": "string",          "clock_offset": "string",          "clock_reliability": "WITHIN_TOLERANCE",          "confidence": 0,          "device_at": "2019-08-24T14:15:22Z",          "direction": "INBOUND",          "id": "string",          "identifier_type": "PLATE",          "lane_id": "string",          "purpose": "STATION_ENTRY",          "raw_text": "string",          "reading_id": "string",          "received_at": "2019-08-24T14:15:22Z",          "recorded_by": "string",          "resolution_assessment": "RESOLVED",          "resolved_vehicle_id": "string",          "source": "string",          "supersedes_observation_id": "string"        }      ],      "purpose": "STATION_ENTRY",      "regulation_exit_outcome": "CYCLE_ADVANCED"    }  ]}