Methods: client.CreateBatch(...), client.RetrieveBatch(...), client.CancelBatch(...), client.GetAsyncJobWebSocketURL(...), client.GetBatchWebSocketURL(...), client.AsyncJobs.WebSocketURL(...).
Batch responses also surface gateway observability fields such as request_id, provider, echoed session_id / webhook, and terminal billing / pricing_lines when available.
Use client.GetBatchWebSocketURL(...) when you want to subscribe to the documented /v1/async/batch/{id}/ws lifecycle stream instead of polling only.
Use client.AsyncJobs.WebSocketURL("batch", batchID, options) when you want the generic async-jobs resource helper.
Use client.GetAsyncJobWebSocketURL("batch", batchID, options) when you want the same generic helper without going through the resource object. Last modified on July 26, 2026