> ## Documentation Index
> Fetch the complete documentation index at: https://sailia-mintlify-document-new-features-1776330531.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# API introduction

> Get started with the Sailia REST API.

The Sailia API gives you programmatic access to bookings, baskets, products, usage meters, and more. All endpoints are served over HTTPS and return JSON responses.

## Authentication

All API requests require a Bearer token in the `Authorization` header:

```bash theme={null}
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  https://api.sailia.com/api/v2/usage/meters
```

Contact the Sailia team to obtain an API token for your account.

## Base URL

```
https://api.sailia.com/api/v2
```

## Error format

All error responses follow the [RFC 7807](https://www.rfc-editor.org/rfc/rfc7807) problem detail format:

```json theme={null}
{
  "type": "https://sailia.dev/problems/validation",
  "title": "Unprocessable Entity",
  "status": 422,
  "detail": "Meter is required",
  "instance": "/api/v2/usage/meters"
}
```

## Available resources

<Columns cols={2}>
  <Card title="Meter usage tracking" icon="chart-bar" href="/api-reference/meter-tracking">
    Record consumption events and query aggregated usage summaries.
  </Card>

  <Card title="OTA core endpoints" icon="plane" href="/api-reference/ota-core">
    Integrate as an online travel agency to list activities, check availability, and create bookings.
  </Card>
</Columns>
