---
title: "Get step ids for flow for corresponding test runs"
method: GET
path: "/flows/{flow_invariant_id}/stepIds"
tags: ["Flow"]
---

# Get step ids for flow for corresponding test runs

`GET /flows/{flow_invariant_id}/stepIds`

Get step ids for flow for corresponding test runs

## Path parameters

- `flow_invariant_id` string, required

## Query parameters

- `journey_run_ids` string[], required

## Response `200`

The step ids for the Flow corresponding to the test runs

- EntityStepIds[]
  - `entityInvariantId` string — The invariant id of the entity
  - `journeyRunId` unknown
  - `entityId` string — The version of the entity (variant ID)
  - `stepIdsByFlow` FlowStepIds[] — The step ids for each flow in the entity in order
    - `flowInvariantId` string — The flow invariant id
    - `flowId` string — The flow variant id
    - `flowSourceIndexInTest` integer — The index of the flow within a test if relevant
    - `flowReusable` boolean — Boolean for if the flow is reusable
    - `flowType` string — The type of flow
    - `stepIdsInFlow` string[] — The step ids for the flow (hashing info about the step with flowInvariantId)
    - `stepIdsInJourney` string[] — The step ids for the flow within a test if relevant (hashing stepIdInFlow with testInvariantId and flowSourceIndexInTest)

## Other responses

- `400` — Invalid ID was supplied
- `401` — Wrong credentials for supplied test ID
- `404` — Test not found
- `default` — Unknown error

---

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