Calling
Human calling: calls, outcomes, follow-ups, pacing, cohorts and permissions.
An agent's call, step by step
Read the agent's state and whether a call is live.
Follow the live call; end it if needed.
GETGet a callPOSTHang up a call
Record the result in wrap-up.
Work the follow-ups it created.
GETList my call follow-upsPUTReschedule, complete or cancel a follow-up
On this page
Agent session
Call handling
Follow-ups and callbacks
Lead callability and number permissions
Campaign calling setup
Supervision and reporting
Get my calling status
GET/v1/tenants/{tenantSlug}/lms/calling/agent
Returns the calling state of the acting member: the campaigns they are assigned to, their calling session (ready, paused, on a call or in wrap-up, with any break reason), whether they can take calls right now and why not, and the call in progress, if any. It acts as the API key's acting member, so it returns that member's own data, as an agent would see it in the calling workspace.
Designed for the agent workspace. Poll it to mirror an agent's state; it never changes anything.
What to do next, by session.state:
READYorPAUSED: no call is live (currentCallisnull);availableandreasonsay whether calls can arrive.ON_CALL: read the live call fromcurrentCallor with Get a call; end it with Hang up a call.WRAP_UP: the call has ended; record the result with Save a call's outcome.
Responses
The acting member's calling status.
campaignsCampaigns the member can call in.
assignmentThe campaign the member is assigned to dial now;
nullif none.sessionThe member's calling session;
nullwhen signed out of calling.availableWhether the member can take calls now.
deviceTypeBROWSERorSIP_PHONE;nullwithout a device.browserSessionIdBrowser phone session, when using the browser.
browserRegisteredWhether the browser phone is registered and can ring.
reasonWhy the member cannot call, in plain language;
nullwhen they can.endpointLabelName of the phone the member uses.
streamHealthyWhether live telephony updates are flowing; when
false, states may lag.currentCallThe live call;
nullwhen not on a call.controlCallA transfer or supervisor call in progress;
nullif none.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Get my call statistics for today
GET/v1/tenants/{tenantSlug}/lms/calling/daily-stats
Counts the acting member's calls since midnight today: customers dialed, conversations connected, calls with a saved outcome, and total talk time in seconds. "Today" follows the time zone of the campaign the member is assigned to (India Standard Time when unassigned), returned as timezone. It acts as the API key's acting member, so it returns that member's own data, as an agent would see it in the calling workspace.
Responses
Today's totals.
timezoneTime zone the day is counted in.
attemptsCalls placed today.
connectedCalls answered today.
completedCalls with a saved outcome today.
talkSecondsTotal talk time today, in seconds.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
List break reasons
GET/v1/tenants/{tenantSlug}/lms/calling/break-reasons
Returns the workspace's break reasons, the choices an agent picks from when they pause calling (for example MEAL or COACHING), with the settings revision. Inactive reasons are kept so past breaks still report under their label.
Responses
Break reasons.
revisionRevision; send it as
expectedRevisionwhen saving.reasonsBreak reasons, in display order.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Save break reasons
PUT/v1/tenants/{tenantSlug}/lms/calling/break-reasons
Replaces the workspace's list of break reasons (up to 30). Keys are upper-case codes and must be unique, and at least one reason must stay active. Retire a reason with active: false instead of removing it, so reports keep its label. Needs calling management permission. Send the current revision as expectedRevision; if someone saved in the meantime the request fails with 409.
Request body (application/json)
expectedRevisionThe
revisionfrom your last read;409if it changed since.reasonsThe complete new list (1–30).
Responses
The saved break reasons.
revisionRevision; send it as
expectedRevisionwhen saving.reasonsBreak reasons, in display order.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
List a lead's calls
GET/v1/tenants/{tenantSlug}/lms/leads/{leadId}/human-calls
Returns the 50 most recent agent calls with the lead, newest first, each with its state, timings, outcome and recording state. Members with calling management permission see every call; other members see only the calls they handled.
Path parameters
leadIdLead ID.
Responses
The lead's calls.
itemsThe records in this response, in the documented order.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.LEAD_NOT_FOUNDThe lead does not exist or the key cannot see it.
Get a call
GET/v1/tenants/{tenantSlug}/lms/human-calls/{callId}
Returns one agent call. Members with calling management permission see every call; other members see only the calls they handled.
state follows the telephony progress (QUEUED → RINGING → BRIDGED → COMPLETED, or FAILED / CANCELLED). businessState is what matters for follow-up work: OPEN while the call is live, WRAP_UP once it ended and is waiting for an outcome, DONE when the outcome is saved. recordingState becomes AVAILABLE when the recording can be downloaded. Use revision as expectedRevision when you save the outcome.
Path parameters
callIdCall ID.
Responses
The call.
idID of the human call.
leadIdLead the call is about.
campaignIdCampaign the call belongs to.
contactIdPhone contact that was dialled.
agentIdAgent on the call;
nullif none.externalCallIdTelephony provider's call ID.
executionTelephony execution of the call;
nullbefore it was placed.stateCurrent state of the human call.
businessStateWhere the call is in the agent's work:
OPEN(in progress),WRAP_UP(outcome not saved yet) orDONE.classificationTelephony classification of how the call ended, for example
ANSWEREDorNO_ANSWER.createdAtWhen it was created (ISO 8601).
connectedAtWhen the customer answered;
nullif never.endedAtWhen the call ended;
nullwhile live.outcomeOutcome the agent saved;
nulluntil wrap-up.dispositionKeyKey of the campaign disposition the agent chose;
nulluntil wrap-up.dispositionLabelName of that disposition, as agents see it.
noteAgent's note from wrap-up.
followUpScheduledAtWhen a follow-up was booked for;
nullif none.errorCodeMachine-readable reason the call failed;
nullunless it failed.revisionRevision number, increased on every change. Send it back as
expectedRevisionwhen you update.recordingStateNOT_AVAILABLE,PROCESSING,AVAILABLE(download with Recordings) orFAILED.hangupPendingtruewhile a hang-up request is being carried out.wrapUpAutoClosedtruewhen LMS closed an abandoned wrap-up with the campaign's fallback outcome.earlyMediatruewhen the agent's phone joined first and heard ringback before the customer answered.answeringMachineAnswering-machine detection:
HUNG_UP(ended automatically),CONNECTED(put through anyway) orDETECTED;nullif none.callerNumberCaller ID shown to the customer, masked unless the full number is known.
directionOUTBOUND(agent called) orINBOUND(customer called the IVR).
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CALL_NOT_FOUNDThe call does not exist or the key cannot see it.
Hang up a call
POST/v1/tenants/{tenantSlug}/lms/human-calls/{callId}/hangup
Asks telephony to end a live call. The request is queued and the call ends shortly after; the response shows the call as it is now, with hangupPending: true until the hang-up is confirmed. Repeating the request is safe, and a call that has already ended is returned unchanged. Needs call control permission and access to the call.
Path parameters
callIdCall ID.
Responses
The hang-up was accepted; the call as it is now.
idID of the human call.
leadIdLead the call is about.
campaignIdCampaign the call belongs to.
contactIdPhone contact that was dialled.
agentIdAgent on the call;
nullif none.externalCallIdTelephony provider's call ID.
executionTelephony execution of the call;
nullbefore it was placed.stateCurrent state of the human call.
businessStateWhere the call is in the agent's work:
OPEN(in progress),WRAP_UP(outcome not saved yet) orDONE.classificationTelephony classification of how the call ended, for example
ANSWEREDorNO_ANSWER.createdAtWhen it was created (ISO 8601).
connectedAtWhen the customer answered;
nullif never.endedAtWhen the call ended;
nullwhile live.outcomeOutcome the agent saved;
nulluntil wrap-up.dispositionKeyKey of the campaign disposition the agent chose;
nulluntil wrap-up.dispositionLabelName of that disposition, as agents see it.
noteAgent's note from wrap-up.
followUpScheduledAtWhen a follow-up was booked for;
nullif none.errorCodeMachine-readable reason the call failed;
nullunless it failed.revisionRevision number, increased on every change. Send it back as
expectedRevisionwhen you update.recordingStateNOT_AVAILABLE,PROCESSING,AVAILABLE(download with Recordings) orFAILED.hangupPendingtruewhile a hang-up request is being carried out.wrapUpAutoClosedtruewhen LMS closed an abandoned wrap-up with the campaign's fallback outcome.earlyMediatruewhen the agent's phone joined first and heard ringback before the customer answered.answeringMachineAnswering-machine detection:
HUNG_UP(ended automatically),CONNECTED(put through anyway) orDETECTED;nullif none.callerNumberCaller ID shown to the customer, masked unless the full number is known.
directionOUTBOUND(agent called) orINBOUND(customer called the IVR).
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CALL_NOT_FOUNDThe call does not exist or the key cannot see it.
Save a call's outcome
POST/v1/tenants/{tenantSlug}/lms/human-calls/{callId}/outcome
Records how a finished call went and closes its wrap-up. The call must have ended (businessState: WRAP_UP); send its current revision as expectedRevision.
outcomeis the reporting category.dispositionKeypicks one of the campaign's dispositions with that outcome (leave it out to use the disposition whose key equals the outcome). When you senddispositionKey, also send the campaign's calling settingsrevisionasdispositionRevision.- Some dispositions require a
noteor specific customer fields; send those fields incustomerFields(this needs lead edit permission). CONNECTEDis accepted only when telephony confirmed a conversation.FOLLOW_UP_SCHEDULEDrequiresfollowUpDueAt(in the future) andcallbackwith a reason and the customer's time zone. It creates a follow-up owned by the call's agent and a follow-up activity on the lead, which publishesfollowup.createdandcallback.scheduled. Any other outcome must leave both out.DO_NOT_CALLmarks the phone number as do-not-call across all campaigns and records the opt-out as withdrawn calling permission.
Saving the outcome publishes call.dispositioned. call.completed is published when the call ends and recording.available when its recording can be downloaded, independently of the outcome.
The call is logged on the lead's timeline, and a call that settles an earlier callback to the same number completes that callback. Retrying with the same body returns the saved call; a different body after the outcome is saved fails with 409.
Other 409 causes: the call has not ended yet, its revision changed, the campaign's dispositions changed (reload the calling settings), or the lead moved to another campaign.
Path parameters
callIdCall ID.
Request body (application/json)
expectedRevisionThe call's
revisionfrom your last read;409if it changed since.outcomeOverall outcome of the call.
dispositionKeyKey of the campaign disposition (the detailed outcome agents pick).
dispositionRevisionRevision of the campaign's disposition list you chose from;
409if it changed.customerFieldsCustomer field values captured during the call.
noteWrap-up note (up to 5,000 characters).
followUpDueAtWhen to call back. Required when
outcomeisFOLLOW_UP_SCHEDULED, refused otherwise.callbackCallback reason and time zone. Required with
FOLLOW_UP_SCHEDULED, refused otherwise.
Responses
The call with its saved outcome.
idID of the human call.
leadIdLead the call is about.
campaignIdCampaign the call belongs to.
contactIdPhone contact that was dialled.
agentIdAgent on the call;
nullif none.externalCallIdTelephony provider's call ID.
executionTelephony execution of the call;
nullbefore it was placed.stateCurrent state of the human call.
businessStateWhere the call is in the agent's work:
OPEN(in progress),WRAP_UP(outcome not saved yet) orDONE.classificationTelephony classification of how the call ended, for example
ANSWEREDorNO_ANSWER.createdAtWhen it was created (ISO 8601).
connectedAtWhen the customer answered;
nullif never.endedAtWhen the call ended;
nullwhile live.outcomeOutcome the agent saved;
nulluntil wrap-up.dispositionKeyKey of the campaign disposition the agent chose;
nulluntil wrap-up.dispositionLabelName of that disposition, as agents see it.
noteAgent's note from wrap-up.
followUpScheduledAtWhen a follow-up was booked for;
nullif none.errorCodeMachine-readable reason the call failed;
nullunless it failed.revisionRevision number, increased on every change. Send it back as
expectedRevisionwhen you update.recordingStateNOT_AVAILABLE,PROCESSING,AVAILABLE(download with Recordings) orFAILED.hangupPendingtruewhile a hang-up request is being carried out.wrapUpAutoClosedtruewhen LMS closed an abandoned wrap-up with the campaign's fallback outcome.earlyMediatruewhen the agent's phone joined first and heard ringback before the customer answered.answeringMachineAnswering-machine detection:
HUNG_UP(ended automatically),CONNECTED(put through anyway) orDETECTED;nullif none.callerNumberCaller ID shown to the customer, masked unless the full number is known.
directionOUTBOUND(agent called) orINBOUND(customer called the IVR).
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CALL_NOT_FOUNDThe call does not exist or the key cannot see it.OUTCOME_CONFLICTA different outcome was already saved for this call.
Get a call's saved wrap-up
GET/v1/tenants/{tenantSlug}/lms/human-calls/{callId}/wrap-up
Returns exactly what was saved with the call's outcome: the disposition path, the customer form and values as they were at the time, the note and any callback. snapshot is null until the outcome is saved. autoClosed: true means the agent never saved an outcome and the campaign's fallback outcome was applied. Members with calling management permission see every call; other members see only the calls they handled.
Path parameters
callIdCall ID.
Responses
The saved wrap-up.
callIdID of the call.
snapshotSaved wrap-up;
nullfor calls without one.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CALL_NOT_FOUNDThe call does not exist or the key cannot see it.
Get the wrap-up form for a call
GET/v1/tenants/{tenantSlug}/lms/calls/{callId}/customer-form
Returns what an agent needs to wrap up a call: the lead's customer form and current values (masked fields are listed in maskedFields and their values left out) and the campaign's calling settings, including its dispositions and their revision. Needs call control permission and access to the call. Returns 409 once the outcome is saved or when the lead moved to another campaign.
Path parameters
callIdCall ID.
Responses
The wrap-up form.
customerCustomer fields and values for the call's lead.
settingsCalling settings of the campaign.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CALL_NOT_FOUNDThe call does not exist or the key cannot see it.- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
List my call follow-ups
GET/v1/tenants/{tenantSlug}/lms/calling/follow-ups
Lists open follow-ups (agreed callbacks) owned by the acting member, earliest due first, 20 per page. Paged with offset: pass nextOffset back as offset until it is null. Returns an empty list when the acting member cannot read leads. It acts as the API key's acting member, so it returns that member's own data, as an agent would see it in the calling workspace.
Query parameters
offsetItems to skip. Pass the previous page's
nextOffset.
Responses
One page of open follow-ups.
itemsFollow-ups on this page, soonest first.
nextOffsetPass as
offsetfor the next page;nullon the last page.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Reschedule, complete or cancel a follow-up
PUT/v1/tenants/{tenantSlug}/lms/calling/follow-ups/{callId}
Changes the follow-up created when the call identified by callId was saved with a callback. Only the follow-up's owner can change it; for anyone else it returns 404.
status: OPENwith a newdueAtreschedules it and publishescallback.scheduledagain with the same callback ID.dueAtmust be in the future.status: DONEmarks it completed;status: CANCELLEDdrops it. Leave outdueAtfor both.
Each change is noted on the lead's timeline. Send the follow-up's current revision as expectedRevision; if it changed in the meantime the request fails with 409. Repeating a change that was already applied returns the follow-up unchanged.
Path parameters
callIdCall ID.
Request body (application/json)
expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.statusCurrent status of the human follow up.
dueAtWhen it is due (ISO 8601).
Responses
The updated follow-up.
callIdCall the follow-up came from.
leadIdLead to follow up.
leadNameLead's name.
noteAgent's note.
dueAtWhen it is due (ISO 8601).
statusOPEN,DONEorCANCELLED.revisionRevision; send it as
expectedRevisionto change the follow-up.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CALL_NOT_FOUNDThe call does not exist or the key cannot see it.- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
List calling work that needs attention
GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-work-queue
Returns one of two supervisor queues, 50 items per page. OVERDUE_CALLBACKS lists open callbacks past their due time, oldest first, with owner and reason. RETRY_EXHAUSTED lists phone numbers that reached the campaign's attempt or technical retry limit and will not be dialed again automatically. Paged with offset: pass nextOffset back as offset until it is null. Needs calling management permission.
Path parameters
campaignIdCampaign ID.
Query parameters
viewOVERDUE_CALLBACKS(callbacks past due) orRETRY_EXHAUSTED(leads that used up their call attempts).offsetRows to skip, for paging (use
nextOffset).
Responses
One page of the queue.
itemsThe records in this response, in the documented order.
nextOffsetPass as
offsetto fetch the next page;nullon the last page.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.
List agents who can take over callbacks
GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-reassignment-options
Lists the team and member pairs that can take over a lead's callbacks: active agents assigned to the campaign, with calling permission and an enabled phone, in each active team they belong to. Use a pair with Reassign a callback. Needs calling management permission.
Path parameters
campaignIdCampaign ID.
Responses
Possible new owners.
itemsThe records in this response, in the documented order.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.
Reassign a callback
PUT/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-work-owner
Hands an open callback, identified by its call, to another agent. The lead is assigned to the chosen team and member (publishing lead.assigned) and every open callback for the lead moves to that member.
Needs calling management and lead edit permissions. Send the callback's current revision (from the work queue) as expectedRevision. Returns 409 when the callback changed, the agent is not an option for this campaign and team, or the lead has a call still open.
Path parameters
campaignIdCampaign ID.
Request body (application/json)
callIdID of the call.
expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.teamIdID of the team.
userIdID of the user.
Responses
The callback was reassigned.
savedAlways
true: the change was saved.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
Check whether a lead's numbers can be called
GET/v1/tenants/{tenantSlug}/lms/leads/{leadId}/call-eligibility
Evaluates every phone contact of the lead against the calling rules and returns, for each, whether it can be called now and if not, why and from when.
Rules checked include: do-not-call suppression (across all campaigns), recorded calling permission when the campaign requires consent, the campaign's calling hours and whether calling is running, paused cohorts, attempt limits per number and per 24 hours, retry delays after busy or unanswered calls, open calls, and agreed callbacks. eligibleAt is set when the number becomes callable at a known time.
Path parameters
leadIdLead ID.
Responses
Eligibility per phone contact.
itemsThe records in this response, in the documented order.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.LEAD_NOT_FOUNDThe lead does not exist or the key cannot see it.
Get a number's calling permission
GET/v1/tenants/{tenantSlug}/lms/leads/{leadId}/contacts/{contactId}/calling-permission
Returns the calling permission recorded for the contact's phone number: UNKNOWN (nothing recorded), GRANTED or WITHDRAWN, with the evidence and revision. Permission belongs to the number, so it applies to every lead with the same number. Needs calling management permission.
Path parameters
leadIdLead ID.
contactIdContact ID.
Responses
The calling permission.
statusCurrent status of the contact permission.
evidenceHow the permission was recorded.
revisionRevision number, increased on every change. Send it back as
expectedRevisionwhen you update.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.LEAD_NOT_FOUNDThe lead does not exist or the key cannot see it.CONTACT_NOT_FOUNDThe contact does not exist or the key cannot see it.
Record a number's calling permission
PUT/v1/tenants/{tenantSlug}/lms/leads/{leadId}/contacts/{contactId}/calling-permission
Records that the customer granted or withdrew permission to be called on this number, with evidence of at least 10 characters (where and when consent was given or withdrawn). Permission belongs to the number and applies to every lead with it.
WITHDRAWNmarks the number as do-not-call across all campaigns; it is no longer dialed.GRANTEDlifts a do-not-call mark recorded by an agent, and satisfies campaigns that require consent before calling.
Needs calling management permission. Send the current revision as expectedRevision (0 when nothing is recorded); if it changed in the meantime the request fails with 409.
Path parameters
leadIdLead ID.
contactIdContact ID.
Request body (application/json)
statusCurrent status of the contact permission.
evidenceHow the permission was recorded.
expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.
Responses
The saved calling permission.
statusCurrent status of the contact permission.
evidenceHow the permission was recorded.
revisionRevision number, increased on every change. Send it back as
expectedRevisionwhen you update.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.LEAD_NOT_FOUNDThe lead does not exist or the key cannot see it.CONTACT_NOT_FOUNDThe contact does not exist or the key cannot see it.STALE_REVISIONThe record changed after your read (expectedRevision); read it again and resend.
Get a campaign's calling settings
GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling
Returns whether agent calling is enabled for the campaign, its purpose (service/transactional or promotional), its contact policy (consent requirement, attempt limits and retry delays) and its dispositions: the outcomes agents choose from, optionally nested up to four levels, with the customer fields each one requires. Use revision as dispositionRevision when saving a call outcome.
Path parameters
campaignIdCampaign ID.
Responses
The campaign's calling settings.
contactPolicyHow often and when leads may be called.
dispositionsOutcomes agents pick from at wrap-up.
campaignIdCampaign ID.
enabledWhether human calling is on for the campaign.
purposeSERVICE_TRANSACTIONALorPROMOTIONAL; promotional calls follow stricter consent rules.revisionRevision; send it as
expectedRevisionwhen saving.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.
Save a campaign's calling settings
PUT/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling
Enables or disables agent calling for the campaign and sets its purpose, contact policy and dispositions. Leave out contactPolicy or dispositions to keep the current ones.
Dispositions follow these rules: keys are unique; at least one active disposition must record a call without a conversation; an active do-not-call disposition must remain so agents can record opt-outs; existing dispositions cannot be removed or moved to another outcome (retire them with active: false); required customer fields must be active and visible to agents.
Needs calling or campaign management permission. Send the current revision as expectedRevision; a stale revision or a broken disposition rule returns 409.
Path parameters
campaignIdCampaign ID.
Request body (application/json)
contactPolicyHow often and when leads may be called.
dispositionsOutcomes agents pick from at wrap-up.
enabledWhether it is turned on.
purposeSERVICE_TRANSACTIONALorPROMOTIONAL; promotional calls follow stricter consent rules.expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.
Responses
The saved calling settings.
contactPolicyHow often and when leads may be called.
dispositionsOutcomes agents pick from at wrap-up.
campaignIdCampaign ID.
enabledWhether human calling is on for the campaign.
purposeSERVICE_TRANSACTIONALorPROMOTIONAL; promotional calls follow stricter consent rules.revisionRevision; send it as
expectedRevisionwhen saving.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.CALL_SETTINGS_STALEThe settings changed after you read them; read them again and resend.
Get a campaign's pacing
GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/pacing
Returns the campaign's dialing policy and the latest pacing decision.
The policy covers the assigned agents, whether agents dial manually or receive calls automatically (agentMode), whether calling is running, calling hours (timezone, days with 0 = Sunday, and startMinute/endMinute in minutes after midnight, or weeklyWindows), and the pace: calls started per second (cps), calls per available agent (dialRatio) and the limit of calls in progress. mode controls pacing automation: OBSERVE only measures, RECOMMEND suggests values, AUTOMATIC adjusts the pace itself.
decision holds the latest measurement (answer rate, talk and wrap-up times, recommended pace and telephony capacity); it is null until pacing has run.
Path parameters
campaignIdCampaign ID.
Responses
The pacing policy and latest decision.
campaignIdCampaign ID.
revisionPolicy revision; send it as
expectedRevisionwhen saving.policyCurrent dialler policy.
decisionLatest pacing decision;
nullbefore the first one.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.
Save a campaign's pacing
PUT/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/pacing
Replaces the campaign's dialing policy: assigned agents, agent mode, calling hours, pace and automation mode (see Get a campaign's pacing). Set running: false to pause new calls at once; calls already in progress continue.
Every newly assigned agent must be an active member with calling permission and an enabled phone. AUTOMATIC mode can only be turned on after the campaign has run in RECOMMEND mode.
Needs calling or campaign management permission. Send the current revision as expectedRevision. Returns 409 when the revision is stale, an agent cannot take calls, the automation step is skipped, or a customer-first pool is changed or already used by another campaign.
Path parameters
campaignIdCampaign ID.
Request body (application/json)
expectedRevisionThe
revisionfrom your last read;409if it changed since.policyThe complete new policy.
Responses
The saved pacing policy.
campaignIdCampaign ID.
revisionPolicy revision; send it as
expectedRevisionwhen saving.policyCurrent dialler policy.
decisionLatest pacing decision;
nullbefore the first one.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
List calling cohorts
GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-cohorts
Lists the campaign's calling cohorts. A cohort is a named group of leads, either one import batch or a hand-picked list, that you can pause and resume together: leads in a disabled cohort are not dialed. Each cohort shows its current lead count. Needs calling management permission.
Path parameters
campaignIdCampaign ID.
Responses
The campaign's cohorts.
itemsThe records in this response, in the documented order.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.
List leads and batches for calling cohorts
GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-cohort-options
Lists what a cohort can be built from: the campaign's leads (newest first, 100 per page) and the 100 most recent import batches that contain the campaign's leads. Paged with offset: pass nextOffset back as offset until it is null. The offset pages the leads only. Needs calling management permission.
Path parameters
campaignIdCampaign ID.
Query parameters
offsetItems to skip. Pass the previous page's
nextOffset.
Responses
Leads and batches.
leadsLeads you can pick from.
batchesImport batches you can pick from.
nextOffsetPass as
offsetto fetch the next page;nullon the last page.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.
Create or update a calling cohort
PUT/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-cohorts/{cohortId}
Creates the cohort with the ID you choose (a new UUID, with expectedRevision: 0) or updates it. Give either a batchId or up to 1,000 leadIds from the campaign, not both. enabled: false pauses calling for its leads. A campaign can have up to 100 cohorts. Needs calling management permission. A stale expectedRevision or the cohort limit returns 409.
Path parameters
campaignIdCampaign ID.
cohortIdCalling cohort ID.
Request body (application/json)
expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.nameName of the calling cohort, as shown in the LMS.
enabledWhether it is turned on.
batchIdID of the batch;
nullif none.leadIdsIDs of the lead records.
Responses
All of the campaign's cohorts after the change.
itemsThe records in this response, in the documented order.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.- The change conflicts with the record's current state or a workflow rule;
error.codenames it.
List members who can be assigned to a campaign
GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/agent-options
Lists active members with calling permission and an enabled phone, the people you can put in the pacing policy's agentIds. Agents already assigned to this campaign come first and are always included; search filters the others by name. Returns up to 500 members. Needs calling or campaign management permission.
Path parameters
campaignIdCampaign ID.
Query parameters
searchPart of a member's name. Empty returns every eligible member.
Responses
Assignable members.
itemsThe records in this response, in the documented order.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.
Get live agent states for a campaign
GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/agents
Returns every agent assigned to the campaign with their live state (ON_CALL, WRAP_UP, IDLE, BREAK, OFFLINE or UNAVAILABLE), since when, the current call and lead, and the break or unavailability reason, plus a count per state. streamHealthy: false means live updates from telephony are delayed, so states may be stale. Needs calling or campaign management permission.
Path parameters
campaignIdCampaign ID.
Responses
Live agent states.
campaignIdCampaign ID.
observedAtWhen these states were read (ISO 8601).
streamHealthyWhether live telephony updates are flowing; when
false, states may lag.countsNumber of agents in each state.
agentsOne row per agent.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.
Get an agent activity report
GET/v1/tenants/{tenantSlug}/lms/campaigns/{campaignId}/calling-report
Reports how each agent in the campaign spent a period of up to 31 days: a timeline of states (ready, ringing, talking, wrap-up, break, offline), seconds per state, and counts of attempts, conversations, retries and callbacks scheduled, completed and overdue. Filter to one agent with userId. Agents are paged with offset; pass nextOffset back until it is null. Needs calling management permission.
Path parameters
campaignIdCampaign ID.
Query parameters
fromStart of the report period (ISO 8601).
toEnd of the report period (ISO 8601).
userIdOnly this agent.
offsetAgents to skip, for paging (use
nextOffset).
Responses
The activity report.
fromStart of the report period.
toEnd of the report period.
observedAtWhen the report was computed.
campaignIdCampaign ID.
nextOffsetPass as
offsetfor more agents;nullon the last page.agentsOne row per agent.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thecalling.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CAMPAIGN_NOT_FOUNDThe campaign does not exist or the key cannot see it.