SmartGare
API referenceEndpoints

Read the state of a position

Returns the open agent session at the named workstation, whoever holds it, and the caller's own open agent session wherever it is, each with the register it is working on. Either is null when nothing is open; an unknown workstation reads as nothing open, not as not found. **Required permission:** `ticketing.agent-session:read`

GET/ticketing/v1/agent-sessions/current

Returns the open agent session at the named workstation, whoever holds it, and the caller's own open agent session wherever it is, each with the register it is working on. Either is null when nothing is open; an unknown workstation reads as nothing open, not as not found.

Required permission: ticketing.agent-session:read

AuthorizationBearer <token>

In: header

Query Parameters

workstation?string

Response Body

*/*

curl -X GET "https://example.com/ticketing/v1/agent-sessions/current"
{  "own": {    "agent": "string",    "id": "string",    "opened_at": "2019-08-24T14:15:22Z",    "register": {      "currency": "string",      "declared_float": 0,      "id": "string",      "opened_at": "2019-08-24T14:15:22Z",      "status": "OPEN"    },    "workstation": "string"  },  "workstation": {    "agent": "string",    "id": "string",    "opened_at": "2019-08-24T14:15:22Z",    "register": {      "currency": "string",      "declared_float": 0,      "id": "string",      "opened_at": "2019-08-24T14:15:22Z",      "status": "OPEN"    },    "workstation": "string"  }}