younifyd
Menu

Get batch

Get batch

GET/batches/{batch_id}

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Get batch action (under Async task management).
  3. Fill in the fields below, then reference the result from later steps as {{getBatch.response.data}}.

Request

Path parameters

batch_idstringrequired

The unique batch identifier.

Response

Returns 200 with an object. Read it in later steps with {{getBatch.response.data.<field>}}.

uidinteger (u-int32)
progressoneOf
detailsobject

Aggregated details from all tasks in this batch. For example, if the batch contains multiple document addition tasks, this will show the total number of documents received and indexed across all tasks.

statsany

Provides comprehensive statistics about a batch's execution. Includes task counts, status breakdowns, and AI embedder usage. This information is useful for monitoring system performance and understanding batch composition.

durationstring | null

The total time spent processing this batch, formatted as an ISO-8601 duration (e.g., `PT2.5S` for 2.5 seconds). This is `null` for batches that haven't finished processing yet.

startedAtstring (date-time)

The timestamp when Meilisearch began processing this batch, formatted as an RFC 3339 date-time string. All batches have a start time as it's set when processing begins.

finishedAtstring | null

The timestamp when this batch finished processing, formatted as an RFC 3339 date-time string. This is `null` for batches that are still being processed.

batchStrategystring

Explains why the batch was finalized and stopped accepting more tasks. Common reasons include reaching the maximum batch size, encountering incompatible tasks, or processing being explicitly triggered.

json
{
  "uid": 0,
  "details": {},
  "stats": null,
  "progress": null,
  "duration": "string",
  "startedAt": "2025-01-01T00:00:00Z",
  "finishedAt": "2025-01-01T00:00:00Z",
  "batchStrategy": "string"
}

Need more? See the Meilisearch guide for connection setup and behaviour shared by every action.

Was this page helpful?
Get batch — Meilisearch — Documentation