Learn how to set up your Postflare account and send your first email in under 5 minutes.
Support Team ·
To get started with Postflare, you'll need to create an account:
Once your account is created, you'll need an API key to start sending emails:
Important: Keep your API key secure. Never expose it in client-side code or commit it to version control.
With your API key in hand, you can send your first email using our REST API or one of our SDKs.
curl -X POST https://api.postflare.app/emails \
-H "Authorization: Bearer re_xxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"from": "Your App <hello@yourdomain.com>",
"to": ["recipient@example.com"],
"subject": "Hello from Postflare!",
"html": "<p>This is my first email sent with Postflare.</p>"
}'// Postflare is Resend-compatible — use the Resend SDK with your Postflare API key
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.emails.send({
from: 'Your App <hello@yourdomain.com>',
to: ['recipient@example.com'],
subject: 'Hello from Postflare!',
html: '<p>This is my first email sent with Postflare.</p>',
});
if (error) {
console.error('Failed to send:', error);
} else {
console.log('Email sent:', data.id);
}For production use, you should verify a custom domain to improve deliverability:
Did this answer your question?