Documentation Index
Fetch the complete documentation index at: https://docs.60db.ai/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Authentication
All API requests require authentication using an API key in theAuthorization header:
Response Format
All API responses are returned in JSON format unless otherwise specified.Success Response
Error Response
HTTP Status Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 202 | Accepted (queued for async processing) |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient credits — workspace wallet balance too low |
| 403 | Forbidden |
| 404 | Not Found |
| 413 | Payload Too Large |
| 422 | Unprocessable Entity (validation or extraction fail) |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
| 503 | Service Unavailable |
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 allowedX-RateLimit-Remaining: Remaining requests in current windowX-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)
Endpoints Overview
Text-to-Speech
POST /tts-synthesize- Convert text to speech
Speech-to-Text
POST /stt- Transcribe audio to textGET /stt/languages- Get supported languages
Voices
GET /voices- List all voices
Memory & RAG
POST /memory/ingest- Store a single memory (user/knowledge/hive)POST /memory/ingest/batch- Batch-store up to 100 memoriesPOST /memory/documents/extract- Upload a document (PDF, DOCX, XLSX, images) for extraction + OCR + chunked ingestPOST /memory/search- Hybrid semantic + keyword recallPOST /memory/context- Assemble an LLM-ready context string for RAGGET /memory/collections- List collections in the workspacePOST /memory/collections- Create a team/knowledge/hive collectionGET /memory/usage- Monthly spend breakdown and wallet balance
x-credit-balance, x-credit-charged, and x-billing-tx headers so you can track spend in real time. When the wallet is empty, billable endpoints return 402 INSUFFICIENT_CREDITS with a structured details.shortfall body so your client can prompt for top-up.
LLM Chat
POST /v1/chat/completions- OpenAI-compatible chat completions
Billing & Usage
Each workspace has its own USD wallet. All service operations (TTS, STT, LLM, Memory) deduct from the workspace wallet. Funds are added via the Dashboard. Only workspace owners can access billing endpoints.GET /billing/usage-logs- Per-operation deduction history (TTS, STT, LLM, Memory)GET /billing/transactions- Payment history (top-ups, subscriptions)
billing:manage permission (workspace owner only). Non-owners receive 403 Forbidden.
SDKs
We provide official SDKs for popular programming languages:JavaScript/TypeScript
npm install 60db
Python
pip install 60db