# Try an endpoint in the playground

Source: https://watership.ca/api-docs/docs/tasks/try-an-endpoint

Send a request to any endpoint from its reference page, change the inputs, and read the response, without writing code.

Each endpoint page has a playground that sends real requests to the mock server. Use it to see how an endpoint responds before you write a client, or to copy a working request as code.

You need the mock server running on your computer. If it isn't, follow [Run the mock server](https://watership.ca/api-docs/docs/tasks/run-the-mock-server) first.

## Send a request [#send-a-request]

1. In the sidebar, under **Endpoints**, open the endpoint you want, such as [Check text](https://watership.ca/api-docs/docs/reference/api/checks/check-text).
2. Select **Try in playground**.
3. In the **Authorization** field, enter a key after `Bearer `, such as `wsk_test_example`. The mock accepts any key.
4. Select **Send**, or press Ctrl+Enter (⌘+Enter on a Mac).

The response appears on the right, with its status, such as **200 OK**, and its body. Select **Headers** to see the `Watership-Release` and rate limit headers.

## Change the request [#change-the-request]

1. Change a value in the request inputs. For **Check text**, set `min_level` to `error`, or choose **Report errors only** from **Example**.
2. Select **Send** again.

The mock responds with the spec's example whatever you send, so the findings don't change with the text. It does reject a request that breaks the spec. To see that, select **JSON** above the body, delete the `text` line, and select **Send**. The response is `400 Bad Request`.

## Copy the request as code [#copy-the-request-as-code]

1. Under **Request**, choose a language, such as **Python**.
2. Select Copy code beside the language.

The code includes your key and body, ready to run against the same server.

## Related [#related]

- [Playground](https://watership.ca/api-docs/docs/reference/playground) describes every element on the panel.
- [Check your first draft](https://watership.ca/api-docs/docs/tutorials/check-your-first-draft) makes the same requests from a terminal.
