---
title: "Start code coverage collection"
method: POST
path: "/v1/browser/coverage/start"
tags: ["Browser"]
---

# Start code coverage collection

`POST /v1/browser/coverage/start`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/browser/coverage/start`
- Auth: HTTP bearer

Enables JS and CSS code coverage instrumentation via CDP Profiler and CSS domains.

## Response `200`

Coverage started

- object
  - `active` true, required

## Other responses

- `400`: Coverage error (e.g. already active)
- `409`: Not connected to a browser
- `503`: Browser service not initialized

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
