# API Template

### What is an API template

The API template is a special category of resources that are built on top of our [API Connector](/acho-studio/resources/import-data/get-data-from-api.md). It connects with your external data sources through their official API endpoints.

### How to connect a built-in table

An API template resource configuration interface usually contains two sections, a form for default parameters and an "Advanced Settings" option for further customizations.

Let's take Pipedrive as an example.

<figure><img src="/files/UzJ7I5EyQvEXUrXiaiAW" alt=""><figcaption></figcaption></figure>

Assume that I need to retrieve the list of files from Pipedrive to Acho, it requires the following steps:

(1) Open the "Table" dropdown and select "Files".&#x20;

<figure><img src="/files/oPrMJJa7KvjPPEIlRlqC" alt=""><figcaption></figcaption></figure>

(2) Fill in the correct "API Token" and "Company Domain".&#x20;

<figure><img src="/files/TghZ59USiDDyi5ihxauH" alt=""><figcaption></figcaption></figure>

(3) Click "Test" to preview the result and click "Connect" to save it as a resource.

### How to connect a custom table

However, the target table might be listed in the "Table" dropdown. In this case, we can open the "Advanced Settings" section and modify the API Connector configuration directly.

<figure><img src="/files/UoK3MkdFKTGs4Ia7Azqz" alt=""><figcaption></figcaption></figure>

Assume that I need to retrieve the list of pipelines from Pipedrive to Acho, it requires the following steps.

(1) Find the correct API configuration in Pipedrive's official document.

(2) Update the configuration in the "Advanced Settings".

(3) Click "Test" to preview the result and click "Connect" to save it as a resource.

To learn more about the API Connector and its configuration, please check out its dedicated [document](/acho-studio/resources/import-data/get-data-from-api.md) here.


---

# Agent Instructions: 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:

```
GET https://docs.acho.io/acho-studio/resources/import-data/api-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
