The complete email API for developers — one fetch-based SDK for any edge runtime. Cloud or self-hosted.
Free for 3,000 emails/month.·$0.60 per 1k overage — pay only for what you send.
From zero to your first send — pick your package manager
$ pnpm add posthawkThe SDK is fetch-based with zero Node-only dependencies — one import, everywhere your code runs.
import { Posthawk } from 'posthawk';
const posthawk = new Posthawk(process.env.POSTHAWK_API_KEY);
export async function POST() {
const { data, error } = await posthawk.emails.send({
from: 'you@yourdomain.com',
to: 'user@example.com',
subject: 'Welcome!',
html: '<h1>Hello from Next.js!</h1>',
});
if (error) return Response.json({ error }, { status: 400 });
return Response.json(data);
}“Posthawk replaced three services I was juggling — sending, receiving, and scheduling behind one clean API. Cut my email code in half.”
Sarah Chen
Freelance Developer
“Migrated off SendGrid in a weekend. The API is simpler, and the overage pricing is noticeably cheaper than what I was paying.”
Marcus Rivera
Indie Developer
“Inbound parsing is the part nobody else does well. My whole support-ticket flow runs on Posthawk webhooks now.”
Aisha Patel
Indie Developer
“We self-host with one Docker command and keep every byte on our own infra. No lock-in, no per-email surprises.”
Jonas Eriksson
Developer at ZippyRows
“Same import in my Next.js routes and my Cloudflare Workers — fetch-based, zero Node polyfills. It just runs at the edge.”
Priya Sharma
Indie Developer
“I wired the MCP server into Claude and now it sends my release emails on command. Didn’t expect email to be the fun part.”
David Kim
Indie Developer
For growing teams who need more volume and no daily sending limits.
Instead of switching between your AI assistant and the Posthawk dashboard, use natural language to send, schedule, query logs, manage contacts, and inspect deliverability — all from inside the agent.
Posthawk runs in production at growing startups.
“Every lease summary and reminder LeaseBrief sends goes through Posthawk. It took an afternoon to set up, and inbox placement has been solid since.”
Run Posthawk on your own servers with a single Docker Compose command. Full control over your data, no vendor lock-in, no per-email fees. Just bring your own sending credentials and start sending. Don't want to manage it? I offer a managed plan starting at $149/mo.
$0
Docker Compose, one command
Free for 3,000 emails a month. One install, any stack — no credit card to start.
I use analytics cookies to understand how you use the site and improve your experience. Privacy Policy