> 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 sua Tabela à sua 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 da importação manual de dados.
{% endhint %}

{% hint style="danger" %}
Observe que Tabelas não podem ser exportadas em[ exportação do 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).
{% 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.**
2. Clique em **Tokens de acesso.**
3. No canto superior direito, clique em **Gerar token.**
4. Insira um **Nome do token**.

<figure><img src="https://181262846-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FmVJYY9bcT11aWce2H7el%2FScreenshot%202024-07-01%20at%2022.19.53.png?alt=media&amp;token=b0671974-5016-46b1-86d4-d3f757a74ac2" alt=""><figcaption></figcaption></figure>

5. Clique em **Criar.**
6. **Copie** 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, 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 by asking a question.

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

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