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

# API Reference

> Complete API reference for the Lucid protocol — 65+ endpoints

**Base URL:** `https://api.lucid.foundation`

**Authentication:** Bearer token in `Authorization` header

## Endpoint Groups

| Group         | Endpoints | Description                                                      |
| ------------- | --------- | ---------------------------------------------------------------- |
| **Passports** | 8         | Identity management (CRUD, sync, stats)                          |
| **Inference** | 5         | Chat completions, matching, routing                              |
| **Receipts**  | 9         | Cryptographic receipts, proofs, verification                     |
| **Epochs**    | 8         | Batch anchoring, verification, stats                             |
| **Payouts**   | 4         | Payout calculation and verification                              |
| **Compute**   | 2         | Node heartbeat and health                                        |
| **Agents**    | 14+       | Agent orchestration lifecycle                                    |
| **Health**    | 7         | System health checks                                             |
| **Aliases**   | 5         | Convenience endpoints (models, compute, tools, datasets, agents) |

## Interactive Playground

Every endpoint below has an **interactive playground** — click "Try It" to send real requests.

## SDK Code Samples

Each endpoint includes TypeScript SDK examples generated from the OpenAPI spec. Install the SDK:

```bash theme={null}
npm install raijin-labs-lucid-ai
```

## Rate Limits

See [Rate Limits](/api-reference/rate-limits) for details.

## Error Codes

See [Error Reference](/api-reference/errors) for all error codes and solutions.
