> For the complete documentation index, see [llms.txt](https://docs.cosmocloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cosmocloud.io/examples-how-to/making-an-external-api-call.md).

# Making an external API call

We often have the use case where we want to make an API call -- be it to another micro-service in your eco system or to a 3rd party service. Over here we'll see how to accomplish the same in Cosmocloud's Flow Builder.

## Using [API Call](/flow-builder/node-types/external-nodes/api-call.md) node

You can use the `API Call` node in the Flow Builder to connect to any external service and hit their API.

<figure><img src="/files/3PFNUguqXyaOiehmqz1z" alt=""><figcaption></figcaption></figure>

You can then open this node's properties and configure your API call you would want to perform. For example, if you want to fetch a list of students from `https://example.com/students` using a `GET` API call, you would configure it as per the below screenshot -

<figure><img src="/files/008sqnM6wyrJBtY166JU" alt=""><figcaption></figcaption></figure>

This node will return `body` and `statusCode` for you to use in the rest of your flow. For example, if the above `API Call` node has the nodename `node_7`, you can access the response body as `$.node_7.body.<key_in_body>`

You can also make `POST` and other calls, as well as JSON payloads and enable Authentication on this external API.

{% hint style="info" %}
To go deep into `API Call` node's documentation, please [check this link](/flow-builder/node-types/external-nodes/api-call.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.cosmocloud.io/examples-how-to/making-an-external-api-call.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
