Build on PuffinMail with the Store API
Running your own platform, or want emails to fire from your own code? The Store API is the same JSON API our WooCommerce, Magento and PrestaShop integrations use. Sync contacts, orders, products and coupons, and trigger your own order emails whenever your code decides.
- JSON over HTTPS
- One key per store, revocable
- Retries never send twice
Everything the plugins do, from your own code
Your own order emails
Add an order email under Store emails, for example “order.delivery_day”, and design it in the visual editor. Send that event from your code and it goes out: a delivery date, a pick-up reminder, a thank-you, whatever you need. Extra properties become template variables, like {{ delivery_date }}.
Store events
Send orders, refunds, cancellations and abandoned carts as events. Order values feed lifetime value, segments and the revenue reports, and the built-in cart and birthday emails react straight away.
Contacts and consent
Add or update up to 100 contacts a request, with their order stats, birthday and a consent record when they opt in. Unsubscribe, delete and email-topic endpoints keep everything in step.
Products and coupons
Sync your catalog so emails can show bestsellers, new arrivals and sale items, and your shared discount codes so forms and emails can offer them.
Webhooks back to your store
When someone subscribes or unsubscribes in PuffinMail, your store gets a signed webhook (HMAC-SHA256), so your own records stay right.
Storefront script
One script tag shows your sign-up forms, records product views for browse-abandonment emails and credits orders to the email that brought the buyer back.
Send your own order email
PuffinMail doesn’t mind what triggers an order email: a status change, a delivery date, a scheduled job or your own code. One event per order and email type, so a retried request never emails twice.
Any platform: one HTTP request
curl https://my.puffinmail.co/api/v1/events \
-H "Authorization: Bearer pm_sk_…" \
-H "Content-Type: application/json" \
-d '{
"events": [{
"type": "order.delivery_day",
"id": "order:1234",
"email": "jane@example.com",
"occurred_at": "2026-12-03T21:00:00Z",
"properties": {
"order_number": "1234",
"delivery_date": "Friday 4 December"
}
}]
}'WooCommerce: one line of PHP
// In your theme or plugin, whenever you decide:
do_action( 'puffinmail_send_order_email', $order_id, 'order.delivery_day',
array( 'delivery_date' => 'Friday 4 December' ) );
# Or from a cron job with WP-CLI:
wp puffinmail send-order-email 1234 --type=order.delivery_day --delivery_date="Friday 4 December"From key to first email
Get a store key
Start a trial, then create a key under Stores in PuffinMail. It’s shown once and you can revoke it any time.
Set up the email
Under Store emails, add an order email from a ready-made design, edit it in the visual editor and switch it on.
Send the event
POST it to https://my.puffinmail.co/api/v1/events with your key. The response tells you, per event, whether the email went out.
Let your coding agent see the results
The PuffinMail MCP server works in Claude Code, Cursor and other MCP apps too. Connect it while you build and ask how your emails are doing, without leaving your editor. It reads results and prepares drafts; it never sends.
claude mcp add --transport http puffinmail https://my.puffinmail.co/mcpConnect your AI agentQuestions
Where is the full API reference?
Email hello@puffinmail.co and we’ll send it, with help connecting your platform. It covers every endpoint, field and error code.
Can an automation start on my own event?
Today automations start on the built-in store events (orders, carts, sign-ups and segments), and your own order events send order emails. If you need a multi-step flow on a custom event, tell us what you’re building.
What happens if my request is retried?
Nothing extra. Re-sending an event with the same type and id updates it, and its email never goes out twice. Batch requests check each item separately, so one bad item never rejects the rest.
Do order emails go to people who unsubscribed?
Yes, because they’re about the buyer’s own order, so they have no unsubscribe link. Keep them about the order, with no offers. Only a bounce, a spam complaint or a suppression stops them. They count towards your plan’s monthly emails.
Can I import history without emailing anyone?
Yes. Mark events as a backfill and they’re recorded for segments and reports, but no emails are sent.

A brighter inbox is just
one email away.
Try PuffinMail free for 14 days: connect your store and send your first campaign.
Start free trialor email hello@puffinmail.co