Batches
batches
Methods
post/batches/{batch_id}/cancel
Cancels an in-progress batch. The batch will be in status cancelling for up to 10 minutes, before changing to cancelled, where it will have partial results (if any) available in the output file.
post/batches
Creates and executes a batch from an uploaded file of requests
get/batches
List your organization's batches.
Security
Bearer Auth
Example: Authorization: Bearer My API Key
Parameters
after?: string
A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
limit?: number
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Response fields
Request example
200Example
get/batches/{batch_id}
Retrieves a batch.
Domain types
Batch = { id, completion_window, created_at, 17 more... }
BatchError = { code, line, message, 1 more... }
BatchRequestCounts = { completed, failed, total }