Skip to content

Voice Calls API

Call control endpoints. Commands are executed on behalf of a Unexus agent and are forwarded to the telephony platform.

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

POST /api/v1/voice/calls/dial
{
"agentUri": "agent1@customer.unexus.nl",
"destination": "+31201234567",
"cli": "+31207654321",
"correlationId": "crm-42"
}
FieldRequiredDescription
agentUriyesAgent that initiates the call. Omitting it returns 401 Unauthorized.
destinationyesNumber or URI to dial.
clinoOutbound presentation number.
correlationIdnoYour identifier for command/event tracing.
POST /api/v1/voice/calls/{callId}/answer
{ "agentUri": "agent1@customer.unexus.nl" }
POST /api/v1/voice/calls/{callId}/hangup
{ "agentUri": "agent1@customer.unexus.nl" }
POST /api/v1/voice/calls/{callId}/hold
{ "agentUri": "agent1@customer.unexus.nl" }
POST /api/v1/voice/calls/{callId}/resume
{ "agentUri": "agent1@customer.unexus.nl" }
POST /api/v1/voice/calls/{callId}/transfer
{
"agentUri": "agent1@customer.unexus.nl",
"transferTarget": "agent2@customer.unexus.nl",
"blind": false,
"correlationId": "crm-42"
}
FieldRequiredDescription
agentUriyesAgent that owns the call. Omitting it returns 401 Unauthorized.
transferTargetyesAgent URI, extension, or external number.
blindnotrue = blind (unattended) transfer; false (default) = attended.
correlationIdnoYour identifier for tracing.

Commands are asynchronous at the telephony level: a 2xx response means the command was accepted, not that the call state has already changed. Track actual call progress via the call.status webhook event.

Common error responses are described in Errors.