---
title: "get the current state of one scenario"
method: GET
path: "/mockserver/scenario/{name}"
tags: ["scenario"]
---

# get the current state of one scenario

`GET /mockserver/scenario/{name}`

## Request

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

Returns the current state of the named scenario (null when the scenario has no state yet).

## Path parameters

- `name` string, required

## Response `200`

scenario state returned

- object
  - `scenarioName` string
  - `currentState` string, nullable

## Other responses

- `400`: failed to get scenario state

---

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