Kalpana Docs
Resources

List batches

List batches in a workspace with row counts, credits, and derived status.

GET /api/batches

Requires batches:read.

Query parameters

NameTypeRequiredDescription
workspacestringYesWorkspace slug or id.
templateIdstringNoOnly batches with at least one job from this template.
statusstringNoFilter by draft, published, or archived.
pagenumberNoPage number. Defaults to 1.
limitnumberNoItems per page. Defaults to 20, maximum 100.
curl "https://app.kalpana.one/api/batches?workspace=acme&status=published" \
  --header "x-api-key: $KALPANA_API_KEY"

Response

The response contains the page of batches and a total, the number of matching batches. It also carries totalProcessedFiles, totalProcessedImages and totalProcessedVideos, counts of every file rendered in the workspace. Batches are newest first. Each batch has:

FieldDescription
id, workspaceId, name, description, metaBatch identity and notes.
batchStatusThe stored lifecycle state: draft, published, or archived.
statusThe derived progress: pending, processing, completed, partial, failed, or cancelled.
templateId, templateNameA template used by the batch. null for a batch with no rows.
jobsJob counts: total, succeeded (jobs with a file), failed, processing, cancelled and pending. A batch has one job per row and page, so 10 rows on 3 pages is 30 jobs.
pendingImageJobs, pendingVideoJobsJobs not yet dispatched, by kind.
imageCredits, videoCreditsCredits still required for pending jobs.
missingFontsFonts the template needs that the workspace lacks, each with family, style, weight and italic.
createdBy, createdAt, updatedAtAudit fields.
Was this page helpful?

Updated 9 Nov 2026

On this page