Skip to navigation

Batch status

Sent once per batch created with webhook_mode: BATCH, when every number has a send result (usually about 1 minute after the request). If a number is still pending after 30 minutes, the webhook is sent anyway with that number as QUEUED_PROVIDER.

After this webhook, only later changes of a number (a DELIVERED, a READ or a late FAILED) are notified individually with batch_id; a status already included here is not repeated. A batch that could not be processed is notified with status: FAILED, an error and the unprocessed list, in any webhook_mode.

Payload

The payload of this webhook request is an object.
type"BATCH"Optional

Always BATCH. Distinguishes this webhook from the individual ones.

batch_idstringOptional
statusenumOptional
Allowed values:
datetimedatetimeOptional
totalintegerOptional
summarymap from strings to integersOptional

Number of recipients per status (COMPLETED only).

messageslist of objectsOptional
Status of each number, in the order of the request.
errorstringOptional

Reason of the failure (FAILED only).

unprocessedlist of stringsOptional

message_id that were never sent (FAILED only).

Response

200
Event received and processed by the client.