Send email and webhooks for each of your customers, with reputation kept apart and a portal you don't build.
coss.email.send({ subaccount })
await ...({
: "Acme Bakery",
: "user_8812",
});
await ..({
: "user_8812",
: "Acme Bakery <orders@acmebakery.com>",
: "customer@example.com",
: "Your order is ready",
: "<p>Come and pick it up.</p>",
});
await ...({
: "user_8812",
: "order.ready",
: { : "ord_1042" },
});Acme Bakery
orders@acmebakery.com
- email.sentsubaccount: user_8812
- email.delivered
- coss.hooks.messages.send()order.ready
- delivery succeeded2 endpoints
A sub-account per customer
Each has its own domains, SES tenant, quotas, suppression list and stats, and takes your own uid on every call.
See howSub-accountsYour customers
| Customer | Domain | Standing |
|---|---|---|
| Acme Bakery | acmebakery.com | good |
| Northwind | northwind.example | good |
| Fast Offers | fastoffers.example | paused |
Reputation kept apart
Bounce and complaint rates are measured per sub-account. One that crosses the line pauses alone.
See howsubaccount.paused
Fast Offerspaused
Acme Bakerystill sending
Your organizationstill sending
Acme Bakery's endpointsPortal
| Event | Endpoint | Delivery |
|---|---|---|
| order.ready | acmebakery.com/hook | succeeded |
| order.ready | zapier.example/in | pending |
| order.paid | acmebakery.com/hook | succeeded |
A portal you don't build
Customers add endpoints, roll secrets and retry deliveries in a portal with your name and theme.
See howBudgetsThis month
Project: Storefront42%
API key: Partner sync81%
Member: Ada12%
Budgets and spend
See usage by project, key and member. Monthly budgets refuse live sends from that source once spend goes over.
See howLimits
- Domains per sub-account
- 10, up to 5 awaiting verification
- Sub-account stats
- up to 45 days, per day
- Hooks applications per environment
- 100,000
- Endpoints per application
- 50
- Hooks delivery attempts
- 8 over roughly a day
- Hooks payload size
- 256 KB
- Portal session lifetime
- at most a day
- Budget alert thresholds
- 80% and 100% by default
- Sub-accounts on plans
- Scale and Enterprise
- SSO on plans
- Scale and Enterprise
Questions
Create an email sub-account per customer with coss.email.subaccounts.create() and name it with subaccount when you send. Each sub-account has its own domains, sending reputation at the mail provider, quotas, suppression list and stats.
Only that sub-account is paused. Its bounces, complaints and blocked content are measured on their own, and its live sends are refused with subaccount_paused until you reinstate it, while your other sub-accounts keep sending. Your organization's own reputation still counts everything they send.
Use Hooks. Create an application per customer, register your event types, and send each event once with coss.hooks.messages.send(). coss.com delivers it to every endpoint that customer registered, signed and retried for about a day.
No. Hooks includes a portal on its own domain where a customer adds endpoints, picks event types, reveals and rolls secrets, sees every delivery and retries them. Create a portal session from your backend and redirect to it or embed it in your settings page.
Yes. Owners set monthly budgets per project, per API key and per member on the Spend page. Once spend goes over a budget, live sends from that source are refused until the next month or until an owner raises the budget, and everything else keeps working.
Live sub-accounts, SSO and directory sync are included in the higher plans, and sandbox sub-accounts are free on every plan so you can build the integration first. The pricing page lists which plan includes what.
The products
One key, one SDK, one log for all of them.
Build it this afternoon.
Development keys record every request and event and deliver nothing.