Leafpad API Documentation
Blog backend designed for AI builders
One prompt, instant integration
Content updates instantly
Works with Lovable, Bolt, Replit
Quick Start
Sign Up & Get Prompt
Create your organization and copy the integration prompt
// Sign up at https://leafpad.io // Copy your organization-specific prompt from dashboard
Paste Into AI Builder
Use the prompt in Lovable, Bolt, or Replit
// Your AI builder will create: // - Blog list page // - Individual post pages // - SEO meta tags // - Responsive layouts
Write & Publish
Create posts in Leafpad, they appear on your site instantly
// No rebuild needed! // Posts appear in real-time // Full content API access
Key Features
AI Builder Ready
One prompt integration with Lovable, Bolt, and Replit
Lightning Fast
Sub-50ms response times with edge caching
SEO Optimized
Built-in SEO scoring and meta tag generation
Custom Domains
Use your own domain with automatic SSL
Rich Content Editor
BlockNote editor with markdown support
RESTful API
Simple, predictable API endpoints with JSON
Use Cases
SaaS Product Blogs
Add a blog to your SaaS without touching your codebase
Portfolio Sites
Share thoughts and projects with an integrated blog
Marketing Sites
SEO-optimized content without rebuilding your site
Documentation Sites
Rich content alongside your technical docs
Landing Pages
Dynamic content without sacrificing page speed
Multi-tenant Apps
Each organization gets their own blog automatically
API Overview
RESTful API Endpoints
Simple, public endpoints that return your blog content as JSON.
Get All Posts
GET /api/public/v1/post/[your-org-slug]Get Single Post
GET /api/public/v1/post/[your-org-slug]/[post-slug]Get Sitemap
GET /api/public/v1/post/[your-org-slug]/sitemap