Skip to main content
GET
Returns a batch’s status, its counts and cost, and, once it has ended, links to its results. Poll this until status is ended or failed. Read-only API keys are allowed.

Path Parameters

string
required
The batch_id from Create a Batch.

Response

string
validating, in_progress, canceling, finalizing, ended or failed. See Follow the batch.
object
Messages by outcome: processing, succeeded, errored, canceled, expired.
object
Checked messages by verdict: approved, needs_changes, do_not_send, and flagged (needs_changes + do_not_send). other counts any other verdict, such as send with caution, and appears only when it isn’t zero. Updated as messages finish.
integer
Messages that run. With skip_problem_rows, this excludes skipped_items.
integer
Lines dropped by skip_problem_rows.
object
estimate: units and amount, set when the file is read. actual: what was billed, set when the batch ends.
object
The rules every message ran with, as resolved when the batch was created.
object | null
The metadata you sent, unchanged.
object | null
Set when status is failed: reason (for example invalid_input, pricing_unavailable, quota_exceeded) and line-numbered errors.
string | null
A link to the results JSONL, one line per message. Valid until results_url_expires_at, an hour at most; get the batch again for a fresh link.
object
Links to jsonl, xlsx, workbook (the audit workbook) and pdf (the audit report). Each is {url, expires_at} or null. workbook and pdf are set once report_status is ready.
string | null
Progress of the audit workbook and PDF report built after the batch ends: pending, building, ready or failed.
string | null
When the input, results and reports are deleted: 14 days after the batch ends. After that, results_url and files are null. The batch record stays.
string
When the batch reached each stage, and when it expires.

Errors