Bulk call results
List per-contact results for a campaign.
Each row has what happened on the call, the variables you sent, and
call.recording_id.
Paging
Call with no cursor. Then pass back the next_cursor you were given until
it is null. Rows come oldest first. pagesize defaults to 30 and goes up
to 150. Cursors are opaque, so never build one. No contact is skipped or
returned twice, even while the campaign dials.
cursor = None
while True:
page = GET /lines?pagesize=150&cursor={cursor}
handle(page["records"])
cursor = page["next_cursor"]
if not cursor: break
Transcripts are not in the row
Transcripts reach 212 KB, so rows carry only call.recording_id. Fetch the
transcript from GET /calls/logs/{recording_id}.
Path parameters
bulk_call_idintegerrequiredId of the bulk call campaign.
Query parameters
cursorstringThe next_cursor from your previous response. Omit it on the first
request. Opaque: pass it back unchanged.
pagesizeintegerRows per page. Above 150 the request is refused.
Default 30Range at most 150
call_statusenumReturn only contacts in this state.
One of: PendingIn Progresscompletedvoicemail_detectedno-answerbusyFailedSkippedretry_scheduledcancelled
interaction_statusstringReturn only contacts with this interaction outcome.
searchstringAn exact phone number, matched against the contact's number and the number that called it. Not a substring search.
include_totalbooleanAdd total_records to the response. It costs a count over the whole
filtered campaign, so it is off unless you ask. Ask for it once to
fill a header, not on every page of a walk.
Default false
user_idintegerresellers onlyReseller keys only: act as one of your clients by its user id. Omit it to act on your own account. How acting for a client works.
Was this page helpful?
