/batchesCreate and execute a batch
Creates and executes a batch from an uploaded file of requests. Supply the required input_file_id, endpoint, and completion_window; the batch endpoint must be one of the supported API paths, and the only supported completion window is 24h. The response includes the batch status so you can track processing.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Batch configuration containing an uploaded request file, the endpoint to run, and the processing window.
A 400 is returned when the request is invalid or the account cannot create a batch; a 429 is returned when a rate limit is exceeded. A 500 is returned when an internal error prevents creation, and a 503 is returned when the service is temporarily unavailable. input_file_id, endpoint, and completion_window are required; completion_window must be 24h, and output_expires_after.seconds must be between 3600 and 2592000 when provided.