younifyd
Menu

List batches

List batches

GET/batches

Use it in a workflow

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

Request

Query parameters

limitinteger (u-int32)

Maximum number of batches to return.

Default 20

frominteger (u-int32)

`uid` of the first batch returned.

reverseboolean

If `true`, returns results in the reverse order, from oldest to most recent.

batchUidsarray<integer (u-int32)>

Permits to filter tasks by their batch uid. By default, when the `batchUids` query parameter is not set, all task uids are returned. It's possible to specify several batch uids by separating them with the `,` character.

uidsarray<integer (u-int32)>

Permits to filter tasks by their uid. By default, when the uids query parameter is not set, all task uids are returned. It's possible to specify several uids by separating them with the `,` character.

canceledByarray<integer (u-int32)>

Permits to filter tasks using the uid of the task that canceled them. It's possible to specify several task uids by separating them with the `,` character.

typesarray<string>

Permits to filter tasks by their related type. By default, when `types` query parameter is not set, all task types are returned. It's possible to specify several types by separating them with the `,` character.

statusesarray<string>

Permits to filter tasks by their status. By default, when `statuses` query parameter is not set, all task statuses are returned. It's possible to specify several statuses by separating them with the `,` character.

indexUidsarray<string>

Permits to filter tasks by their related index. By default, when `indexUids` query parameter is not set, the tasks of all the indexes are returned. It is possible to specify several indexes by separating them with the `,` character.

afterEnqueuedAtstring

Permits to filter tasks based on their enqueuedAt time. Matches tasks enqueued after the given date. Supports RFC 3339 date format.

beforeEnqueuedAtstring

Permits to filter tasks based on their enqueuedAt time. Matches tasks enqueued before the given date. Supports RFC 3339 date format.

afterStartedAtstring

Permits to filter tasks based on their startedAt time. Matches tasks started after the given date. Supports RFC 3339 date format.

beforeStartedAtstring

Permits to filter tasks based on their startedAt time. Matches tasks started before the given date. Supports RFC 3339 date format.

afterFinishedAtstring

Permits to filter tasks based on their finishedAt time. Matches tasks finished after the given date. Supports RFC 3339 date format.

beforeFinishedAtstring

Permits to filter tasks based on their finishedAt time. Matches tasks finished before the given date. Supports RFC 3339 date format.

Response

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

resultsarray<object>

Array of batch objects

uidinteger (u-int32)required
progressoneOf
detailsobjectrequired

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.

statsanyrequired

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.

totalinteger (u-int64)

Total number of batches

limitinteger (u-int32)

Maximum number of batches returned

frominteger | null

The first batch uid returned

nextinteger | null

Value to send in from to fetch the next slice of results

json
{
  "results": [
    {
      "uid": 0,
      "details": {},
      "stats": null,
      "progress": null,
      "duration": "string",
      "startedAt": "2025-01-01T00:00:00Z",
      "finishedAt": "2025-01-01T00:00:00Z",
      "batchStrategy": "string"
    }
  ],
  "total": 0,
  "limit": 0,
  "from": 0,
  "next": 0
}

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