Base URL
Authentication
Pass your API key in theX-API-Key header on every request:
Request format
Endpoints that accept a body useapplication/json. Endpoints that accept query parameters are documented with their names and types.
Response format
All responses are JSON. Success responses are documented per-endpoint. Error responses follow a consistent shape:Error codes
| Code | Meaning |
|---|---|
400 | Bad request — malformed JSON or invalid parameter value |
401 | Missing or invalid API key |
404 | Resource not found |
429 | Rate limit exceeded — check X-RateLimit-Reset header |
500 | Server error — transient; retry with exponential backoff |
Rate limits
100 requests/minute per API key on the free tier. Rate limit state is returned in every response:Public API endpoints
These endpoints authenticate with analch_ API key and are the stable developer-facing surface:
| Method | Path | Description |
|---|---|---|
GET | /api/health | Health check (no auth required) |
POST | /api/insights/search | Semantic search over the insight database |
GET | /api/documents/filters | List available source names |
GET | /api/documents/{doc_id} | Get a document and its insights |
GET | /api/documents | List documents with optional filters |