---
title: "Get element screenshots and metadata for a flow and environment"
method: GET
path: "/flows/{id}/elements"
tags: ["Flow"]
---

# Get element screenshots and metadata for a flow and environment

`GET /flows/{id}/elements`

Used to retrieve element screenshots/metadata for all steps in a flow with respect to a given environment

## Path parameters

- `id` string, required

## Query parameters

- `environment_id` string, required

## Response `200`

The element screenshots and associated metadata for the specified flow and environment

- StepElementQueryResult
  - `elements` StepElement[] — All elements (with screenshot and metadata) for steps in a flow with respect to a given environment
    - `step_index` integer — Index of the step in the flow
    - `element_screenshot_uri` string — URI for element screenshot artifact
    - `page_screenshot_uri` string — URI for element screenshot artifact
    - `bounding_box` object — Element bounding box in page screenshot
      - `x` integer — X coordinate of element bounding box (upper left corner)
      - `y` integer — Y coordinate of element bounding box (upper left corner)
      - `width` integer — Width of element bounding box
      - `height` integer — Height of element bounding box
    - `selector_invariant_id` string — ID of the selector associated with this element
    - `selector_is_target` boolean — Flag indicating whether this element is the primary target of the step, if true, or else an ancestor of target element

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `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)
