Phase 2 of 2-phase batch API. Accepts an NDJSON stream of batch items and enqueues them. Each line in the body should be a valid BatchItemNDJSON object. The stream is processed with backpressure - items are enqueued as they arrive. The batch is sealed when the stream completes successfully.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The batch ID returned from POST /api/v3/batches
NDJSON (newline-delimited JSON) stream where each line is a BatchItemNDJSON object. Example: {"index":0,"task":"my-task","payload":{"key":"value1"}} {"index":1,"task":"my-task","payload":{"key":"value2"}}
Items successfully processed
The batch ID.
Number of items successfully accepted.
Number of items that were deduplicated (already enqueued).
Whether the batch was sealed and is ready for processing. If false, the batch needs more items before processing can start. Clients should check this field and retry with missing items if needed.
Total items currently enqueued. Only present when sealed=false to help with retries.
Expected total item count. Only present when sealed=false to help with retries.