SmartGare
API referenceEndpoints

List presentations

Returns the presentations the control points received, newest first, refused ones included: by checkpoint or lane, purpose, a time window, what an entrance decided and a plate read. Each carries its plate and tag readings, the codes keyed at a keypad, the entrance's decision, its reason when it refused, when it decided, and the visit it names. **Required permission:** `cycle.coach-cycle:read`

GET/cycle/v1/access-attempts

Returns the presentations the control points received, newest first, refused ones included: by checkpoint or lane, purpose, a time window, what an entrance decided and a plate read. Each carries its plate and tag readings, the codes keyed at a keypad, the entrance's decision, its reason when it refused, when it decided, and the visit it names.

Required permission: cycle.coach-cycle:read

AuthorizationBearer <token>

In: header

Query Parameters

access_point_id?string

Only the presentations at this checkpoint.

lane_id?string

Only the presentations at this lane.

purpose?string

Only the presentations for this purpose.

Value in

  • "STATION_ENTRY"
  • "REGULATION_EXIT"
  • "STATION_EXIT"
since?string

Only the presentations opened at or after this instant.

Formatdate-time
until?string

Only the presentations opened before this instant.

Formatdate-time
decision?string

Only the presentations an entrance decided so; UNDECIDED for those it decided nothing about, such as a coach nobody could name, under review.

Value in

  • "ADMITTED"
  • "PLATE_ONLY"
  • "REFUSED"
  • "LET_THROUGH"
  • "UNDECIDED"
plate?string

Only the presentations where this plate was read, compared as letters and digits only, whatever the case.

page?integer

Zero-based page index.

Formatint32
Range0 <= value
size?integer

Page size, at most 200.

Formatint32
Range0 <= value <= 200

Response Body

*/*

curl -X GET "https://example.com/cycle/v1/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"    }  ],  "page": 0,  "size": 0,  "total": 0}