> For the complete documentation index, see [llms.txt](https://doc.aissist.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.aissist.io/tutorial/add-connectors/rest-api.md).

# Connect any REST API

Connect any REST API to Aissist - base URL, authentication (API key, bearer token, username and password, OAuth 2.0) and headers - and build actions on it.

*Last updated: November 12, 2026*

A REST API connector connects Aissist to any HTTP API: your own backend, an internal service, or a vendor Aissist has no ready-made connector for. You describe the address and how it signs in; [actions](https://doc.aissist.io/tutorial/add-actions.md) then call its endpoints. Read [Add Connectors](https://doc.aissist.io/tutorial/add-connectors.md) first for the steps every connector shares.

### Connect in Aissist

1. Go to **Connectors**, click **Add connector** and choose **REST API**.
2. Give it a **Name** and enter the **Base URL**, such as `https://api.example.com/v1`. Actions add their paths to it.
3. Choose the **Authentication** your API uses (below), and add any fixed **Headers** it needs.
4. Optionally set a **test path** that answers with 200, such as `/health`, so **Test** can check the connection.
5. Click **Test before saving**. When it passes, click **Create connector**.

### Authentication

| Method                           | What you enter                                                                                                                                                 |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **No authentication**            | Nothing. For public APIs only.                                                                                                                                 |
| **API key**                      | Where to send it (**header** or **query parameter**), its **name**, an optional **value prefix** (such as `Token` , with the trailing space), and the **key**. |
| **Bearer token**                 | The **token**, sent as `Authorization: Bearer <token>`.                                                                                                        |
| **Username and password**        | Sent as HTTP Basic authentication.                                                                                                                             |
| **OAuth 2.0 client credentials** | **Token URL**, **Client ID**, **Client secret**, and optional **Scopes** (space separated) and **Audience**. Aissist gets and renews the token by itself.      |
| **OAuth 2.0 (sign in)**          | **Authorization URL**, **Token URL**, **Client ID**, **Client secret** and **Scopes**. Click **Save and sign in** and approve access in the pop-up.            |

### Best practice

* **Give Aissist its own key or client**, with only the permissions its actions need.
* **Allow Aissist's IP addresses** in your API gateway or firewall (see [Add Connectors](https://doc.aissist.io/tutorial/add-connectors.md#aissists-ip-addresses)), and refuse other callers for that key.
* **Return clear errors.** The agent reads the response, so a message like "order not found" helps it answer well.

### Related

* [Add Actions](https://doc.aissist.io/tutorial/add-actions.md)
* [Actions](https://doc.aissist.io/capabilities/actions.md)
* [Connectors](https://doc.aissist.io/capabilities/connectors.md)
