Skip to main content

Dialer API

Dialer endpoints exposed by the Devotel CPaaS API Base path: /api/v1/dialer Endpoint count: 2

Claim the next preview-mode contact for an agent

GET /api/v1/dialer/next-call
Hands the agent frontend the next contact to review for a preview-mode campaign, atomically claiming it so two agents polling concurrently never receive the same number and double-dial. Returns the claimed contact plus the per-campaign decision countdown, 204 No Content for progressive / predictive / agentless campaigns (their calls are originated automatically by the pacing engine), or 404 when the campaign is not active. The agent then reviews the contact and launches the call via POST /api/v1/dialer/dial.
string
The active preview-mode campaign to claim the next contact from.

Originate a preview-mode dial for a claimed contact

POST /api/v1/dialer/dial
Launches the outbound call for a contact the agent already claimed via GET /api/v1/dialer/next-call. Call this when the agent clicks “Call” after reviewing the preview card: the contact must still be in the dialing (claimed) state or the request is rejected with 409 CLAIM_NOT_HELD. Valid only for active preview-mode campaigns — progressive / predictive / agentless campaigns dial through the pacing scheduler instead. The requesting operator is recorded as the call’s agent for the TCPA audit trail. Requires the dialer:write scope.
string
The active preview-mode campaign the contact belongs to.
string
The dialer list-contact id returned by GET /api/v1/dialer/next-call.