> 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.

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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FlWaL6TyQPIA2Iks2Kxf2%2Fimage.png?alt=media&amp;token=0599a75d-b67b-4bce-940f-6bd657efa200" 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="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FWgJz6Sisp4KDGSpIGieL%2Fimage.png?alt=media&amp;token=d9753d19-cecb-40ac-9d9b-1d9a955e68f0" 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 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/integrateandcode/custom-back-end-integrations/advanced-api-integrations.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.
