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

# API Overview

> Use Dari Router over HTTP.

Dari Router exposes an OpenAI-compatible HTTP endpoint for model traffic. The Platform API supports dashboard and management operations such as routers, organizations, API keys, credentials, and billing.

## Base URLs

| API            | Base URL                   | Authentication                          |
| -------------- | -------------------------- | --------------------------------------- |
| Router Traffic | `https://routing.dari.dev` | Dari API key with the `routing` scope.  |
| Platform API   | `https://api.dari.dev/v1`  | Dari API key with the `platform` scope. |

## Authentication

Send the key as a bearer token:

```http theme={null}
Authorization: Bearer $DARI_API_KEY
```

See [Authentication](/authentication) and [API Keys](/api-keys) for key types and scopes.

## First Request

```bash theme={null}
curl https://routing.dari.dev/rtr_123/chat/completions \
  -H "Authorization: Bearer $DARI_ROUTING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dari/routing",
    "messages": [{"role": "user", "content": "Write a launch checklist."}]
  }'
```

See [Chat Completions](/api-reference/router/chat-completions) for the full request and response shape.

## Product Resources

<CardGroup cols={2}>
  <Card title="Routers" icon="route" href="/router/overview">
    OpenAI-compatible endpoints that select from configured models per request.
  </Card>

  <Card title="Router API" icon="code" href="/api-reference/router/chat-completions">
    Request and response shape for routed chat completions.
  </Card>
</CardGroup>
