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

# APIs

<video autoPlay muted loop playsInline className="w-full aspect-video rounded-xl" src="https://mintcdn.com/ksg-ea85c748/l2qsr6fPwCm0Yxr-/videos/vivi_apis.mp4?fit=max&auto=format&n=l2qsr6fPwCm0Yxr-&q=85&s=3f26b43edfd396f98f1c48c86bd75473" data-path="videos/vivi_apis.mp4" />

APIs (Application Programming Interfaces) **connect agents to external systems via HTTP**. APIs define what actions agents can perform—such as viewing, creating, or updating data—depending on endpoint permissions. For instance, a helpdesk API may let agents read tickets but not create them. When setting up your custom API, review the documentation to ensure it supports the functions your agent needs.

***

## Configuring your API

To configure a custom API, go to the **Integrations** tab and select **APIs**. From the **Add New** screen, you can import your OpenAPI definition (JSON or YAML) to automatically declare available endpoints (e.g., `GET /tickets`, `POST /users`).

Specify your authentication type as **OAuth**, **API key**, or **None**. Once your schema is imported and endpoints are visible under the **Available Actions** section, click **Confirm** to save.

## Testing your API

After saving, open your API and click the **Test** button next to an endpoint to open the **Test Panel**. Here, you can view and modify parameters, headers, and body fields. Enter your desired values and click **Send** to see live API responses.

<Note> Some APIs do not support testing through the frontend. If you are using the test panel and experience issues, trying adding your API to an agent and testing it through the chat feature.</Note>

***

## Best Practices

* Make sure to **test** all APIs before deployment.
* Verify your **API keys**, **header format**, and **authentication settings** if tests fail.
* Use **OpenAPI 3.x** or later for best compatibility.
