---
title: "list all scenarios and their current state"
method: GET
path: "/mockserver/scenario"
tags: ["scenario"]
---

# list all scenarios and their current state

`GET /mockserver/scenario`

## Request

- Base URL: `http://localhost:1080`
- URL: `http://localhost:1080/mockserver/scenario`
- Auth: none declared

Returns every known stateful scenario and its current state. Scenarios are created implicitly by registering expectations with a scenarioName / scenarioState, or explicitly via PUT /mockserver/scenario/{name}. All scenario state is reset when MockServer is reset.

## Response `200`

scenarios listed

- object
  - `scenarios` object[]
    - `scenarioName` string
    - `currentState` string

## Other responses

- `400`: failed to list scenarios

---

[API](https://skmtc.dev/mock-server/apis/mockserver-api.md) · [All operations](https://skmtc.dev/mock-server/apis/mockserver-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mock-server/apis/mockserver-api/revisions/9239b693996e?raw)
