# Make API Request

API request actions allow you to build powerful API integrations with external services that offer APIs.

<figure><img src="/files/mGBH3vpf6yO5snhlqtO6" alt=""><figcaption><p>An example Make API Request action</p></figcaption></figure>

API requests can have the following fields:

* URL\
  \&#xNAN;*The API endpoint (supports* [Action Variables](/inbox-ai/actions/action-variables.md)*)*
* Method\
  \&#xNAN;*GET, POST, PUT, or DELETE*
* Next Action\
  \&#xNAN;*The action to call after this request. See* [Next Action Field](/inbox-ai/actions/next-action-field.md)*.*
* Headers\
  \&#xNAN;*A  set of key/value pairs for headers. Both support* [Action Variables](/inbox-ai/actions/action-variables.md)*.*
* Payload\
  \&#xNAN;*The body of the API request. Supports* [Action Variables](/inbox-ai/actions/action-variables.md) *and notably a good target for* [Templating](/inbox-ai/templating.md).

{% hint style="info" %}
Often you can use either [Templating](/inbox-ai/templating.md) to format the right payload for your API request or use an [Ask AI](/inbox-ai/actions/custom-actions/ask-ai.md) action to format the right payload. Pick the best fit for you.
{% endhint %}


---

# 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://dreetje-1.gitbook.io/inbox-ai/actions/custom-actions/make-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.
