> For the complete documentation index, see [llms.txt](https://developers.make.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.make.com/custom-apps-documentation/app-components/endpoints.md). Agents can also search and read this documentation through its [MCP server](https://developers.make.com/~gitbook/mcp).

# Endpoints

Endpoints are app components that wrap a single API call of a third-party service and make it available in a standardized, simple format. They are designed for AI callers, such as Make MCP server and Make AI Agents, which need to discover and call an app's API without the rich, human-oriented inputs that modules have.<br>

An endpoint describes one API operation: what it does, which inputs it accepts, what it returns, and which connection and scopes it needs. An AI caller discovers the endpoint once and can then call it as many times as needed.

{% hint style="info" %}
Endpoints can't be run directly in a scenario yet. You can use them through the Make MCP server and Make AI Agents, test them in the platform with Run endpoint, and call them from modules and RPCs using the endpoint directive.
{% endhint %}

## Endpoints, modules, and RPCs

Endpoints share the same runtime concepts as RPCs, but they serve a different purpose.

|                                | Module                                            | RPC                                        | Endpoint                                               |
| ------------------------------ | ------------------------------------------------- | ------------------------------------------ | ------------------------------------------------------ |
| Used by                        | People building scenarios                         | Module fields (dynamic options and fields) | AI callers                                             |
| API calls                      | One or more                                       | Usually one                                | Exactly one                                            |
| Inputs and outputs             | Rich, nested, human-friendly                      | Depend on the parent module                | Simple, typed, mirror the vendor API                   |
| Input handling                 | IML Mapper runs first (pills, `null` and `erase`) | Mapped with the parent form values         | No IML. Validated and normalized, then passed through. |
| Own scope and annotations      | Scope only                                        | No                                         | Yes                                                    |
| Output schema                  | `Interface`                                       | No                                         | Yes, the full resource                                 |
| Can run in a scenario          | Yes                                               | No                                         | Not yet                                                |
| Part of discovery and manifest | Yes                                               | No                                         | Yes                                                    |

## Types of endpoints

* Regular endpoints wrap one operation of the service API, for example `getDocument` or `createEvent`.
* Arbitrary call endpoint (arbitraryCall) is a generic endpoint that works like the Make an API call module. It accepts a path, method, headers, query string, and body, and runs the request against the app's base URL using the app's connection. [Learn more](https://docs.google.com/document/d/1vJQ0t3Hzu38n3YOCLDwTJAwSzPCF59beXuPSefbgtMo/edit#arbitrary-call-endpoint).

## Components

### Connection

An endpoint can use one of the app's connections. Like modules, endpoints can also be connection-less, for example when the API doesn't require authentication. The connection isn't part of the endpoint's input parameters. The platform applies it automatically when the endpoint runs.

### Properties

| Property                         | Description                                                                                                                                                                                     |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`                           | Technical name of the endpoint, unique within the app. Use camelCase and start with a lowercase verb, for example `listMessages` or `createInvoice`.                                            |
| `label`                          | Display name in sentence case, for example "Create an invoice".                                                                                                                                 |
| `description`                    | One full sentence that explains what the endpoint does.                                                                                                                                         |
| `api`                            | The single API call the endpoint makes.                                                                                                                                                         |
| `input_parameters`               | Parameters the caller sends.                                                                                                                                                                    |
| `output_parameters`              | Structure of the response.                                                                                                                                                                      |
| `attachedAccounts` (connections) | The app's own connection(s) that may be used. Suite aliasing is covered for Google and Microsoft. The connection is not part of the input schema, so there is no `__IMTCONN__` magic parameter. |
| `scope`                          | OAuth scopes needed for this single call (like a module's `scope.imljson`).                                                                                                                     |
| `annotations`                    | MCP hints that describe the effect of the call.                                                                                                                                                 |
| `context.md`                     | This is a usage documentation for AI callers. Markdown with YAML frontmatter (`name`, `description`).                                                                                           |
| `schemaVersion`                  | Allows a future switch to a different schema format without breaking existing endpoints.                                                                                                        |

Schemas stay in **Forman**, so there is one DSL across modules and endpoints. Forman also supports JSON Schema directly. For AI consumers they are converted to JSON Schema by the Transforman libraries (`@makehq/forman-schema`, which is open source, and the internal `@integromat/maia-utils/transforman`).

### Communication

The API section uses the same structure as [RPC communication](https://developers.make.com/custom-apps-documentation/app-components/rpcs.md#communication): url (relative to the app's base URL), method, qs, body, headers, and response.

Endpoints follow these rules:<br>

* One endpoint, one API call. Don't chain calls or add extra calls to other APIs.
* No input that changes the request path. If a module calls one API path or another depending on an input, create two endpoints.
* No output transformation. Set `response.output` to the response body, for example `{{body}}`.
* No pagination directive. See [#pagination](#pagination "mention").
* No binary data. Endpoints send and receive JSON only. See [#binary-data](#binary-data "mention").
* No nested calls. An endpoint can't call another endpoint.

### Input and output parameters

Endpoints use the same [Parameters](https://developers.make.com/custom-apps-documentation/block-elements/parameters.md) syntax as modules, with these differences:<br>

* Include every parameter the service API supports, using the API's own names and types, including parameters that aren't available in the app's modules.
* Add help to every parameter, including nested fields. AI callers rely on it to understand the field.
* Use the most specific type available (email, date, url, boolean, number) and use select for fixed lists of values.
* Don't use RPCs, dynamic fields, or UI-only properties such as advanced, labels, or mappable. Endpoints have no input form.
* Outputs describe the full resource returned by the API. If the response body is empty, define the output as an empty array `([])`.

#### **Input handling**

When an endpoint runs, no IML is evaluated on the input. This differs from modules, where the mapper resolves pills and functions before the module runs. The input sent by the caller is validated against the schema and passed to the API section as parameters. From there, you can use IML functions in API as usual.

The input is validated strictly:

* Keys that aren't defined in the schema are rejected.
* IML expressions are rejected.
* Values aren't converted. For example, "5" isn't accepted for a number field.
* Missing required fields fail validation. Defaults are applied only to required fields that are missing.

To clear a value, the caller sends an explicit null. The platform passes it to your API section as it is. You don't need the erase pill.

### Scope

Define the minimum OAuth scopes needed for the single API call. Use only scopes that the app's connection or modules already declare. A scope that isn't declared by the app isn't included in the user's token, so the call fails at runtime.

### Annotations

Annotations tell AI callers what an endpoint does. They are based on MCP tool annotations and allow you, for example, to limit an agent to read-only calls.

| Annotation          | Meaning                                                                                                                                          |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `readOnlyHint`      | The call doesn't change anything. Can't be combined with `destructiveHint`.                                                                      |
| `destructiveHint`   | The call can overwrite or remove existing data.                                                                                                  |
| `idempotentHint`    | Repeating the same call has no additional effect.                                                                                                |
| `openWorldHint`     | The call affects parties outside the connected account, for example sending an email or SMS, posting to a public channel, or publishing content. |
| `arbitraryCallHint` | The call isn't limited to a single route. Set to true only on the `arbitraryCall` endpoint.                                                      |

Set annotations based on what the API call does, not on its HTTP method.

| What the call does                                                                        | Annotation                                                                                                                                             |
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Only reads data, including searches or queries sent as POST requests, and GraphQL queries | `readOnlyHint` and `idempotentHint`                                                                                                                    |
| Creates a new resource without changing existing data                                     | None                                                                                                                                                   |
| Changes existing data                                                                     | `idempotentHint` if repeating the call is harmless. Add `destructiveHint` if it overwrites or removes values, for example a full replace or an upsert. |
| Deletes or irreversibly ends something                                                    | `destructiveHint`. Add `idempotentHint` for deleting by ID.                                                                                            |
| Sends content outside the connected account                                               | `openWorldHint`, combined with the annotations above                                                                                                   |
| Arbitrary call                                                                            | `arbitraryCallHint` only                                                                                                                               |

If an operation can perform several actions, annotate it for the most severe one.

### Context

Each endpoint has a context.md file. It's a Markdown file with usage documentation that is served to AI callers together with the endpoint definition. It starts with YAML frontmatter that contains name and description, followed by the details an AI caller needs, such as usage notes, limitations, how indexes work, and examples. For endpoints that update data, advise the caller to get the current resource first, because omitted fields might be cleared.

```
---
name: updateContact
description: Updates an existing contact. Fields that are omitted might be cleared.
---

Use `getContact` first to get the current values, then send the full object.
```

## Pagination

Endpoints make a single request. They don't iterate through pages.

* Define every pagination control that the API supports as an input parameter, for example page, limit, offset, cursor, or page token. Include the default and maximum values in help.
* Define every value that the API returns for continuing, such as the next cursor, next page token, or total count, as an output parameter. The caller requests the next page by calling the endpoint again.
* If the API has a dedicated operation for continuing a list, create a separate endpoint for it.
* For asynchronous jobs, create separate endpoints to start the job, check its status, and get the result. The caller handles polling.

## Binary data

Endpoints can send and receive JSON only. This means:

* Uploads: use the service's URL-based variant if it exists, or accept the file as a base64 string in a text input. If the API supports only multipart/form-data or raw binary uploads, don't create an endpoint for it.
* Downloads: don't create endpoints that return binary content.

## Arbitrary call endpoint

Every app that has endpoints must also have an `arbitraryCall` endpoint. It lets an AI caller reach any API operation that isn't covered by a regular endpoint. It works like the Make an API call module.

| Property    | Value                                                 |
| ----------- | ----------------------------------------------------- |
| name        | `arbitraryCall`                                       |
| label       | `Arbitrary call`                                      |
| description | Performs an arbitrary authorized API call.            |
| annotations | `arbitraryCallHint: true`. All other hints are false. |

* **Base URL**: use the part of the Make an API call module's URL that comes before `{{parameters.url}}`, including version segments. For example, if the module URL is `https://api.example.com/v2/{{parameters.url}}`, the base URL is `https://api.example.com/v2/`.
* **Inputs**: `url` (relative to the base URL), `method`, `headers`, `qs`, and `body` (type `any`).
* **Outputs**: `body`, `headers`, and `statusCode`.
* Add `help` to every input and output.
* Carry over any non-standard logic from the module that affects the request, such as extra headers or query parameters. Don't duplicate authentication that is already added in the base.
* In `context.md`, include the base URL, an example path (a GET request without parameters), and a link to the service's API reference.

## Use an endpoint from a module or RPC

A module or RPC can run a sibling endpoint instead of making its own HTTP request. Replace `url` in the `api` section with the endpoint directive and pass the input.

```
{
    "api": {
        "endpoint": "getDocument",
        "input": {
            "documentId": "{{parameters.documentId}}"
        }
    }
}
```

The endpoint's result is exposed like an HTTP response (`body` and `statusCode: 200`). Keep these rules in mind:<br>

* endpoint can't be combined with url or agency.
* endpoint is static. IML isn't evaluated in the endpoint name.
* The input must be a single object.
* An endpoint can't call another endpoint.
* The directive isn't available in triggers or webhooks.
* A single execution can make up to 100 inline endpoint calls.
* A single-item array in the result is returned as an object, and an empty array as `{}`. To keep the array, set `response.unwrap` to false or use `response.iterate`.

## Naming and labels

* Name: camelCase, starts with a lowercase verb, 3 to 64 characters (`[a-z][a-zA-Z0-9]{2,63}`). Don't use module-style prefixes such as `Action` or `Trigger`, or counters. Write acronyms as words (`generateInvoicePdf`). Name the endpoint after the API operation, not the module that uses it.
* Labels, descriptions, and help: write in sentence case. Use "Verb + item" for labels: singular for actions ("Create a message") and plural for lists and searches ("List files"). Write descriptions and `help` as full sentences. Option values, JSON keys, and API values keep their original form.

## Create and test an endpoint

1. In your app, open the **Endpoints** tab and create an endpoint.
2. Configure the **API**, **Input**, **Output**, **Scope**, and **Context** sections.
3. Set the endpoint to public.
4. Test the endpoint with Run endpoint, or call it through the Make MCP server with a real connection.
5. Test every input, and re-test after you change the schema, help, or context.

{% hint style="info" %}
New endpoints are private by default. Make an endpoint public to include it in the published app.
{% 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.make.com/custom-apps-documentation/app-components/endpoints.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
