# Dynamic Responses

Using Dynamic Responses feature, Mocklets allows you to set up multiple responses for your APIs and select an active one on-the-go to test your web/app across various scenarios, which cannot be simulated with your real server environment.

![](/files/-LdvXLIvS4j-SxZyT9ga)

Each response can have its own set of headers(Content-Type, Content-Encoding), response delay and response body.

This feature allows development as well as QA teams to test their applications, across various scenarios starting from the development phase, resulting in a much more robust and stable product.

If you want your API to return any specific response, which is not currently active, you can do that using query params also. Please refer this link for more.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mocklets.com/managing-mock-apis/dynamic-responses.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
