Skip to main content
POST
Create batch of jobs
A batch lets you submit up to 1,000 render jobs in one POST /batches request. Each job in the batch follows the same schema as a single job. The API returns a batchId you can use to track progress and cancel the whole group at once. Batches support partial success - if some jobs fail validation, the rest still proceed. The response tells you exactly which succeeded and which failed, with per-job error details.

Submit a Batch

Each entry in jobs includes an index that maps back to its position in the original request array, so you can correlate results even when some fail.

Batch Creation Response

Partial Success Example

If a job fails validation, its entry appears in errors with an index matching its position in the original request. Successfully created jobs proceed normally.

Check Batch Status

Poll GET /batches/:batchId to see aggregate progress across all jobs in the batch.

Batch Status Values

Batch Stats Fields

Cancel a Batch

Cancel all remaining jobs in a batch with a single call. Jobs that have already finished are not affected.

Cancellation Response Status Values

Cancellation cascades to child jobs - if a batch job has nested children, they are cancelled too.

When to Use Batches

  • Rendering personalised videos for a large user list (event invites, product variants, certificates)
  • Processing a bulk export where you want to submit all jobs upfront and track completion as a group
  • Any workflow that needs atomic cancellation of many jobs at once
Each job in a batch is a full, independent job - it can include nested job assets, upload configuration, webhooks, and all other job options.

Rendering Basics

Learn the full job payload structure and asset types

Nested Jobs

Use nested job assets to render child compositions first

Authorizations

Authorization
string
header
required

Bearer token authentication using API tokens for team-based access control.

You can generate your own API token at: https://app.nexrender.com/settings/api-tokens

Body

application/json

Configuration for creating a batch of render jobs in a single request (1 to 1000 jobs)

jobs
object[]
required

Array of job configurations to create as a batch. Each item follows the same schema as a single job creation request.

Required array length: 1 - 1000 elements

Response

Batch created successfully. Check 'status' field: 'created' means all jobs succeeded, 'partial' means some failed (see 'errors' array).

Response after creating a batch of jobs, including per-job results and any errors

batchId
string
required

Unique batch identifier in ULID format for tracking the entire batch

status
enum<string>
required

'created' if all jobs succeeded, 'partial' if some failed, 'error' if all failed

Available options:
created,
partial,
error
totalJobs
integer
required

Total number of jobs in the batch request

successCount
integer
required

Number of successfully created jobs

jobs
object[]
required

Array of successfully created job details

errors
object[]

Array of errors for failed jobs (only present when status is 'partial' or 'error')