Skip to main content

Batch Review

A Batch Review provides a validation layer for batch tasks before execution.

When you create a batch task, it has an option to review the items. To enable it, the review field of the Task object must be set to true. When review is set to true, the task will pause in the pending_review state until manually approved or cancelled.

To see the review items and check if they are valid or need corrections, you can use the Get Task Review Items by SID method. It will return the Batch Review Response object with the list of the items, which can be reviewed.

The Download CSV of Task Review Items by SID method can also be used to download the list of the task review items in the CSV format for a more convenient visual representation.

If the changes look correct, you can send a PATCH or PUT request to change the status from pending_review to approved. If the items look incorrect, the batch request can be prevented from proceeding by changing the status to cancelled.

Batch Review Response Object

AttributeData TypeDescription
method
read only
string

The batch review method. Values accepted in this field are: DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, and TRACE.

review_items
read only
array of objects

Items to be reviewed before approving the batch task. Refer to the table below for more information.

type
read only
string

Batch task type. Values accepted in this field are phonenumber, prefix or file.

Batch Review Item Object

AttributeData TypeDescription
description
read only
string

Textual description of the review item and its purpose.

fields
read only
object

Batch review item fields, which require reviewing.

sid
read only
string

Batch review item secure ID.

version
read only
integer

Version number of the review item record.