Email and SMS from one client, with one webhook endpoint and one log for both.
coss.email.send() + coss.sms.send()
await ..({
: "Acme <orders@acme.com>",
: "ada@example.com",
: "order-shipped",
: { : "Ada" },
});
await ..({
: "+14155550123",
: "+14155550199",
: "Acme: your order 1042 arrives today.",
});Order 1042 shipped
ada@example.com, +1 415 555 0199
- email.sent
- email.delivered
- sms.sent
- sms.delivered
One log across products
Every request, email and SMS event and webhook attempt is searchable in one place, and streams to your own tools.
Read the docsLogsOne environment
| Source | Line | Time |
|---|---|---|
| API | POST /v1/emails 202 | 09:41:02 |
| email.delivered | 09:41:04 | |
| API | POST /v1/sms 202 | 09:41:05 |
| SMS | sms.delivered | 09:41:09 |
| Webhook | attempt 1, 200 | 09:41:10 |
One webhook endpoint
Delivery events for both channels arrive signed, retried 7 times over about 28 hours.
Read the docshttps://acme.com/webhooks
email.delivered200
sms.delivered200
email.bounced503, retrying
order-shipped
{{first_name}}, your order shipped
Templates and scheduled sends
Keep content versioned and localized in coss.com, and send up to 30 days ahead.
Read the docsSuppressions
| Recipient | Channel | Reason |
|---|---|---|
| linus@example.org | bounce | |
| alan@example.net | unsubscribe | |
| +1 415 555 0199 | SMS | opt_out |
Opt-outs honored
Bounces, complaints and unsubscribes suppress later sends, and an SMS reply of STOP holds in every live environment.
Read the docsPricing and limits
Email is billed per recipient and SMS per segment, by country. Sandbox sends are free.
PricingSee all plans
$0.40per 1,000 recipients, first 1,000,000
- 1,000,001 to 10,000,000
- $0.30
- Above 10,000,000
- $0.22
The Free plan includes
- 3,000 email recipients a month
Paid plans start at $25/month, credited against usage.
Limits
- Scheduling window
- up to 30 days ahead, email and SMS
- Emails per batch request
- 100
- Custom headers per email
- 15
- Tags per email
- 50
- Idempotency window
- 24 hours
- Webhook retries
- 7 over about 28 hours
- Log query range
- up to 31 days
- SMTP ports
- 465 (TLS), 587 (STARTTLS)
Questions
Yes. coss.email.send() and coss.sms.send() use the same key, SDK, webhook endpoints, logs and sandbox environments. A development key simulates both, and a production key sends both for real.
Pass scheduled_at, an ISO 8601 timestamp with a time zone offset up to 30 days ahead, to an email or SMS send. Scheduled emails can be rescheduled or canceled until dispatch starts, and the sender and suppression list are checked again at send time.
Subscribe a webhook endpoint to events such as email.delivered, email.bounced, sms.delivered and sms.undelivered. Every webhook is signed with the endpoint's own secret and retried on failure, and every event also appears in the environment's log.
Yes. Permanent bounces, complaints and one-click unsubscribes add suppression entries that later sends skip, and an SMS reply of STOP suppresses the sender in every live environment until they reply START.
Yes. Email templates hold the subject, HTML and text in every language you send, with typed variables. You publish a draft as a numbered version and send it by id or alias with the values for its variables.
Yes. Use smtp.coss.com on port 465 or 587 with the username coss and an API key as the password. Each message gets the same sender checks, suppressions, quotas, webhooks and logs as the API.
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.