//Headless Blog & Email-to-Post

Headless Markdown Blog & Email Publishing

Content marketing is critical for SaaS growth. ButtrBase includes a built-in Headless Markdown Blog API, allowing you to serve lightning-fast, SEO-optimized blog platforms on your marketing site without needing WordPress or Ghost.

The "Email-to-Post" Magic

The most powerful feature of the ButtrBase Blog engine is our Inbound Email Processor. You can configure a unique inbound email address (e.g., publish@your-saas.com).

When your marketing team sends an email to this address: 1. ButtrBase intercepts the email. 2. It strips HTML boilerplate and converts the content into clean, formatted Markdown. 3. It extracts any attached images, uploads them to the Global Asset CDN, and injects the CDN links into the markdown. 4. It automatically publishes the post via the Headless Blog API.

Fetching Posts (React/Next.js Example):

import { ButtrBaseClient } from '@buttrbase/js-sdk';
const client = new ButtrBaseClient('https://api.your-domain.com');

// Fetch the latest 10 published posts const posts = await client.blog.listPosts({ limit: 10, status: 'published' });

posts.forEach(post => { console.log(post.title, post.markdown_content); });