---
title: "Retrieves a flow item by its ID."
method: GET
path: "/flow/ranking/item/{flowItemId}"
tags: ["RankingFlowItem"]
---

# Retrieves a flow item by its ID.

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

## Path parameters

- `flowItemId` string, required

## Response `200`

OK

- GetFlowItemByIdEndpointOutput
  - `id` string, required — The unique identifier of the flow item.
  - `flowId` string, required — The ID of the flow this item belongs to.
  - `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.
  - `expiresAt` string, date-time, nullable — The expiration timestamp of the flow item.
  - `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.

## 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)
