> 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/integrateandcode/custom-back-end-integrations/advanced-api-integrations.md).

# Recursos avançados de API

{% hint style="info" %}
Observe que o termo *estado do diálogo* se refere à mesma coisa que *bloco*, no contexto de ferramentas de desenvolvimento.
{% endhint %}

## Logs de execução da API

Na sua[ **Logs de execução**](/chatlayer-documentation-pt-br/navegacao/history/execution-logs.md) aba, você pode ver uma visão geral de todos os erros que ocorreram com as APIs que você configurou no bot. Se você clicar em um erro, poderá ver informações adicionais da solicitação e da resposta sobre o evento que acionou o erro.

## Configurações de SSL da API

No `Configurações` menu em `API` aba, você pode adicionar criptografia às solicitações enviadas pelo Chatlayer.ai por meio do plug-in de API.

Clique em `+ Configuração` para adicionar uma nova configuração de criptografia. Preencha os campos obrigatórios. Você pode escolher entre os tipos de criptografia SSL e HMAC.

<figure><img src="/files/70ead7ae6a0519345af9eeac23b44d8f0aabd6e7" alt=""><figcaption></figcaption></figure>

Depois de criar as configurações de segurança da API, você pode usar essas configurações em um [widget de API](/chatlayer-documentation-pt-br/buildabot/flow-logic/dialog-state/action-bot-dialog.md#api)

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


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.chatlayer.ai/chatlayer-documentation-pt-br/integrateandcode/custom-back-end-integrations/advanced-api-integrations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
