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.
Security
Bearer Auth
Example: Authorization: Bearer My API Key
Parameters
batch_id: string
Response fields
Request example
200Example
post/batches
Creates and executes a batch from an uploaded file of requests
get/batches
List your organization's batches.
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 }