---
title: "Get all scenarios"
method: GET
path: "/v1/mock-apis/{mockApiId}/scenarios"
tags: ["State"]
---

# Get all scenarios

`GET /v1/mock-apis/{mockApiId}/scenarios`

## Request

- Base URL: `https://wmc.wiremockapi.cloud`
- URL: `https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/scenarios`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/wiremock/apis/wiremock-cloud/docs/v1/mock-apis/:mockApiId/scenarios/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `detail` 'summary'

## Response `200`

All scenarios

- object
  - `scenarios` union[]
    - union
      - Scenario
        - `id` string: The scenario ID
        - `name` string: The scenario name
        - `possibleStates` string[]
        - `state` string: The current state of this scenario
      - ScenarioSummary
        - `name` string: The scenario name
        - `state` string: The current state of this scenario

---

[API](https://skmtc.dev/wiremock/apis/wiremock-cloud.md) - [All operations](https://skmtc.dev/wiremock/apis/wiremock-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/wiremock/apis/wiremock-cloud/revisions/93bebefc672f?raw)
