cURL
curl --request POST \ --url https://api.valyu.ai/v1/deepresearch/batches/{id}/tasks \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "tasks": [ { "query": "Analyze Tesla Q4 2024 earnings and forward guidance", "id": "task-tesla" }, { "query": "Analyze Apple Q4 2024 earnings and iPhone sales", "id": "task-apple" }, { "query": "Analyze Microsoft Q4 2024 earnings and Azure growth", "id": "task-msft" } ] } '
{ "batch_id": "batch_a1b2c3d4-e5f6-7890-abcd-ef1234567890", "added": 5, "tasks": [ { "task_id": "<string>", "deepresearch_id": "<string>", "status": "queued" } ], "counts": { "total": 10, "queued": 3, "running": 2, "completed": 4, "failed": 1, "cancelled": 0 } }
Reference for adding tasks to a batch via POST /v1/deepresearch/batches//tasks.
API key for authentication. Get yours at platform.valyu.ai.
Batch ID.
Add tasks to an existing batch.
Tasks to add. Max 100 per request.
1 - 100
Show child attributes
Tasks added and queued.
ID of the batch.
"batch_a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Number of tasks added.
5
Created tasks with their assigned IDs.
Task count breakdown for a batch.
Was this page helpful?