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

# Advanced API features

{% hint style="info" %}
Please note that the term *dialog state* refers to the same thing as *block*, in the context of development tools.
{% endhint %}

## API execution logs

In your[ **Execution logs**](/navigation/history/execution-logs.md) tab, you can see an overview of all errors that occurred with the API's you have configured in the bot. If you click on an error you can see additional request and response information about the event that triggered the error.

## API SSL settings

In the `Settings` menu under the `API` tab you can add encryption to the requests sent by Chatlayer.ai through the API plugin.&#x20;

Click on `+ Setting` to add a new encryption setting. Fill in the required fields. You can choose between the SSL and HMAC encryption types.

<figure><img src="/files/1N6zosZAqg8qIacS2nsT" alt=""><figcaption></figcaption></figure>

After creating the API security settings, you can use these settings in an [API widget](/buildabot/flow-logic/dialog-state/action-bot-dialog.md#api)

<figure><img src="/files/LDFDnz6xuobLa9shxpsS" 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/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.
