Documentation Index
Fetch the complete documentation index at: https://docs.getmaito.com/llms.txt
Use this file to discover all available pages before exploring further.
API Overview
The Maito REST API exposes the same core product model used by the app, CLI, SDK, background worker, and MCP server.Base URL
/v1.
What The API Covers
- Account sets and default publishing accounts
- Documents and document context retrieval
- Draft creation, revision, scheduling, publishing, and draft chat state
- Social destinations and OAuth handoff
- Publishing queue items
- Newsletter settings, domains, subscribers, segments, issues, sends, and analytics
- Public newsletter subscription and unsubscribe flows
- Public utility tools
- Supporting product routes exposed by the SDK or CLI
What Is Intentionally Omitted
Provider webhooks, Clerk webhooks, internal newsletter runtime routes, and browser-only social callback shells are not documented as public developer API. They exist for deployed infrastructure and should not be treated as integration contracts.Surfaces
| Surface | URL | Purpose |
|---|---|---|
| REST API | https://api.getmaito.com/v1 | HTTP API for app, SDK, CLI, and external automation. |
| MCP | https://mcp.getmaito.com/mcp | Remote MCP endpoint for assistant clients. |
| SDK | packages/sdk | Typed TypeScript client around the REST API. |
| CLI | packages/cli | Command-line client using the REST API. |
Example Request
Versioning
The public path prefix is/v1. Breaking changes should be made behind a new
versioned prefix or introduced through backward-compatible contract expansion.