Example usage for the Message Batches API
id
, which is provided in the response when creating request or by listing batches. Example id
: msgbatch_013Zva2CMHLNnXjNJJKqJ2EF
.
ended
, you will be able to view the results_url
of the batch and retrieve results in the form of a .jsonl
file.
processing_status
will be canceling
. You can use the same polling for batch completion technique to poll for when cancellation is finalized as canceled batches also end up ended
and may contain results.