Voicebot
Voicebot call batches, requests and campaign configuration.
Run a Voicebot batch
Pick a calling profile and caller ID.
Pick the Voicebot version and, to record, a consent policy.
GETList Voicebots available to a campaignGETList recording consent policies
Save and publish the campaign's configuration.
PUTSave the Voicebot configurationPOSTPublish the Voicebot configuration
Preview the batch, then submit it.
POSTPreview a Voicebot call batchPOSTSubmit a Voicebot call batch
Track requests and attempts.
GETGet a Voicebot call batchGETList Voicebot call requestsGETGet a Voicebot call attempt
On this page
Profiles and usage
Campaign configuration
Batches
Requests and attempts
List calling profiles
GET/v1/tenants/{tenantSlug}/voicebot/calling-profiles
Lists the calling profiles assigned to the workspace, with their caller IDs, concurrency limit and health. A Voicebot configuration names one profile and one of its caller IDs.
Responses
Every calling profile of the workspace, in one response.
itemsThe records in this response, in the documented order.
nextCursorAlways
null: every calling profile comes in this one response.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Get Voicebot usage
GET/v1/tenants/{tenantSlug}/voicebot/calls/usage
Summarises Voicebot calling between two dates (inclusive, at most 90 days apart): attempts, connected calls, outcomes, talk and billable seconds. Filter by campaign, calling profile, caller number, Voicebot version or outcome. Returns 503 while usage reporting is unavailable.
Query parameters
endDateLast day of the period (
YYYY-MM-DD), inclusive.startDateFirst day of the period (
YYYY-MM-DD).botVersionIdID of the bot version.
callingProfileIdID of the calling profile.
campaignIdID of the campaign.
numberIdID of the number.
outcomeOutcome, from the values below.
Responses
Usage summary.
answeredCountNumber of answered records.
attemptCountNumber of attempt records.
billableSecondsBillable, in seconds.
callerNumbersUsage per caller number.
completedCountNumber of completed records.
connectedCountNumber of connected records.
failedCountNumber of failed records.
outcomeCountsNumber of calls per outcome.
quotaPlan allowance for the period;
nullwhen unlimited.retryCountNumber of retry records.
ringSecondsRing, in seconds.
streamSecondsStream, in seconds.
talkSecondsTalk, in seconds.
uncertainCountNumber of uncertain records.
uniqueLeadCountNumber of unique lead records.
windowEndEnd of the usage period (ISO 8601).
windowStartStart of the usage period (ISO 8601).
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- A service this operation depends on is temporarily unavailable; retry with backoff.
List Voicebots available to a campaign
GET/v1/tenants/{tenantSlug}/campaigns/{campaignId}/available-voicebots
Lists the active Voicebot versions built for the campaign's process. Use a version's versionId as voicebotProfileVersionId, and its language as the configuration's language.
Path parameters
campaignIdCampaign ID.
Responses
Every available Voicebot version, in one response.
itemsThe records in this response, in the documented order.
nextCursorPass as
cursorto fetch the next page;nullon the last page.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.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 recording consent policies
GET/v1/tenants/{tenantSlug}/campaigns/{campaignId}/available-consent-policies
Lists the active recording consent policy versions for a language. Recording Voicebot calls requires one: set recordingEnabled: true and its version ID as recordingConsentPolicyVersionId; its language must match the configuration's.
Path parameters
campaignIdCampaign ID.
Query parameters
languageLanguage, as an IETF tag such as
en-INorhi-IN.
Responses
Every active consent policy version, in one response.
itemsThe records in this response, in the documented order.
nextCursorPass as
cursorto 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 thevoicebot.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 a campaign's Voicebot configuration
GET/v1/tenants/{tenantSlug}/campaigns/{campaignId}/voicebot-configuration
Returns the current draft and the latest published version number (publishedVersion, null if never published). Returns 404 until a draft has been saved. Voicebot settings follow a draft and publish lifecycle: Save the Voicebot configuration edits a draft, Publish the Voicebot configuration turns the draft into a new immutable version, and only published versions are used for calls.
Path parameters
campaignIdCampaign ID.
Responses
The campaign's Voicebot configuration draft, with the latest published version.
callingProfileIdID of the calling profile.
callerIdIdID of the caller ID.
callingWindowsWhen the voicebot may call: one entry per window.
campaignIdID of the campaign.
languageLanguage, as an IETF tag such as
en-INorhi-IN.maxAttemptsMost call attempts per lead.
outcomeMappingsWhich lead stage or disposition each voicebot outcome maps to.
recordingConsentPolicyVersionIdID of the recording consent policy version;
nullif none.recordingEnabledRecord voicebot calls.
retryBotFailureAfterAnswerRetry a call when the bot failed after the customer answered.
publishedVersionPublished configuration version;
nullbefore the first publish.retryDelaysMinutesRetry delays, in minutes.
revisionRevision number, increased on every change. Send it back as
expectedRevisionwhen you update.timezoneIANA time zone, for example
Asia/Kolkata.updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.voicebotProfileVersionIdID of the voicebot profile version.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.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 the Voicebot configuration
PUT/v1/tenants/{tenantSlug}/campaigns/{campaignId}/voicebot-configuration
Creates or replaces the campaign's Voicebot draft. Voicebot settings follow a draft and publish lifecycle: Save the Voicebot configuration edits a draft, Publish the Voicebot configuration turns the draft into a new immutable version, and only published versions are used for calls.
Rules checked on save and again on publish (409 when they fail): the campaign's VOICEBOT module is enabled; the calling profile and caller ID are ready; the Voicebot version belongs to the campaign's process and speaks language; with recordingEnabled, the consent policy version is active and in the same language; outcome mappings point at active stages of the process.
Calling windows are local to timezone, use days 0 (Sunday) to 6 (Saturday) and may not overlap on the same day. retryDelaysMinutes has exactly maxAttempts - 1 entries.
Send the draft's current revision as expectedRevision (omit it, or send 0, for the first save); a stale revision returns 409.
Path parameters
campaignIdCampaign ID.
Request body (application/json)
callingProfileIdID of the calling profile.
callerIdIdID of the caller ID.
callingWindowsWhen the voicebot may call: one entry per window.
expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.languageLanguage, as an IETF tag such as
en-INorhi-IN.maxAttemptsMost call attempts per lead.
outcomeMappingsWhich lead stage or disposition each voicebot outcome maps to.
recordingConsentPolicyVersionIdID of the recording consent policy version;
nullif none.recordingEnabledRecord voicebot calls.
retryBotFailureAfterAnswerRetry a call when the bot failed after the customer answered.
retryDelaysMinutesRetry delays, in minutes.
timezoneIANA time zone, for example
Asia/Kolkata.voicebotProfileVersionIdID of the voicebot profile version.
Responses
The saved draft.
callingProfileIdID of the calling profile.
callerIdIdID of the caller ID.
callingWindowsWhen the voicebot may call: one entry per window.
campaignIdID of the campaign.
languageLanguage, as an IETF tag such as
en-INorhi-IN.maxAttemptsMost call attempts per lead.
outcomeMappingsWhich lead stage or disposition each voicebot outcome maps to.
recordingConsentPolicyVersionIdID of the recording consent policy version;
nullif none.recordingEnabledRecord voicebot calls.
retryBotFailureAfterAnswerRetry a call when the bot failed after the customer answered.
publishedVersionPublished configuration version;
nullbefore the first publish.retryDelaysMinutesRetry delays, in minutes.
revisionRevision number, increased on every change. Send it back as
expectedRevisionwhen you update.timezoneIANA time zone, for example
Asia/Kolkata.updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.voicebotProfileVersionIdID of the voicebot profile version.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.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.VOICEBOT_CONFIGURATION_STALEThe draft changed after you read it; read it again and resend.
Publish the Voicebot configuration
POST/v1/tenants/{tenantSlug}/campaigns/{campaignId}/voicebot-configuration/publish
Publishes the current draft as the campaign's next configuration version. New call batches use it; requests already queued keep the version they were created with. Send the draft's revision as expectedRevision so you publish exactly what you reviewed; a stale revision, or a draft that no longer passes the save rules, returns 409.
Path parameters
campaignIdCampaign ID.
Request body (application/json)
expectedRevisionThe
revisionfrom your last read. If the record changed since, the request fails with409and nothing is saved.
Responses
The configuration with the new publishedVersion.
callingProfileIdID of the calling profile.
callerIdIdID of the caller ID.
callingWindowsWhen the voicebot may call: one entry per window.
campaignIdID of the campaign.
languageLanguage, as an IETF tag such as
en-INorhi-IN.maxAttemptsMost call attempts per lead.
outcomeMappingsWhich lead stage or disposition each voicebot outcome maps to.
recordingConsentPolicyVersionIdID of the recording consent policy version;
nullif none.recordingEnabledRecord voicebot calls.
retryBotFailureAfterAnswerRetry a call when the bot failed after the customer answered.
publishedVersionPublished configuration version;
nullbefore the first publish.retryDelaysMinutesRetry delays, in minutes.
revisionRevision number, increased on every change. Send it back as
expectedRevisionwhen you update.timezoneIANA time zone, for example
Asia/Kolkata.updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen you update.voicebotProfileVersionIdID of the voicebot profile version.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.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.VOICEBOT_CONFIGURATION_STALEThe draft changed after you read it; read it again and resend.
Preview a Voicebot call batch
POST/v1/tenants/{tenantSlug}/voicebot/calls/batches/preview
Checks which leads a batch would call, without creating anything. Leads are excluded when they are not in the campaign, the campaign has no ready published Voicebot configuration, the lead has no valid phone number, the number is suppressed, or the lead already has an active call request. Preview before Submit a Voicebot call batch and show the exclusions to the user.
Request body (application/json)
campaignIdID of the campaign.
leadIdsIDs of the lead records.
Responses
Eligible leads and exclusions.
eligibleLeadIdsIDs of the eligible lead records.
exclusionsLeads left out, with the reason for each.
requestedCountNumber of requested records.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Submit a Voicebot call batch
POST/v1/tenants/{tenantSlug}/voicebot/calls/batches
Queues Voicebot calls for up to 500 unique leads of one campaign, using the campaign's latest published Voicebot configuration. Eligibility is checked again at submission (see Preview a Voicebot call batch); ineligible leads are listed in exclusions and the rest get one call request each, dialled within the configuration's calling windows and retried per its retry rules.
The batch is accepted even when every lead is excluded (acceptedCount: 0). Resubmitting the same leads does not call them twice: leads with an active request are excluded. An unknown campaign returns 404; if eligibility changes while the batch is being created the request fails with 409 and can be retried.
Request body (application/json)
campaignIdID of the campaign.
leadIdsIDs of the lead records.
Responses
The batch.
LocationURL of the new batch.
acceptedCountNumber of accepted records.
campaignIdID of the campaign.
createdAtWhen it was created (ISO 8601).
createdByUser ID of the member who created it.
exclusionsLeads left out, with the reason for each.
idID of the call batch.
requestedCountNumber of requested records.
statusCurrent status of the call batch.
tenantIdID of the workspace.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record does not exist or the key cannot see it.
CALL_BATCH_ELIGIBILITY_STALELead eligibility changed since the preview; preview again.
Get a Voicebot call batch
GET/v1/tenants/{tenantSlug}/voicebot/calls/batches/{batchId}
Path parameters
batchIdBatch ID.
Responses
The batch.
acceptedCountNumber of accepted records.
campaignIdID of the campaign.
createdAtWhen it was created (ISO 8601).
createdByUser ID of the member who created it.
exclusionsLeads left out, with the reason for each.
idID of the call batch.
requestedCountNumber of requested records.
statusCurrent status of the call batch.
tenantIdID of the workspace.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.BATCH_NOT_FOUNDThe batch does not exist or the key cannot see it.
List Voicebot call requests
GET/v1/tenants/{tenantSlug}/voicebot/calls/requests
Lists call requests (one per lead per batch), optionally filtered by campaign and status. A request moves from QUEUED through IN_PROGRESS to a final status such as COMPLETED, EXHAUSTED (attempts used up), SUPPRESSED, CANCELLED or FAILED. Paged with an opaque cursor: pass nextCursor back as cursor until it is null.
Query parameters
campaignIdID of the campaign.
statusCurrent status of the voicebot call request.
cursornextCursorfrom the previous page.limitMaximum number of records to return in one page.
Responses
One page of call requests.
itemsThe records in this response, in the documented order.
nextCursorPass as
cursorto 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 thevoicebot.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.
Cancel a Voicebot call request
POST/v1/tenants/{tenantSlug}/voicebot/calls/requests/{requestId}/cancel
Stops further attempts for a call request and records why. A call already in progress is asked to end. Requests that have already finished cannot be cancelled (409).
Path parameters
requestIdCall request ID.
Request body (application/json)
reasonWhy you are cancelling (3–500 characters); kept in the audit trail.
Responses
The cancelled request.
attemptsUsedAttempts made so far.
batchIdID of the batch.
campaignIdID of the campaign.
configurationVersionIdID of the configuration version.
createdAtWhen it was created (ISO 8601).
idID of the call.
latestAttemptIdID of the latest attempt;
nullif none.leadIdID of the lead.
maxAttemptsMost call attempts per lead.
nextEligibleAtNext eligible time (ISO 8601);
nullif not yet.statusCurrent status of the call.
terminalReasonWhy the request stopped for good;
nullwhile it can still be retried.updatedAtWhen it last changed (ISO 8601). Send it back as
expectedUpdatedAtwhen 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 thevoicebot.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.- The record 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.
Get a Voicebot call attempt
GET/v1/tenants/{tenantSlug}/voicebot/calls/attempts/{attemptId}
Returns one dial attempt: telephony timings, talk and billable seconds, the Voicebot outcome, the event timeline, recordings and transcripts (media) and any open exceptions. The destination number is masked.
Path parameters
attemptIdCall attempt ID.
Responses
The attempt.
answeredAtWhen the call was answered;
nullif never.attemptNumber1 for the first try, then 2, 3… for retries.
billableSecondsSeconds the carrier bills for;
nulluntil known.callRequestIdCall request this attempt belongs to.
callerNumberCaller ID used.
completedAtWhen it was completed (ISO 8601);
nullif not yet.createdAtWhen it was created (ISO 8601).
destinationMaskedNumber dialled, partly masked.
exceptionsProblems recorded for the attempt that need attention.
externalCallIdTelephony provider's call ID.
failureCodeMachine-readable reason the attempt failed;
nullunless it failed.finalOutcomeVoicebot outcome of the conversation;
nulluntil known.idID of the call attempt.
interactionIdConversation the attempt belongs to.
mediaRecordings and other media of the attempt.
providerEndedAtWhen the carrier reported the end of the call.
providerHangupCauseCarrier's hang-up cause, for example
NORMAL_CLEARING.ringingAtWhen the phone started ringing.
statusCurrent status of the attempt.
streamStartedAtWhen the voicebot audio stream started.
talkSecondsSeconds after answer;
nulluntil known.timelineEvery event of the attempt, oldest first.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CALL_ATTEMPT_NOT_FOUNDThe call attempt does not exist or the key cannot see it.
Reconcile a Voicebot call attempt
POST/v1/tenants/{tenantSlug}/voicebot/calls/attempts/{attemptId}/reconcile
Asks LMS to re-check an attempt's final state with the telephony provider and the Voicebot, for example when an attempt is stuck or its outcome is missing. Reconciliation runs in the background; read the attempt again later.
Path parameters
attemptIdCall attempt ID.
Responses
Reconciliation was queued.
acceptedAlways
true: the request was accepted.attemptIdID of the attempt.
Errors
PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.writescope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.CALL_ATTEMPT_NOT_FOUNDThe call attempt does not exist or the key cannot see it.
List Voicebot call exceptions
GET/v1/tenants/{tenantSlug}/voicebot/calls/exceptions
Lists operational problems detected on Voicebot calls (missing outcomes, conflicting callbacks, stuck reservations, recording or transcript issues), most recently observed first. Returns up to limit items; nextCursor is always null, so narrow with category and status instead of paging.
Query parameters
categoryCategory, from the values below.
statusCurrent status of the voicebot call exception.
limitMaximum number of records to return in one page.
Responses
Up to limit exceptions, in one response.
itemsThe records in this response, in the documented order.
nextCursorAlways
null: this list is not paged. Narrow it with thecategoryandstatusfilters instead.
Errors
VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_OPERATION_FORBIDDENThe key lacks thevoicebot.readscope.PERMISSION_DENIEDThe key's acting member lacks the permission or data access.