> For the complete documentation index, see [llms.txt](https://docs.toucanai.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toucanai.cloud/govern/security-model.md).

# Security model

{% hint style="info" %}
**Target Audience**: Developers, security reviewers, and technical decision-makers integrating Toucan AI.
{% endhint %}

### TL;DR

Toucan AI protects data with layered controls: short-lived embed tokens, organization isolation, row-level security on queries, encrypted database credentials, and clear boundaries between **platform data** and **your connected data**.

***

### What this section covers

* [Data access boundaries](/govern/security-model/data-access-boundaries.md) — who can access what
* [Data storage & retention](/govern/security-model/data-storage-and-retention.md) — what Toucan stores, query data flow, caching
* [PII & personal data](/govern/security-model/pii-and-personal-data.md) — where personal data can appear and how to minimize it
* [Secrets & encryption](/govern/security-model/secrets-and-encryption.md) — credentials and tokens
* [Token security](/govern/security-model/token-security.md) — embed authentication
* [API security](https://github.com/ToucanToco/toucan-ai/blob/main/docs/govern/security-model/api-security.md) — access controls for APIs
* [AI assistant data handling](/govern/security-model/ai-assistant-data-handling.md) — conversations and AI workflows
* [Third-party subprocessors](/govern/security-model/third-party-subprocessors.md) — external providers that may process data

For embed-specific responsibilities, see also [Security boundaries](/embed/embedding-overview/security-boundaries.md).


---

# 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.toucanai.cloud/govern/security-model.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.
