---
title: "Get chaos settings"
method: GET
path: "/v1/mock-apis/{mockApiId}/settings/chaos"
tags: ["Settings"]
---

# Get chaos settings

`GET /v1/mock-apis/{mockApiId}/settings/chaos`

## Response `200`

The chaos settings

- object
  - `chaos` ChaosSettings — Chaos testing settings for introducing random failures into mock API responses.
    - `enabled` boolean — Master switch to enable or disable chaos testing.
    - `percentageFailures` number, double — Percentage of requests that should receive a failure response.
    - `socketClose` object — Randomly close the socket without sending a response.
      - `enabled` boolean
    - `socketReset` object — Randomly reset the socket connection.
      - `enabled` boolean
    - `invalidHttp` object — Randomly return an invalid HTTP response.
      - `enabled` boolean
    - `longDelay` object — Randomly introduce a long delay before responding.
      - `enabled` boolean
      - `durationMillis` integer — Duration of the delay in milliseconds.
    - `httpErrors` object[] — HTTP error status codes to randomly return.
      - `status` integer — HTTP status code (400-599).

## Other responses

- `401` — 401 Unauthenticated response
- `403` — 403 Unauthorized response

---

[API](https://skmtc.net/wiremock/apis/wiremock-cloud.md) · [All operations](https://skmtc.net/wiremock/apis/wiremock-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wiremock/wiremock-cloud/revisions/93bebefc672f/schema)
