Languages: every operation supports cURL, Node.js (TypeScript), Python, Go, Ruby, and PHP. The first 15 operations on this page show all six languages; the remaining 9 show cURL and TypeScript — the two most-used.
Dialer API
Dialer endpoints exposed by the Devotel CPaaS API Base path:/api/v1/dialer
Endpoint count: 22
title: “Worked claim→launch dialer samples” description: “Copy-pasteable curl + TypeScript walkthroughs of the preview claim→launch loop, hopper pause/resume, post-call dispositions with callback scheduling, and error handling.”
The preview-dial loop: claim → review → launch
Outbound-campaign operators run the dialer workspace. Progressive, predictive, and agentless campaigns fire through the pacing scheduler automatically; preview mode is the one where a human reviews each contact card before the call launches. That human loop compresses into two endpoints, and both are worked below end-to-end.1. Claim the next contact
The agent’s frontend claims the next contact withGET /api/v1/dialer/next-call:
preview_decision_seconds is the per-campaign review countdown; decision_expires_at is the server-side deadline for that countdown. 204 No Content means the campaign is progressive / predictive / agentless (calls fire automatically); 404 means the campaign is not active. A null contact means the list is drained.
2. Launch the dial
Once the agent clicks “Call”, the dial launches withPOST /api/v1/dialer/dial:
dialing (claimed) state, or the request rejects with 409 CLAIM_NOT_HELD. The requesting operator records as the call’s agent for the TCPA audit trail, and the call itself exits through the Devotel softswitch — the preview loop never dials a number outside the commit path. Pass an Idempotency-Key so a retried client click never double-dials the same contact.
Hopper controls: pause and resume a running campaign
Pause and resume are the samePATCH /api/v1/dialer/campaigns/{id} operation with a status body field — valid for progressive and preview campaigns alike. Pausing stops the pacing scheduler and the preview claim queue; in-flight legs terminate normally.
Disposition the contact with an optional callback
After the call wraps, the agent submits the outcome withPOST /api/v1/dialer/campaigns/{id}/dispositions. When the disposition is callback_later, callback_scheduled_at is required: ISO-8601 with offset, in the future, and within 90 days.
callback_scheduled, dnc, wrong_number, connected, …). A dnc or wrong_number disposition also writes a suppression entry, so future dial attempts to that number are blocked across every campaign in your tenant. Dispositions are recorded against the claim-time agent and are audit-loggable for TCPA defense.
Where errors go
The dialer rejects with a stableerror.code in the envelope — the full registry of codes across the API lives in the on-page errors matrix, Error codes. The failures you will actually hit in this loop:
Parse
error.code, not the HTTP status alone — for example 409 carries both the claim-conflict and the in-flight-delete cases.
SDK surface bridge — List outbound-dialer campaigns, queue the next hop of the campaign FIFO, or trigger one alias lane — all with the sandbox key.
These three tabs mirror SDK status and coverage. Python fronts
client.request, Go fronts client.Request, and TS fronts fetch-TS — each with the sandbox key.List dialer campaigns
Queue the next campaign hop
Fire one alias lane
Alias-lane request inbox
List dialer campaigns
GET /api/v1/dialer/campaignscontacts_total / contacts_connected counts (bounded scan — see contacts_count_capped_at). Degrades to an empty list (never a 5xx) when the tenant’s dialer schema is not yet provisioned.
Filter by campaign status: draft, active, paused, completed, or aborted. Unrecognized values are ignored (no filter applied).
Get a dialer campaign
GET /api/v1/dialer/campaigns/{id}Get post-call AI sentiment + outcome scoring for a dialer attempt
GET /api/v1/dialer/campaigns/{id}/attempts/{attemptId}/outcome-scoringanalyzed:false when the analyzer hasn’t run yet or the tenant hasn’t enabled it.
Dialer local-presence caller-ID coverage + analytics
GET /api/v1/dialer/campaigns/{id}/caller-id-coverageList lists
GET /api/v1/dialer/campaigns/{id}/listsList penetration
GET /api/v1/dialer/campaigns/{id}/lists/{listId}/penetrationDialer campaign post-call AI sentiment + outcome rollup
GET /api/v1/dialer/campaigns/{id}/sentimentDialer campaign wallboard stats
GET /api/v1/dialer/campaigns/{id}/statscontacts_count_capped) so a single poll can never scan an unbounded number of rows.
Dialer campaign stats (tenant-wide KPI strip)
GET /api/v1/dialer/campaigns/statsIANA timezone (e.g. ‘America/New_York’) used to compute the operator-local day boundary for the ‘completed today’ tile. Defaults to UTC when omitted or malformed.
Claim the next preview-mode contact for an agent
GET /api/v1/dialer/next-call204 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.
List campaigns
GET /api/v1/dialer/voice-agents/{agentId}/campaignsCreate a dialer campaign
POST /api/v1/dialer/campaignsdraft status (preview / progressive / predictive / agentless mode). Validates that caller_id_e164 and every caller_id_pool entry are owned by the calling org (anti-spoofing), and that voice_agent_id (when set) references a real voice agent in this workspace. Recording requires recording_consent_acknowledged=true in the same request. Requires the dialer:write scope.
Dial strategy: ‘preview’ (agent reviews + clicks to dial), ‘progressive’, ‘predictive’, or ‘agentless’ (broadcast, no agent leg).
FCC abandon-rate ceiling for this campaign, as a fraction (e.g. 0.03 = 3%). Cannot exceed the platform’s 3% ceiling.
Optional explicit Jambonz voice-control-plane application override. Omit to use the mode/AMD-resolved default.
Required agent skills for this campaign — legacy string array (e.g. [‘french’]) or structured
{skill, min_level, weight} objects.‘human’ (default, agent-fronted) or ‘voice_agent’ (each leg connects to the AI voice agent named by
voice_agent_id, dispatched via POST /campaigns/:id/batch-dispatch).Required when
dispatch_mode='voice_agent'; must reference an existing agent in this workspace.HTTPS URL of the message Jambonz plays on answer. Required when
mode='agentless', forbidden otherwise.HTTPS voicemail-drop audio URL played when AMD detects a machine. Only valid for agent-driven modes.
Per-campaign override of how long a preview-mode agent has to decide before the claim auto-skips. Only valid for
mode='preview'.Per-outcome retry backoff schedule keyed by outcome bucket (no_answer, busy, machine, machine_silence, failed).
Local-presence caller-ID rotation pool. Every entry must be owned by this org. Required (non-empty) when
caller_id_strategy is not ‘single’.Caller-ID assignment strategy: ‘single’ (default) or ‘npa_match’ (local-presence rotation from
caller_id_pool).Optional human-agent guided-dialog script (sections + branches). Omitted campaigns persist the canonical empty shape.
When true, contacts uploaded to this campaign are enrolled at their highest-answer-probability window instead of list order.
Batch-dispatch outbound calls to a voice agent
POST /api/v1/dialer/campaigns/{id}/batch-dispatchconcurrency_limit (or the optional max_legs override, whichever is lower) pending contacts under SKIP LOCKED and originates one outbound call per contact via the softswitch, connecting each answered leg to the campaign’s AI voice agent. Only valid for dispatch_mode='voice_agent' campaigns in active status. Returns 202 when every leg originated successfully, 207 when some legs failed (per-leg detail in legs), or 204 when there were no eligible contacts to claim. Requires the dialer:write scope.
Optional per-invocation cap on claimed legs, 1-200. Always clamped to the campaign’s own concurrency_limit.
Create clone
POST /api/v1/dialer/campaigns/{id}/cloneSubmit a dialer call disposition
POST /api/v1/dialer/campaigns/{id}/dispositionsdnc_list suppression entry so future dial attempts to that number are blocked across every campaign in this tenant. Requires the dialer:write scope.
Outcome label (e.g. ‘connected’, ‘callback_later’, ‘dnc’, ‘wrong_number’). Unrecognized values default to the ‘connected’ route.
Required when disposition routes to callback_scheduled. ISO-8601 with offset, must be in the future and within 90 days.
Upload a contact list to a dialer campaign
Need this flow in Python, Go, Ruby, or PHP? The Worked sequences section renders this surface’s hero flows in the full six-language group.
POST /api/v1/dialer/campaigns/{id}/listsphone_e164 values are deduped both within the request and against any existing contact in the same list (ON CONFLICT DO NOTHING); the response reports how many were actually inserted vs. skipped as duplicates. Requires the dialer:write scope.
Create recycle
POST /api/v1/dialer/campaigns/{id}/lists/{listId}/recycleOriginate a preview-mode dial for a claimed contact
POST /api/v1/dialer/dialGET /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.
Manual-dial dialer
POST /api/v1/dialer/manual-dialUpdate a dialer campaign
PATCH /api/v1/dialer/campaigns/{id}status: 'active') is blocked by the org-wide compliance emergency stop, a missing resolvable voice application, or a prior recording-consent gap. An ‘aborted’ campaign cannot transition to any other status. Requires the dialer:write scope.
Enabling requires
recording_consent_acknowledged=true in the same request unless already acknowledged.Soft-delete a dialer campaign
DELETE /api/v1/dialer/campaigns/{id}dialing — pause the campaign and let in-flight legs terminate first. Terminal-state contacts (connected/failed/dnc/exhausted/timezone_blocked) are preserved for TCPA dispute defense. Requires the dialer:write scope.
204 No Content
Soft-delete a dialer contact list
DELETE /api/v1/dialer/campaigns/{id}/lists/{listId}dialing. Terminal-state contacts are preserved. Requires the dialer:write scope.
204 No Content