# Customizing with Request Headers

Request headers can be set by the client to dynamically control mocking behavior.

## Supported Headers

<details>

<summary>X-Stoobly-Public-Directory-Path</summary>

Path to a folder that contains files or folders that contains files that match a request's path. Path is relative to where the `stoobly-agent run` command was run.

</details>

<details>

<summary>X-Stoobly-Request-Key</summary>

Customizes which request response should be used

</details>

<details>

<summary>Response-Fixtures-Path</summary>

Path to a YAML file that contains fixture specifications. Path is relative to where the `stoobly-agent run` command was run.

</details>

<details>

<summary>X-Stoobly-Scenario-Key</summary>

Customizes which scenario should be used

</details>


---

# 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.stoobly.com/guides/how-to-mock-apis/how-to-customize-mocking/customizing-with-request-headers.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.
