---
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`

## Request

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

## 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.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)
