younifyd
Menu

Stream batches changes

Stream batches changes

GET/batches/stream

Use it in a workflow

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

Fields

baseUrlstring

The API host this action calls. Choose one, or pick Custom to enter your own.

One of/http://localhost:7700__custom__Default "/"

baseUrlCustomstring
forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

Returns 200 with an object. Read it in later steps with {{streamBatchesChanges.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.