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

# Introduction

> Programmatic access to the Anyreach platform over a REST API.

The Anyreach API is organized around REST. It has predictable, resource-oriented URLs, accepts JSON request bodies, returns JSON responses, and uses standard HTTP verbs and status codes.

## Base URL

All endpoints are relative to:

```
https://api.anyreach.ai
```

Endpoints are grouped by service and each group has a path prefix:

| Prefix            | Service                                                                           |
| ----------------- | --------------------------------------------------------------------------------- |
| `/core`           | Agents, conversations, phone numbers, trunks, web widgets, email, inbound routing |
| `/knowledge-base` | Knowledge bases (datasets), sources, retrieval                                    |
| `/workflow`       | Workflows, executions, triggers                                                   |
| `/campaign`       | Outbound campaigns, contacts, configurations                                      |
| `/mcp`            | Model Context Protocol server                                                     |

## Conventions

* **Requests** — send JSON with a `Content-Type: application/json` header. List endpoints take filters as query parameters and paginate with a cursor.
* **Responses** — always JSON. Timestamps are ISO 8601 (UTC). IDs are opaque strings; don't parse them.
* **Authentication** — every request needs a bearer credential (`ak_` or `pat_`). See [Authentication](/api-reference/authentication).
* **Errors** — non-2xx responses return a JSON `detail` message. See [Errors](/api-reference/errors).

## Resources

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/api-reference/authentication">
    Authorize requests with an API key or personal access token.
  </Card>

  <Card title="Errors" icon="triangle-exclamation" href="/api-reference/errors">
    Error format and status codes.
  </Card>

  <Card title="Conversations" icon="comments" href="/api-reference/conversations/overview">
    Create, list, retrieve, and message conversations.
  </Card>

  <Card title="Knowledge bases" icon="book-open" href="/api-reference/knowledge-bases/overview">
    Datasets, sources, and retrieval.
  </Card>

  <Card title="Agents" icon="robot" href="/api-reference/agents/overview">
    Manage agents, versions, publishing, and deployment.
  </Card>

  <Card title="Campaigns" icon="phone-volume" href="/api-reference/campaigns/overview">
    Create campaigns, upload contacts, and read stats.
  </Card>

  <Card title="Email" icon="envelope" href="/api-reference/email/overview">
    Domains, addresses, and unsubscribes.
  </Card>

  <Card title="Web widgets" icon="window-maximize" href="/api-reference/web-widgets/overview">
    Manage widgets and the public widget runtime.
  </Card>

  <Card title="Telephony" icon="phone" href="/api-reference/telephony/overview">
    Phone numbers, trunks, and inbound routing.
  </Card>

  <Card title="Workflows" icon="diagram-project" href="/api-reference/workflows/overview">
    Manage workflows and run executions.
  </Card>
</CardGroup>
