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

# API Reference

> Sontairo REST API documentation

Sontairo exposes a REST API for programmatic access to all platform features.

## Base URL

```
https://sontairo.com/api
```

For self-hosted deployments, replace with your instance URL.

## Authentication

All API requests require authentication via session cookies (for browser-based access) or API tokens.

See [Authentication](/api-reference/authentication) for details.

## Response Format

All API endpoints return JSON with a consistent structure:

### Success

```json theme={null}
{
  "data": { ... }
}
```

### Error

```json theme={null}
{
  "error": "Human-readable error message"
}
```

## Common Parameters

| Parameter     | Description                                         |
| ------------- | --------------------------------------------------- |
| `workspaceId` | Required. The workspace to operate in.              |
| `projectId`   | Optional. Scopes the request to a specific project. |
