SmartGare
API referenceEndpoints

Read a reader's last reading

Reads, once, what the station's hardware bridge still keeps of the reader at the address — a plate camera, a UHF tag reader or a badge reader — and answers the last plate or tag read with when it was read: READ, NONE_HELD when the bridge holds none within the window it keeps, or BRIDGE_UNREACHABLE when no bridge is configured or it gave no usable answer in time. Nothing is recorded, and the bridge never fails this read. **Required permission:** `referential.last-reading:read`

GET/referential/v1/last-readings

Reads, once, what the station's hardware bridge still keeps of the reader at the address — a plate camera, a UHF tag reader or a badge reader — and answers the last plate or tag read with when it was read: READ, NONE_HELD when the bridge holds none within the window it keeps, or BRIDGE_UNREACHABLE when no bridge is configured or it gave no usable answer in time. Nothing is recorded, and the bridge never fails this read.

Required permission: referential.last-reading:read

AuthorizationBearer <token>

In: header

Query Parameters

address*string

The reader's bridge address, capability@place or capability[role]@place. One reader per read.

Match^([a-z][a-z0-9]*(?:-[a-z0-9]+)*)(?:\[([a-z][a-z0-9]*(?:-[a-z0-9]+)*)\])?@([A-Za-z0-9_.:-]+)$

Response Body

*/*

curl -X GET "https://example.com/referential/v1/last-readings?address=string"
{  "address": "string",  "kind": "PLATE",  "outcome": "READ",  "paired_plate": "string",  "read_at": "2019-08-24T14:15:22Z",  "value": "string"}