Skip to main content
GET
/
v1
/
mock-apis
/
{mockApiId}
/
scenarios
Get all scenarios
curl --request GET \
  --url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/scenarios \
  --header 'Authorization: <api-key>'
{
  "scenarios": [
    {
      "id": "c8d249ec-d86d-48b1-88a8-a660e6848042",
      "name": "my_scenario",
      "possibleStates": [
        "Started",
        "state_1",
        "state_2"
      ],
      "state": "state_2"
    }
  ]
}

Authorizations

Authorization
string
header
required

Your API key prefixed by 'Token '

Path Parameters

mockApiId
string
required

The ID of the Mock API

Required string length: 5 - 10
Example:

"jjl8y"

Query Parameters

detail
enum<string>

When set to summary, returns a lightweight view of each scenario containing only its name and current state, omitting stub mappings, possible states, and IDs. Any other value (or omitting the parameter) returns the full scenario representation.

Available options:
summary

Response

200 - application/json

All scenarios

scenarios
object[]