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

# API Overview

> Getting started with the ChatbotX Public API

## Authentication

There are two ways to authenticate with the ChatbotX API:

### API Key

Get your API key from **Settings > Integrations > ChatbotX API Access Token**. Include it in the `Authorization` header as a Bearer token:

```bash theme={null}
curl -H "Authorization: Bearer your-api-key" https://app.chatbotx.io/api/v1/workspaces
```

## Base URL

| Environment    | Base URL                      |
| -------------- | ----------------------------- |
| ChatbotX Cloud | `https://app.chatbotx.io/api` |
| Self-hosted    | `https://{YOUR_DOMAIN}/api`   |

## Rate Limits

<Info>
  **10,000 requests per minute** limit applies to all endpoints.

  This doesn't mean you can only post 10,000 times per minute, each API call counts as one request. Schedule multiple posts in a single request to maximize throughput.
</Info>
