This page covers conventions and common calls. For the full endpoint list, see the REST API reference.
Base URLs
Authentication
Browser sessions use Better Auth cookies through/api/auth/*. Automation uses bearer auth:
Bearer-authenticated requests skip CSRF checks, which makes them convenient for scripts and services.
Response shape
Most JSON routes return either a domain object or an object wrapping a collection:201 on success. Raw content routes can return source text with content headers instead of JSON.
Errors
Domain errors map to stable HTTP categories:| Status | Meaning |
|---|---|
400 | Invalid request body or query |
401 | Missing or invalid authentication |
403 | Authenticated but not authorized |
404 | Resource not found or not visible |
409 | Slug conflict or concurrent write conflict |
503 | Required external service or billing config missing |
Common calls
MCP metadata
The API also serves the OAuth metadata MCP clients need:REST API reference
Every endpoint, grouped by resource, with request bodies.