> ## Documentation Index
> Fetch the complete documentation index at: https://requestly-mintlify-changelog-requestly-past-week-38456.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Send API Request

> Simplify API testing with Requestly's API client. Send HTTP requests, view responses, and add parameters.

***

The API client in Requestly allows you to easily send API requests, without the need for writing code or using a terminal. It lets you test APIs, retrieve data, and explore how they work by simply creating a request, clicking Send, and viewing the response within Requestly.

This feature is perfect for developers testing API endpoints during development, QA engineers validating API responses for edge cases, and support engineers debugging API issues in real-time.

<img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/cb0bd862-28ab-4900-b501-2c25ec881e37.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=fead6c1d3ef541f5a2adb47335579468" align="center" fullwidth="false" width="2400" height="1514" data-path="images/send-api-request/cb0bd862-28ab-4900-b501-2c25ec881e37.png" />

## **Send Your First API Request**

<Steps>
  <Step title="Open API Client and Create a New Request">
    Click the **API Client** link in the left sidebar of the Requestly application, then click the `+ New` button to create a new request and select **Request** from the menu.

    <img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/fdef96c4-3da6-4a3a-a885-8999e89898f1.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=4981b8ee7e6a52288afda75bc9ed2f69" alt="The image shows the Requestly interface with the &#x22;New&#x22; button highlighted, displaying options: &#x22;Request,&#x22; &#x22;Collection,&#x22; and &#x22;Environment&#x22; in a dropdown menu." align="center" fullwidth="false" width="2400" height="1400" data-path="images/send-api-request/fdef96c4-3da6-4a3a-a885-8999e89898f1.png" />
  </Step>

  <Step title="Name Your API Request">
    Choose a descriptive title for your request to make it easy to identify later.

    <img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/23b0f1b3-f06c-411b-b329-6e0c2794170d.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=538bed9c9af59315b39da064a71373c3" alt="The image shows the Requestly interface's new request creation flow, with an input field for entering the request name, labeled &#x22;Send API Request&#x22;." align="center" fullwidth="false" width="2400" height="1400" data-path="images/send-api-request/23b0f1b3-f06c-411b-b329-6e0c2794170d.png" />
  </Step>

  <Step title="Enter the API URL and HTTP Method">
    Pick the HTTP method (e.g., GET, POST) and type the URL of the API you want to test.

    <img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/b027f3b9-8d3c-49ee-9f5e-f7a66f7a5fd0.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=88f71d3ca2d861a45b60f08f91bf7bda" align="center" fullwidth="false" width="2400" height="831" data-path="images/send-api-request/b027f3b9-8d3c-49ee-9f5e-f7a66f7a5fd0.png" />
  </Step>

  <Step title="Save & Send the Request">
    Click the **Save** & **Send** button to execute your request.

    <img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/0143b46a-7adf-4483-bc4f-e81c8a6b1f0f.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=b21cb274262c60afaaafb1107a5800c5" alt="The image shows the Requestly API client interface with a POST request to https://app.requestly.io/echo and the &#x22;Send&#x22; button towards the top right corner highlighted for executing the request." align="center" fullwidth="false" width="2400" height="1400" data-path="images/send-api-request/0143b46a-7adf-4483-bc4f-e81c8a6b1f0f.png" />
  </Step>
</Steps>

***

## **Response**

### **1. View the Response Body**

Once the request is sent, check the response body in the **Response Body** section. You can switch between formatted (pretty) and raw views.

<img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/e258dee4-e903-417a-a847-1f1c7e438553.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=a9311826c164a810cbb064b838051955" alt="Response Body - Send API Request" align="center" fullwidth="false" width="2400" height="1457" data-path="images/send-api-request/e258dee4-e903-417a-a847-1f1c7e438553.png" />

### **2. Check the Response Headers**

Review the headers sent back by the server in the **Headers** tab.

<img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/3c04e205-9117-4730-b0e1-8a7c0379f4ce.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=ce05b3ddb63ad57ee23148d8beb0a636" alt="Response Headers - Send API Request" align="center" fullwidth="false" width="2400" height="1455" data-path="images/send-api-request/3c04e205-9117-4730-b0e1-8a7c0379f4ce.png" />

***

## Query Parameters

