> For the complete documentation index, see [llms.txt](https://docs.chatlayer.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatlayer.ai/chatlayer-documentation-pt-br/navegacao/tables/api.md).

# API

Conecte seu Chatlayer [Tabela](/chatlayer-documentation-pt-br/navegacao/tables.md) com sua API ao seu banco de dados.

{% hint style="warning" %}
Para importar mais de 100 registros, recomenda-se usar uma API em vez de importação manual de dados.
{% endhint %}

{% hint style="danger" %}
Por favor, note que Tabelas não podem ser exportadas em[ exportação de bot](/chatlayer-documentation-pt-br/navegacao/settings/import-export.md) ainda.
{% endhint %}

{% hint style="info" %}
Por favor, encontre a documentação da API e a autorização [aqui](https://gateway.prod.europe-west1.gc.chatlayer.ai/api/v1/docs/static/index.html).&#x20;
{% endhint %}

## Como autenticar

A API requer autenticação básica. Siga estas diretrizes para encontrar o nome de usuário e a senha ao fazer uma solicitação de API.

1. Ir para **Configurações.**&#x20;
2. Clique em **Tokens de acesso.**
3. No canto superior direito, clique em **Gerar token.**
4. Insira um **Nome do token**.

<figure><img src="/files/695cea87e97051e7e8afd83983da1114db320c40" alt=""><figcaption></figcaption></figure>

5. Clique em **Criar.**
6. **Copiar** o token.

{% hint style="info" %}
Um token consiste em um nome de usuário e uma senha. Por exemplo, o seguinte é um token gerado:

`66830fb161b3c29143f32705:78b3e20492db13584eE52C556F99a5d2`

A parte antes dos dois-pontos (:) é o **nome de usuário**, e a parte após os dois-pontos é a **senha**.

Nome de usuário: `66830fb161b3c29143f32705`

`Senha:78b3e20492db13584eE52C556F99a5d2`
{% endhint %}

{% hint style="info" %}
Para a URL base, por favor use\
UE: <https://gateway.prod.europe-west1.gc.chatlayer.ai/api/v1>\
EUA: <https://gateway.prod.us-east4.gcp.chatlayer.ai/api/v1>\
SA: <https://gateway.prod.sa-east1.gcp.chatlayer.ai/api/v1>\
ÁSIA: <https://gateway.prod.asia-south1.gcp.chatlayer.ai>
{% 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chatlayer.ai/chatlayer-documentation-pt-br/navegacao/tables/api.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.
