Skip to content

Batches

Batches group related executions together. In the AutoRetouch web app, batches appear as “orders”.

Batches are created implicitly by setting batch labels when creating executions:

{
"labels": {
"autoretouch_batch_id": "29532657-c82b-427a-8b6a-ded598d696a9",
"autoretouch_batch_name": "Spring Collection",
"autoretouch_batch_createdAt": "2024-02-08T09:09:01.960Z"
}
}

All executions with the same autoretouch_batch_id will be grouped together.


Get all batches for an organization.

GET https://api.autoretouch.com/v1/batch
ParameterTypeDefaultDescription
organizationstring-Organization ID (recommended)
batchIdstring-Filter to a specific batch
limitinteger50Maximum results per page
offsetinteger0Number of results to skip
Terminal window
# List all batches
curl -X GET "https://api.autoretouch.com/v1/batch?organization={organizationId}" \
-H "Authorization: Bearer {accessToken}"
# Get a specific batch
curl -X GET "https://api.autoretouch.com/v1/batch?organization={organizationId}&batchId={batchId}" \
-H "Authorization: Bearer {accessToken}"
{
"entries": [
{
"id": "b243f2da-99a6-4d0c-8138-9186c19486bf",
"name": "ORDER 2026-02-17 11:43:16",
"author": "google-oauth2|118231812295695726244",
"createdAt": "2026-02-17T10:43:16.574Z",
"executions": 13,
"price": 195,
"workflowId": "482a88cb-9e49-4241-ad81-ce8648a8576b",
"workflowName": "RMBG + Fill with Color"
}
],
"total": 1
}
FieldTypeDescription
idstringBatch ID (UUID)
namestringBatch name
authorstringUser ID who created the batch
createdAtstringCreation timestamp (ISO 8601)
executionsintegerNumber of executions in the batch
priceintegerTotal credits charged
workflowIdstringWorkflow ID used for the batch
workflowNamestringWorkflow display name

LabelRequiredDescription
autoretouch_batch_idYesUnique identifier (UUID recommended)
autoretouch_batch_nameYesHuman-readable name
autoretouch_batch_createdAtYesISO 8601 timestamp
  • By SKU: Group all images for a single product together
  • By session: Group images from a single photo shoot
  • By order: Group images from a customer order
  1. Organization: Related images appear together in the AutoRetouch UI
  2. Quality checks: QA is performed at the batch level
  3. Tracking: Monitor progress of related images together
  4. Bulk download: Download all results for a batch at once in the web app