> ## Documentation Index
> Fetch the complete documentation index at: https://60db.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# API Reference

> Complete API reference for 60db

## Base URL

```
https://api.60db.ai
```

## Authentication

All API requests require authentication using an API key in the `Authorization` header:

```bash theme={null}
Authorization: Bearer your-api-key
```

## Response Format

All API responses are returned in JSON format unless otherwise specified.

### Success Response

```json theme={null}
{
  "success": true,
  "data": { ... }
}
```

### Error Response

```json theme={null}
{
  "success": false,
  "error": "Error type",
  "message": "Detailed error message"
}
```

## HTTP Status Codes

| Status Code | Description           |
| ----------- | --------------------- |
| 200         | Success               |
| 201         | Created               |
| 400         | Bad Request           |
| 401         | Unauthorized          |
| 403         | Forbidden             |
| 404         | Not Found             |
| 429         | Too Many Requests     |
| 500         | Internal Server Error |

## Rate Limiting

API requests are rate-limited based on your subscription plan. Rate limit information is included in response headers:

* `X-RateLimit-Limit`: Maximum requests allowed
* `X-RateLimit-Remaining`: Remaining requests in current window
* `X-RateLimit-Reset`: Time when the rate limit resets (Unix timestamp)

## Pagination

List endpoints support pagination using query parameters:

* `page`: Page number (default: 1)
* `limit`: Items per page (default: 20, max: 100)

```bash theme={null}
GET /voices?page=2&limit=50
```

Response includes pagination metadata:

```json theme={null}
{
  "data": [...],
  "pagination": {
    "page": 2,
    "limit": 50,
    "total": 150,
    "pages": 3
  }
}
```

## Endpoints Overview

### Text-to-Speech

* `POST /tts-synthesize` - Convert text to speech

### Speech-to-Text

* `POST /stt` - Transcribe audio to text
* `GET /stt/languages` - Get supported languages

### Voices

* `GET /voices` - List all voices

## SDKs

We provide official SDKs for popular programming languages:

<CardGroup cols={2}>
  <Card title="JavaScript/TypeScript" icon="js" href="/sdks/javascript">
    npm install 60db
  </Card>

  <Card title="Python" icon="python" href="/sdks/python">
    pip install 60db
  </Card>
</CardGroup>
