---
title: "Get step HTML snapshot"
method: GET
path: "/v1/runs/{id}/steps/{stepId}/html"
tags: ["Runs"]
---

# Get step HTML snapshot

`GET /v1/runs/{id}/steps/{stepId}/html`

## Request

- Base URL: `https://agent.tinyfish.ai`
- URL: `https://agent.tinyfish.ai/v1/runs/{id}/steps/{stepId}/html`
- Auth: API key in header `X-API-Key`

Serve the full-page HTML snapshot captured at a specific step via API key. Returns raw HTML. Only available when the run was started with capture_config.html: true.

## Path parameters

- `id` string, required: Run ID
- `stepId` string, required: Step ID (event ID)

## Response `200`

HTML snapshot

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `404`: Run, step, or HTML snapshot not found
- `500`: Internal server error

---

[API](https://skmtc.dev/tinyfish/apis/tinyfish-web-agent-automation-api-2.md) · [All operations](https://skmtc.dev/tinyfish/apis/tinyfish-web-agent-automation-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/tinyfish/apis/tinyfish-web-agent-automation-api-2/revisions/c48ef855099d?raw)