In the **Query Params** section, you can add query parameters as **key-value pairs** to send extra information with the URL. To add more parameters, click on the `+ Add More` button.

For example:

* Adding `uid=123` to `https://app.requestly.io/echo` results in: `https://app.requestly.io/echo?uid=123`

<Tip>
  The checkboxes next to each parameter let you include or exclude them without deleting them. For instance, if you uncheck the `Key` parameter, the final URL will not include it
</Tip>

<img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/5190d975-f6da-46c6-82ec-f909d9725752.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=68cf239fca2132ff996bdbd4fabcd1ac" alt="Query Param - Send API Request" align="center" fullwidth="false" width="2400" height="741" data-path="images/send-api-request/5190d975-f6da-46c6-82ec-f909d9725752.png" />

***

## Request Body

For POST or PUT requests, use the **Body** tab to send data

### Supported Form Types

1. **RAW**

   * Send raw data as plain **text** or structured **JSON**.

   * You can select the language:

     **JSON** – for structured data like API payloads.\
     **Text** – for plain string or unstructured data

   <img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/76a50480-84ca-4ffd-87c0-cf27e0e5208b.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=59a147d722937e1c370befeb6e225941" align="center" fullwidth="false" width="2400" height="832" data-path="images/send-api-request/76a50480-84ca-4ffd-87c0-cf27e0e5208b.png" />

2. **x-www-form-urlencoded**

   * Sends data as URL-encoded key-value pairs.

   * Commonly used for web for

   <img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/79119883-fd9d-4b33-b617-4f7a7bf36f0e.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=e994b35faa5e1d704ce76b0abd82f3c6" align="center" fullwidth="false" width="2400" height="832" data-path="images/send-api-request/79119883-fd9d-4b33-b617-4f7a7bf36f0e.png" />

3. **multipart/form-data**

   * Used when uploading files along with form fields.

   * Each field is sent as a separate part of the request body.

   * Example use case: Uploading an image along with user detail

   <img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/fa74f6c1-8ebb-4652-8667-7993cc3d57f7.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=00dd15924bc803c8c58242ab7f941e10" align="center" fullwidth="false" width="2400" height="832" data-path="images/send-api-request/fa74f6c1-8ebb-4652-8667-7993cc3d57f7.png" />

> 💡 Tip: For both `x-www-form-urlencoded` and `multipart/form-data`, you can add fields using the key-value form editor. If you need to send files, choose **multipart/form-data**.

***

## Headers

The **Headers** tab allows you to include additional information in your API request. Headers are key-value pairs that provide essential details for the request, such as authentication tokens, content type, or other metadata required by the API. To add more headers, click on the `+ Add More` button.

For example: You can add headers like `Authorization: Bearer <token>` to authenticate your request, or `Content-Type: application/json` to specify the format of the data you're sending.

<Tip>
  The checkboxes next to each parameter let you include or exclude them without deleting them. For instance, if you uncheck the `Key` parameter, the final URL will not include it
</Tip>

<img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/a7cde3d7-d48e-4fa5-ab0d-75805d4f4899.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=7f14db52097aa5a8be5597af596b47f7" alt="Headers - Send API Request" align="center" fullwidth="false" width="2400" height="729" data-path="images/send-api-request/a7cde3d7-d48e-4fa5-ab0d-75805d4f4899.png" />

***

## Scripts

* **Pre-Scripts**: Execute code before sending the request, like generating tokens or setting dynamic headers.

* **Post-Scripts**: Execute code after receiving the response, useful for processing or saving the response data.

<img src="https://mintcdn.com/requestly-mintlify-changelog-requestly-past-week-38456/mXCJH8C7nLZtMWyJ/images/send-api-request/7485bf2f-72b9-4e9a-bb5d-6ad2504aad4a.png?fit=max&auto=format&n=mXCJH8C7nLZtMWyJ&q=85&s=918bb11f18bd3d431b4645be69a67a7a" alt="Scripts - Send API Request" align="center" fullwidth="false" width="2400" height="811" data-path="images/send-api-request/7485bf2f-72b9-4e9a-bb5d-6ad2504aad4a.png" />

To learn more about using scripts visit <a target="_blank" href="/general/api-client/scripts">Scripts Documentation</a>.
