Base URL
Authentication
All API endpoints (except health checks) require authentication via theOai-Api-Key header.
Get your API key from the Orchata dashboard → Settings → API Keys.
Response Format
All responses are JSON. Successful responses return the requested data directly:Error Handling
Errors return appropriate HTTP status codes with a JSON body:Common Status Codes
Pagination
List endpoints support pagination via query parameters:integer
default:"1"
Page number (1-indexed)
integer
default:"10"
Items per page (max: 100)
Metadata Filtering
List endpoints for spaces and documents support filtering by custom metadata. Pass a JSON-encoded object as themetadata query parameter:
@> containment operator) - the resource’s metadata must contain all the key-value pairs you specify, but may also have additional keys.
API Endpoints Overview
Spaces
Documents
Queries
Rate Limiting
The API implements rate limiting to ensure fair usage:
Rate limit headers are included in all responses:
SDK & Tools
MCP Server
Connect AI assistants via Model Context Protocol.
TypeScript SDK
Type-safe SDK for Node.js, Deno, Bun, and browsers with AI SDK integration.