cURL
curl --request POST \ --url https://api.valyu.ai/v1/deepresearch/batches/{id}/cancel \ --header 'X-API-Key: <api-key>'
{ "batch_id": "batch_a1b2c3d4-e5f6-7890-abcd-ef1234567890", "status": "cancelled", "cancelled_count": 3 }
Reference for cancelling a batch via POST /v1/deepresearch/batches//cancel.
API key for authentication. Get yours at platform.valyu.ai.
Batch ID.
Batch cancelled.
ID of the cancelled batch.
"batch_a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Batch status after cancellation.
cancelled
"cancelled"
Number of tasks cancelled.
3
Was this page helpful?