API Reference
Reference documentation for Dispatch APIs and components.
REST API
Dispatch provides a comprehensive REST API for programmatic access to your newsletters.
Subscribe a Reader
POST /api/subscribers
Content-Type: application/json
{
"email": "reader@example.com",
"newsletter_id": "nltr_xyz"
}Fetch Newsletter Issues
GET /api/newsletters/:id/issues Authorization: Bearer your_token Returns an array of newsletter issues sorted by date
Built-in Components
Dispatch provides several built-in components for common use cases:
<Alert />- Highlighted messages with different severity levels<CodeBlock />- Syntax-highlighted code with copy button<Image />- Responsive, optimized images<Callout />- Important notes and tips<Newsletter />- Newsletter-specific layout