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

# API Reference

> Complete API documentation for Olis

## Base URL

```
http://localhost:8000
```

Production:

```
https://api.olis.app
```

## Authentication

Most endpoints require authentication via JWT token:

```bash theme={null}
curl -H "Authorization: Bearer YOUR_TOKEN" \
  https://api.olis.app/api/chat
```

## Available Endpoints

<CardGroup cols={2}>
  <Card title="Chat" icon="message" href="/api-reference/endpoint/chat">
    Send messages and receive AI responses
  </Card>

  <Card title="Search" icon="magnifying-glass" href="/api-reference/endpoint/search">
    Semantic document search
  </Card>
</CardGroup>

## Interactive Documentation

Visit the auto-generated API docs:

* **Swagger UI**: `http://localhost:8000/docs`
* **ReDoc**: `http://localhost:8000/redoc`

## Rate Limits

* 100 requests per minute per user
* 1000 requests per hour per user

## Error Codes

<AccordionGroup>
  <Accordion title="400 Bad Request">
    Invalid request parameters
  </Accordion>

  <Accordion title="401 Unauthorized">
    Missing or invalid authentication token
  </Accordion>

  <Accordion title="429 Too Many Requests">
    Rate limit exceeded
  </Accordion>

  <Accordion title="500 Internal Server Error">
    Server error, contact support
  </Accordion>
</AccordionGroup>
