> For the complete documentation index, see [llms.txt](https://docs.stoobly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stoobly.com/guides/how-to-record-requests.md).

# How to Record Requests

This page provides a guide on how to configure the [agent](/core-concepts/agent.md) to create cequests.

## Background

{% content-ref url="/pages/-MaqwgidRyGQ24EvuqhN" %}
[Request](/core-concepts/mock-api/requests.md)
{% endcontent-ref %}

## Prerequisites

1. [Run the agent](/guides/how-to-run-the-agent.md)
2. [Configure the agent](/guides/proxy-configuration.md)

## Getting Started

### Create a Scenario

{% hint style="info" %}
This step is optional but recommended
{% endhint %}

{% content-ref url="/pages/Ip67YLrIJPaMa2nYPcu9" %}
[How to Create Scenarios](/guides/how-to-record-requests/how-to-create-scenarios.md)
{% endcontent-ref %}

### Record Requests

Requests can be recorded from either the UI or the CLI:

{% content-ref url="/pages/fgAO4oY4FlFFm2oTwo7M" %}
[Recording from the UI](/guides/how-to-record-requests/recording-from-the-ui.md)
{% endcontent-ref %}

{% content-ref url="/pages/PG4xazN8qThJoXYDqZu9" %}
[Recording from the CLI](/guides/how-to-record-requests/recording-from-the-cli.md)
{% endcontent-ref %}

### Configure Recording

By default, no additional configuration is needed. However, to configure recording to specific needs, please see:

{% content-ref url="/pages/gYoBO8SZbwJ5l7kqvbFc" %}
[Proxy Settings](/core-concepts/agent/proxy-settings.md)
{% endcontent-ref %}

### Send Requests

The following are some suggested ways to send requests to for Stoobly to intercept and record:

* Navigate to your application's web interface
* Send requests with cURL
* Run existing test suites

After sending requests, they are intercepted by the agent and then recorded. You should then see the requests appear in the Stoobly UI.

## Next Steps

{% tabs %}
{% tab title="API Mocking" %}
{% content-ref url="/pages/ZoO8T7nQGg9HF89Yvw3J" %}
[How to Mock APIs](/guides/how-to-mock-apis.md)
{% endcontent-ref %}
{% endtab %}

{% tab title="E2E Testing" %}
{% content-ref url="/pages/Ri9aZJJVXgxuyy67a3tW" %}
[How to Integrate E2E Testing](/guides/how-to-integrate-e2e-testing.md)
{% endcontent-ref %}
{% endtab %}

{% tab title="Replaying" %}
{% content-ref url="/pages/dIUPn1yuexQAeM7ODum5" %}
[How to Replay Requests](/guides/how-to-replay-requests.md)
{% endcontent-ref %}
{% endtab %}
{% endtabs %}
