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 Authentication
Authenticated REST endpoints require a bearer token.Token Types
Maito routes accept Clerk-backed tokens. Most product routes accept any valid Clerk-supported token configured by the API auth layer. API key management itself is session-only because users must create and revoke API keys from an authenticated session. Public newsletter endpoints do not require user authentication.API Keys
API keys are managed through authenticated API key routes:| Method | Endpoint | Purpose |
|---|---|---|
GET | /v1/api-keys | List API keys for the current user. |
POST | /v1/api-keys | Create an API key. |
DELETE | /v1/api-keys/:apiKeyId | Revoke an API key. |
Browser And Server Usage
Server-side integrations should pass tokens from environment or secret storage. Browser clients should use session tokens obtained through the authenticated app flow and should not embed long-lived secrets.Authentication Failures
Missing, expired, malformed, or unauthorized tokens return an error envelope:error.code for product-specific handling.