OutboxPier docs
1. Add your domain
Sign in at /team with your email address (we send a code; there is no password), open Domains and add the domain you send from, for example example.com. Free mail domains (gmail.com and similar) cannot be used: you need a domain you own.
2. DNS records
The domain page lists the exact records. There are three:
- DKIM (required): a TXT record at op1._domainkey.example.com with the public key we generated for you. We keep the private key and sign every message with it.
- SPF (required): a TXT record at the domain that includes include:_spf.outboxpier.com. If the domain already has an SPF record, add the include to it: a domain must have only one.
- DMARC (suggested): a TXT record at _dmarc.example.com. Start with p=none and tighten it later.
Click Verify. DNS can take a while to spread; you can click again. A domain is verified when DKIM and SPF are both right.
3. Create an API key
Under Keys, create a key. It starts with opk_ and is shown once; we keep only a hash of it, so we cannot show it again. Revoke a key at any time.
4. Send by HTTP
curl -X POST https://outboxpier.com/api/v1/send \
-H "Authorization: Bearer opk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "App <hello@example.com>",
"to": ["user@customer.example"],
"subject": "Your receipt",
"text": "Thanks for your order.",
"html": "<p>Thanks for your order.</p>",
"reply_to": "support@example.com",
"tags": ["receipt"]
}'
Fields: from, to (an address or a list), cc, bcc, subject, text and/or html, reply_to, headers (only X- headers, In-Reply-To and References, at most 10) and tags (at most 5). The answer is 202 with the message id:
{ "id": "0b7c...", "status": "queued", "recipients": [ { "address": "user@customer.example", "kind": "to", "status": "queued" } ] }
The From address must be on a verified domain of your account. The display name is cleaned: no addresses, brackets or quotes in it. At most 50 recipients (to, cc and bcc together) and 256 KB per message. Attachments are not supported yet.
5. Send by SMTP
| Host | smtp.outboxpier.com |
|---|---|
| Port | 587 (STARTTLS) |
| User name | apikey |
| Password | your API key |
| Authentication | PLAIN or LOGIN, offered only after STARTTLS |
The SMTP listener is opened separately from the HTTP API and may not be open yet. Messages sent by SMTP follow the same rules, limits and log as the HTTP API. An optional header X-OutboxPier-Tag: receipt sets tags; it is removed before the mail goes out.
6. The log
GET /api/v1/messages (optional status, limit, before, before_id; the answer has next_before and next_before_id when there is more: send both back for the next page; times are UTC) and GET /api/v1/messages/{id} with the same key, or the Log page. Each recipient has a status: queued, sent (handed to the mail provider), delivered, bounced, complained, failed or suppressed (not sent: the address is on your suppression list). The log is kept 30 days.
7. Bounces, complaints and the suppression list
A hard bounce or a spam complaint puts the address on your suppression list and later sends to it are blocked (shown as suppressed, and they do not count against your plan). You can add or remove addresses on the Suppressions page, and read the list with GET /api/v1/suppressions.
If more than 5% of your last 200 recipients bounced, or more than 0.3% complained, your sending is paused so your domain's reputation (and everyone's) is not damaged. The dashboard shows why, and you can write to support@solutionsgroupunlimited.com to have it looked at.
8. Unsubscribe links
Add the tag marketing to a message and each recipient gets their own copy with a List-Unsubscribe header (one click, RFC 8058) and a page where they can unsubscribe. Marketing mail is sent to one recipient at a time (to only).
9. Limits
- Free: 500 emails a month (one email per recipient; the day and the month are UTC).
- Plus: 10,000 emails a month (one email per recipient; the day and the month are UTC).
- Pro: 50,000 emails a month (one email per recipient; the day and the month are UTC).
- The Free plan shares one monthly capacity across all Free accounts. If it is used up, Free sending answers 429 free_capacity_reached until the 1st (UTC); paid plans are not affected.
- New accounts: 100 emails a day and 20 recipients an hour until the account is 7 days old or has a paid plan.
- 60 send requests a minute per key; 120 API calls a minute per address.
- 30 links per message; link shorteners and scripts, forms or embedded objects in html are refused.
10. Errors
Every error is JSON: { "error": { "code": "...", "message": "..." } }.
| HTTP | code | meaning |
|---|---|---|
| 400 | invalid_request | The body is not valid JSON, or a field has the wrong type. |
| 401 | unauthorized | Missing, wrong or revoked API key. |
| 403 | domain_not_verified | The From domain is not a verified domain of your account. |
| 403 | account_paused | Sending is paused (bounce or complaint rate, or by us). Write to support. |
| 413 | message_too_large | The message or request is over the size limit. |
| 422 | invalid_request | A required field is missing or not valid (from, to, subject, text or html). |
| 422 | invalid_recipient | A recipient address is not valid, or "to" is empty. |
| 422 | too_many_recipients | More than 50 recipients. |
| 422 | invalid_header | A line break or control character in an address or the subject, or a header that is not allowed. |
| 422 | content_rejected | The body breaks the content rules (links, scripts, forms). |
| 429 | quota_exceeded | The plan's or the new-account limit is used up. Nothing is dropped: the request is refused. |
| 429 | free_capacity_reached | All Free accounts together used this month's shared capacity. Free sending resumes on the 1st (UTC); a paid plan is not affected. |
| 429 | rate_limited | Too many requests; see the Retry-After header. |
| 503 | sending_disabled | Sending is not enabled on this service yet. |