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

# Welcome to Sapot Chat API Docs

> API documentation for Sapot Chat - the open-source customer support platform.

## Sapot Chat API

Build powerful integrations with Sapot Chat using our comprehensive REST APIs.

<CardGroup cols={2}>
  <Card title="Application APIs" icon="grid-2" href="/api-reference/introduction">
    Manage agents, contacts, conversations, inboxes, messages, and more
  </Card>

  <Card title="Platform APIs" icon="server" href="/api-reference/introduction">
    Administrative control for accounts, users, and agent bots
  </Card>

  <Card title="Client APIs" icon="comment" href="/api-reference/introduction">
    Build custom chat interfaces for your end users
  </Card>

  <Card title="Other APIs" icon="ellipsis" href="/api-reference/introduction">
    CSAT surveys and additional endpoints
  </Card>
</CardGroup>

## Base URL

All API requests should be made to:

```
https://chat.sapot.ai/
```

## Authentication

Sapot Chat APIs use **API access tokens** for authentication. You can find your access token in the Sapot Chat dashboard under **Settings > Account Settings > Access Token**.

Include the token in your request headers:

```bash theme={null}
curl -H "api_access_token: your_access_token" \
  https://chat.sapot.ai/api/v1/accounts/{account_id}/conversations
```

## API Categories

| Category             | Use Case                                                          | Auth Type           |
| -------------------- | ----------------------------------------------------------------- | ------------------- |
| **Application APIs** | Day-to-day operations — agents, conversations, contacts, messages | User access token   |
| **Platform APIs**    | Multi-tenant management — accounts, users, agent bots             | Platform app token  |
| **Client APIs**      | End-user facing — create contacts, send messages from widget      | Contact inbox token |

## Support

* **Email**: [support@sapot.ai](mailto:support@sapot.ai)
