---
title: "List all mock rules"
method: GET
path: "/v1/browser/mocks"
tags: ["Browser"]
---

# List all mock rules

`GET /v1/browser/mocks`

## Request

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

## Response `200`

Array of mock rules

- MockRule[]
  - `id` string, required
  - `urlPattern` string, required
  - `method` string, nullable
  - `requestStage` string, required: CDP Fetch request stage (e.g. "Request", "Response")
  - `action` MockAction, required
    - `type` string, required: Action type: "respond", "fail", or "modify"
    - `status` integer, nullable
    - `headers` object, nullable
    - `body` string, nullable
    - `failReason` string, nullable
    - `modifyUrl` string, nullable
  - `description` string, nullable
  - `enabled` boolean, required

## Other responses

- `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)
