SmartGare
API referenceEndpoints

Open an agent session

Signs the calling agent in at a workstation. A paired counter terminal sends its secret in SmartGare-Counter-Terminal and is signed in at the counter it is paired with. Without it, `workstation` names the counter, accepted only while no terminal is paired. **Required permission:** `ticketing.agent-session:write`

POST/ticketing/v1/agent-sessions

Signs the calling agent in at a workstation. A paired counter terminal sends its secret in SmartGare-Counter-Terminal and is signed in at the counter it is paired with. Without it, workstation names the counter, accepted only while no terminal is paired.

Required permission: ticketing.agent-session:write

AuthorizationBearer <token>

In: header

Header Parameters

smart_gare-_counter-_terminal?string

The paired counter terminal's secret, given once at its pairing.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*OpenAgentSessionRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/ticketing/v1/agent-sessions" \  -H "Content-Type: application/json" \  -d '{}'
{  "agent": "string",  "id": "string",  "opened_at": "2019-08-24T14:15:22Z",  "workstation": "string"}