---
title: "Retrieve tests that use this flow"
method: GET
path: "/flows/{id}/usedBy"
tags: ["Flow"]
---

# Retrieve tests that use this flow

`GET /flows/{id}/usedBy`

Used to retrieve tests that use a specific flow (assumed reusable)

## Path parameters

- `id` string, required

## Query parameters

- `limit` integer
- `cursor` string

## Response `200`

Paginated results of tests that use the flow

- FlowUsedByQueryResult — result envelope for flow used-by query results
  - `entities` UsedByEntity[] — List of tests that use the flow, ordered by test invariant ID
    - `resource_id` string — The ID of the resource used by this entity
    - `entity_invariant_id` string — The invariant ID of the entity
    - `entity_type` 'test' | 'flow' — The type of entity (test or flow)
    - `entity_name` string — The name of the entity
    - `workspace_id` string — The workspace ID of the entity
    - `created_time` integer — When the entity was created
    - `last_updated_time` integer — When the entity was last updated
    - `branches` string[] — Branches of the test or flow that use this resource
  - `cursor` string — Cursor used for pagination

## Other responses

- `404` — Flow 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)
