For the batch lifecycle and best practices, see the Batch Processing Guide. This page is the TypeScript SDK reference. HITL checkpoints are not available for batches - use individual
deepresearch.create() tasks for those.Run a batch of DeepResearch tasks in parallel with the TypeScript SDK.
Quick start
Create a batch, add 1-100 tasks, then wait for completion:Reference
Methods
Methods
| Method | Description |
|---|---|
batch.create({ name, mode, outputFormats, search, webhookUrl, metadata }) | Create an empty batch container |
batch.addTasks(batchId, { tasks }) | Add 1-100 tasks. Batch must be open or processing |
batch.status(batchId) | Current status, task counts, and cost |
batch.listTasks(batchId, { status?, includeOutput?, limit?, lastKey? }) | List tasks; set includeOutput: true for full output, sources, images, cost |
batch.waitForCompletion(batchId, { pollInterval?, maxWaitTime?, onProgress? }) | Block until terminal state |
batch.cancel(batchId) | Cancel the batch and its pending tasks |
batch.list() | List batches for your API key |
mode, outputFormats, and search are inherited by every task and cannot be overridden per-task. Per-task you can set researchStrategy, reportFormat, urls, and metadata.Individual tasks are DeepResearch tasks - use deepresearch.status(task.deepresearch_id), deepresearch.update(...), or deepresearch.cancel(...) on them directly.Search configuration
Search configuration
Task input and listing results
Task input and listing results
Response types
Response types
Webhooks
PasswebhookUrl on create() to be notified when the batch reaches a terminal state (completed, completed_with_errors, or cancelled) instead of polling. The webhook_secret is returned only on creation - store it immediately.
Limitations
| Constraint | Value |
|---|---|
| Tasks per request | 1-100 |
| Batch status to add tasks | open or processing |
See also
Batch Processing Guide
Lifecycle, best practices, and examples
DeepResearch API
Individual task API with all features
Python SDK
Python batch methods
API Reference
REST endpoint documentation

