Quickstart
Create an API key, verify a domain, and send your first email with Postbound.
This walkthrough gets you from a new workspace to a delivered message.
1. Create a workspace
Sign up at postbound.app. Signing up creates your first workspace. Everything you send, store, and bill against lives in that workspace.
New workspaces start on the Stamp plan (see Plans).
2. Create an API key
In the portal, open API keys and create a key with Full access while you explore. For production sending from servers, prefer a Sending key scoped to one domain when you can.
The create response returns the secret once:
{
"id": "…",
"token": "pb_…"
}Store token somewhere secret. Postbound cannot show it again.
See API keys for permissions.
3. Add and verify a domain
curl -X POST https://api.postbound.app/domains \
-H "Authorization: Bearer pb_…" \
-H "Content-Type: application/json" \
-d '{"name":"mail.example.com"}'The response includes DNS records you must publish:
| Record | Purpose |
|---|---|
Ownership (TXT) | Proves you control the domain |
DKIM (TXT at postbound._domainkey) | Signs outbound mail |
SPF / MAIL FROM (MX + TXT on send) | Bounce handling and SPF for the return path |
After DNS propagates:
curl -X POST https://api.postbound.app/domains/<domain_id>/verify \
-H "Authorization: Bearer pb_…"Ownership becomes verified when the ownership check succeeds (often automatically via webhook). Full DNS details: Domains and DNS records.
Sending requires a verified domain
The from address on every send must use a domain that is ownership-verified for your workspace.
4. Send an email
curl -X POST https://api.postbound.app/emails \
-H "Authorization: Bearer pb_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: onboard-001" \
-d '{
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Hello from Postbound",
"html": "<p>It works.</p>"
}'Successful response:
{
"id": "…"
}Retrieve the message and its events with GET /emails/:id (Retrieve & list).
5. Subscribe to webhooks
Create a webhook for delivery outcomes:
curl -X POST https://api.postbound.app/webhooks \
-H "Authorization: Bearer pb_…" \
-H "Content-Type: application/json" \
-d '{
"endpoint": "https://example.com/webhooks/postbound",
"events": ["email.delivered", "email.bounced", "email.complained"]
}'Save the one-time signing_secret (whsec_…) and verify signatures as described in Verifying webhooks.