List Outbound Communication Batches
/api/v1/outbound/batchesAuthentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Query parameters
page
integer | null
query
optional
The page number from which to start (0-based)
0Minimum 0Example 0limit
integer
query
optional
The maximum number of items to return
25Minimum 0Example 25search_fields
enum<string>[]
query
optional
String names of fields to search. Correspond by index to search field values
[]Example nameItem schema
itemsenum<string>required["batch_id","campaign_id","status","expires_on","last_updated_at"]search_field_values
string[]
query
optional
Values of fields to search. Correspond by index to search fields. Unless field name contains "list", an individual search field value cannot be a list
[]Example Some Object NameItem schema
itemsstringrequiredorder_by
enum<string> | null
query
optional
The field whose value should be used to order the results
["batch_id","campaign_id","status","expires_on","last_updated_at"]Example nameorder_by_direction
enum<string> | null
query
optional
The direction in which to order the results
["asc","desc"]fields
enum<string>[] | null
query
optional
The fields to include in the response
[]Example []Item schema
itemsenum<string>required["batch_id","campaign_id","status","expires_on","last_updated_at"]start_datetime
string | null
query
optional
The start datetime for filtering results
2023-01-01T00:00:00Zend_datetime
string | null
query
optional
The end datetime for filtering results
2024-01-01T00:00:00ZResponses
200Successful Response
application/json
response
ListResponse_CommunicationBatch_
required
5 fields
itemsCommunicationBatch[]requiredList of items returned from the query
Item schema
itemsCommunicationBatchrequired16 fields
batch_idstringrequiredUnique ID for conversation batch
campaign_idintegerrequiredUnique ID for campaign
expires_onstring (date-time) | nulloptionalTimestamp of batch expiration
pausedboolean | nulloptionalWhether the batch is on HOLD. When on HOLD, no outreach will be made.
call_rateinteger | nulloptionalTarget number of outreach attempts per hour for this batch. When omitted, the batch inherits the campaign's hourly_rate.
1Maximum 3600auto_call_ratebooleanoptionalPace this batch automatically to finish before expires_on, counting only the campaign's valid hours (daily_start_time..daily_end_time on active_days). The derived rate takes precedence over call_rate and over the campaign hourly_rate. Requires expires_on.
falsestatusenum<string>optionalStatus of batch
["PENDING","ACTIVE","PAUSED","FAILED","CANCELED","EXPIRED"]Default PENDINGauto_call_rate_baselinenumber | nulloptionalRead-only. The auto-paced rate first computed for this batch, set on its first dialing cycle. Subsequent cycles hold the rate within +/- 20% of it. Null until the batch has dialed, or when auto_call_rate is off.
upload_filenamestring | nulloptionalName of file used to create batch
dispatch_idstring | nulloptionalA unique identifier for dipatched job
created_atstring (date-time)optionalTimestamp of batch creation
deleted_atstring (date-time) | nulloptionalTimestamp of batch deletion
deleted_reasonstring | nulloptionalReason for batch deletion
last_updated_atstring (date-time) | nulloptionalTimestamp of last change to batch
last_updated_bystringrequiredEmail of user who last updated campaign
error_messagestring | nulloptionalError message if batch upload failed
pageintegerrequiredThe page number of the results (0-based)
page_sizeintegerrequiredThe number of items returned per page
total_pagesinteger | nulloptionalThe total number of pages of results given the indicated page size
total_countinteger | nulloptionalThe total number of items returned from the query
Response example
{
"items": [
{
"batch_id": "string",
"campaign_id": 0,
"expires_on": "string",
"paused": "string",
"call_rate": "string",
"auto_call_rate": false,
"status": "PENDING",
"auto_call_rate_baseline": "string",
"upload_filename": "string",
"dispatch_id": "string",
"created_at": "string",
"deleted_at": "string",
"deleted_reason": "string",
"last_updated_at": "string",
"last_updated_by": "string",
"error_message": "string"
}
],
"page": 0,
"page_size": 0,
"total_pages": "string",
"total_count": "string"
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
