> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cassidyai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send API request

> Send an HTTP request to any external API endpoint from within a Workflow.

Send an HTTP request to any external API from within a [Workflow](https://docs.cassidyai.com/workflows/overview.md). Use this to connect to services that don't have a native Cassidy integration, or to interact with custom APIs.

**1. Add the action**

In the Workflow builder, click **+** between blocks and select **Send API Request** from the action library.

![Action library with Send API Request selected](https://mintcdn.com/cassidy/ETDpmcHPDhtRlAWy/images/reference/send-api-request-img-0.png?fit=max\&auto=format\&n=ETDpmcHPDhtRlAWy\&q=85\&s=fefcf467cba86f1bbe7b0112605a6f1e)

![Send API Request action added to the Workflow](https://mintcdn.com/cassidy/ETDpmcHPDhtRlAWy/images/reference/send-api-request-img-1.png?fit=max\&auto=format\&n=ETDpmcHPDhtRlAWy\&q=85\&s=88c8a077cc97a71ae57cf275cc12cb6c)

**2. Enter the URL**

In the **URL** field, enter the destination for the API request. You can hardcode the URL or use **#** to [insert variables](https://docs.cassidyai.com/guides/prompt-engineering.md#workflow-prompts) from previous steps or the trigger to build it dynamically.

![URL field with variable reference](https://mintcdn.com/cassidy/ETDpmcHPDhtRlAWy/images/reference/send-api-request-img-3.png?fit=max\&auto=format\&n=ETDpmcHPDhtRlAWy\&q=85\&s=ec52ae05b1c859f546517059fdbb8e33)

**3. Select the method**

Choose the HTTP method that matches your API endpoint's requirements:

* **GET** — Retrieve data
* **POST** — Create a new resource
* **PUT** — Replace an existing resource
* **PATCH** — Partially update a resource
* **DELETE** — Remove a resource

![HTTP method dropdown showing GET, POST, PUT, PATCH, and DELETE](https://mintcdn.com/cassidy/ETDpmcHPDhtRlAWy/images/reference/send-api-request-img-4.png?fit=max\&auto=format\&n=ETDpmcHPDhtRlAWy\&q=85\&s=36182efab35fab42eda674ee3cbb896b)

**4. Add headers**

If the API requires specific headers (such as authentication or content type), click **+ Add Header**. Fill in the **Key** and **Value** fields for each header. You can reference variables in header values using **#**.

For sensitive values like API keys, use [Secret Keys](https://docs.cassidyai.com/workflows/advanced/secret-keys.md) instead of pasting credentials directly.

Click the trash icon next to a header to remove it.

![Headers section with Key and Value fields](https://mintcdn.com/cassidy/ETDpmcHPDhtRlAWy/images/reference/send-api-request-img-5.png?fit=max\&auto=format\&n=ETDpmcHPDhtRlAWy\&q=85\&s=46aafac9aaeabde268987d3babc81875)

**5. Add a request body**

Depending on the HTTP method, you may need to include a request body. Click **+ Add Body Field** and fill in **Key** and **Value** pairs. You can reference variables in body values using **#**.

![Body section with Key and Value fields](https://mintcdn.com/cassidy/ETDpmcHPDhtRlAWy/images/reference/send-api-request-img-6.png?fit=max\&auto=format\&n=ETDpmcHPDhtRlAWy\&q=85\&s=04a1035a80652703f6c7efa3e1161e9f)

If you need full control over the JSON structure, click **Switch to raw body input** to enter your own JSON object directly.

![Raw body input mode with JSON editor](https://mintcdn.com/cassidy/ETDpmcHPDhtRlAWy/images/reference/send-api-request-img-7.png?fit=max\&auto=format\&n=ETDpmcHPDhtRlAWy\&q=85\&s=6b87d6a0033c65ff9cc5393a85412273)

**6. Use the response**

The response body and status code are available as variables in subsequent steps.

> [!TIP]
>
> For sensitive values like API keys, use [Secret Keys](https://docs.cassidyai.com/workflows/advanced/secret-keys.md) instead of hardcoding credentials in your Workflow.

## Related

* [Secret Keys](https://docs.cassidyai.com/workflows/advanced/secret-keys.md)
* [Webhooks](https://docs.cassidyai.com/integrations/webhooks.md)
* [Connect non-native apps](https://docs.cassidyai.com/integrations/connect-non-native-apps.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.