Skip to content

Voice Agents API

Query and control agent state.

Base path: /api/v1/voice/agents All endpoints require authentication.

The {agentUri} path parameter is the Unexus user URI of the agent, e.g. agent1@customer.unexus.nl. URL-encode it when it contains special characters.

GET /api/v1/voice/agents/{agentUri}/state

Returns the agent’s current presence/status information, including status code, device status, and whether the agent is logged on.

GET /api/v1/voice/agents/{agentUri}/call-state

Returns the current call state of the agent’s device (active calls, hold state, remote party).

POST /api/v1/voice/agents/{agentUri}/presence
{
"statusCode": "2",
"until": "2026-07-21T17:00:00Z",
"message": "Working from home",
"location": "Home office"
}
FieldRequiredDescription
statusCodeyesNumeric user status code to set (see table below).
untilnoTimestamp at which the status automatically expires.
messagenoFree-text status message.
locationnoLocation to set together with the status.

The most commonly used values:

CodeStatus
0Unknown
1Offline
2Available
10Busy
14Be right back
34Away / Off work
50On the phone
66Lunch
82Meeting
98Out of office
114Do not disturb
130Conference
144Working
146After call work
160Ill
161Gone for the day
162Business trip
176Holiday
177Other