---
title: "Queries flow items for a flow."
method: GET
path: "/flow/ranking/{flowId}/item"
tags: ["RankingFlowItem"]
---

# Queries flow items for a flow.

`GET /flow/ranking/{flowId}/item`

## Path parameters

- `flowId` string, required

## Query parameters

- `page` integer
- `page_size` integer
- `sort` string[]
- `state` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `created_at` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `logic` 'and' | 'or'

## Response `200`

OK

- QueryFlowItemsEndpointPagedResultOfOutput
  - `total` integer, required
  - `page` integer, required
  - `pageSize` integer, required
  - `items` QueryFlowItemsEndpointOutput[], required
    - `id` string, required — The unique identifier of the flow item.
    - `datasetId` string, required — The ID of the dataset used by this flow item.
    - `workflowId` string, nullable — The ID of the workflow created for this flow item.
    - `state` 'Pending' | 'Running' | 'Completed' | 'Failed' | 'Stopping' | 'Stopped' | 'Incomplete', required
    - `context` string, nullable — Optional context associated with this flow item.
    - `contextAsset` union
      - object
        - `_t` 'FileAsset', required
        - `fileName` string, required
        - `metadata` MetadataModelCollection, required
        - `identifier` string, required
      - object
        - `_t` 'MultiAsset', required
        - `assets` IAsset[], required
        - `metadata` MetadataModelCollection, required
        - `identifier` string, required
      - object
        - `_t` 'NullAsset', required
        - `metadata` MetadataModelCollection, required
        - `identifier` string, required
      - object
        - `_t` 'TextAsset', required
        - `text` string, required
        - `metadata` MetadataModelCollection, required
        - `identifier` string, required
    - `failureMessage` string, nullable — The failure message if the flow item failed.
    - `createdAt` string, date-time, required — The timestamp when the flow item was created.
    - `startedAt` string, date-time, nullable — The timestamp when the flow item started processing.
    - `completedAt` string, date-time, nullable — The timestamp when the flow item completed.
    - `failedAt` string, date-time, nullable — The timestamp when the flow item failed.
  - `totalPages` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

[API](https://skmtc.net/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.net/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapidata/rapidata-api/revisions/fdb89a6eb2fb/schema)
