> ## Documentation Index
> Fetch the complete documentation index at: https://docs.turrisfi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Two APIs over one platform. Start by finding out which one is yours.

Turris is a compliance platform for insurance distribution. The Public API exposes that data programmatically, as **two APIs**: one for carriers, MGAs and wholesalers reading about the agencies they appoint, and one for agencies and brokerages reading their own record.

They run on one platform and share a host, an OAuth flow and an error envelope. Their pagination differs: agency lists are paged, carrier lists mostly return complete arrays. Your credential works on exactly one of them.

## Start here

> [card] [Which API is mine?](https://docs.turrisfi.com/which-api-is-mine.md)
>
> One question decides it: do you appoint agencies, or are you the agency? The answer gives you your path prefix, the versions available to you, and the `errorType` you get back if you call the wrong surface.

Everything else on this site follows from that answer.

## How this site is organized

| Tab | What is on it |
| - | - |
| **Documentation** | This tab. Conventions that apply to both APIs: authentication, environments, security, versioning, pagination, rate limiting, request and response shape, error handling, idempotency, tooling and support. |
| **Carrier & MGA API** | The carrier surface, `/v2/upstream/*` plus the older `/v1/*`. Starts at [The Carrier & MGA API](https://docs.turrisfi.com/guides/carrier-api.md), then getting started, entity definitions, webhooks, the v1 to v2 migration guide, and the full endpoint reference. |
| **Agency API** | The agency surface, `/v2/downstream/*` and `v2` only. Starts at [The Agency API](https://docs.turrisfi.com/guides/agency-api.md), then getting started for agencies, and the full endpoint reference. |
| **Changelog** | What changed on the API, by date. |

## Conventions you need either way

> [card] [Authentication](https://docs.turrisfi.com/authentication.md)
>
> OAuth M2M and Restricted Access Tokens. Both methods reach the same endpoints, and a credential belongs to one organization.

> [card] [Environments](https://docs.turrisfi.com/guides/environments.md)
>
> Sandbox and live hosts. Both environments serve both APIs.

> [card] [Versioning](https://docs.turrisfi.com/guides/versioning.md)
>
> What `v1` and `v2` mean, and which version each surface has.

> [card] [Error handling](https://docs.turrisfi.com/guides/error-handling.md)
>
> The error envelope, and why you branch on `errorType` rather than on message text.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.