Skip to main content
POST
Add tasks to a batch

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours at platform.valyu.ai.

Path Parameters

id
string
required

Batch ID.

Body

application/json

Add tasks to an existing batch.

tasks
object[]
required

Tasks to add. Max 100 per request.

Required array length: 1 - 100 elements

Response

Tasks added and queued.

batch_id
string
required

ID of the batch.

Example:

"batch_a1b2c3d4-e5f6-7890-abcd-ef1234567890"

added
integer
required

Number of tasks added.

Example:

5

tasks
object[]
required

Created tasks with their assigned IDs.

counts
object
required

Task count breakdown for a batch.