# Send API Request

The Send API Request action supercharges your AI agent, allowing it to send custom requests to external systems and receive responses. This is useful for utilities like automations, external actions, database updates, and external reporting.

***

Select a **Send API Request** action from the tree to open its settings:

* **HTTP method** — the request type:&#x20;
  * **GET** — retrieves information about the REST API resource.
  * **POST** — creates a REST API resource.
  * **PUT** — updates a REST API resource.
  * **DELETE** — deletes a REST API resource or related component.
  * **PATCH** — makes a partial update to a REST API resource.
* **URL endpoint** — the endpoint to receive requests, which must start with `https://`.&#x20;
* **Headers** — optional **Key** / **Value** pairs of content for the request header.
* **Resulting variable** — the name of the new or existing [chat variable](/docs/developer-documentation/chat-variables.md) whose value will be set in the chat by a GET response.

Press **Save** to confirm edits.

To test an API request, use a [Webchat](/docs/modules/ai-agents/publishing/webchat.md) preview to interact with the AI agent and trigger the request.


---

# 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://documentation.proto.cx/docs/modules/ai-agents/workflows-and-actions/send-api-request.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.
