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

# API

> Make HTTP requests to external APIs and services from within a workflow.

The **API** node sends an HTTP request to an external endpoint and returns the response for use in downstream nodes. Use it to integrate with third-party services, retrieve data, or trigger external actions from within a workflow.

## Configuration

### Request Configuration

| Field            | Required | Description                                                                         |
| ---------------- | -------- | ----------------------------------------------------------------------------------- |
| **HTTP Method**  | Yes      | The HTTP method for the request (e.g. `GET`, `POST`, `PUT`, `DELETE`, `PATCH`).     |
| **Endpoint URL** | Yes      | The full URL of the API endpoint. Type `@` to insert variables from previous steps. |

### Headers

Add custom HTTP headers such as `Authorization` or `Content-Type`. Click **+ Add header** to add a key-value pair.

### Request Body

| Field         | Required | Description                                                                                                               |
| ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------- |
| **Body Type** | No       | The format of the request body. Options include `None`, `JSON`, `Form Data`, and others depending on the method selected. |

### URL Parameters

Add query parameters to append to the endpoint URL. Click **+ Add param** to add a key-value pair.

## Results

The **Results** tab shows the full API response after the node is executed, including the response body, status code, and headers.

<Note>
  Type `@` in the Endpoint URL or body fields to reference variables from previous workflow steps.
</Note>
