Developer guideGetting started
Developer guide
Everything you need to send transactional email with Couryo, over the REST API or from your AI agent (MCP).
Couryo is a transactional and product email API. You send over the REST API (https://api.couryo.com/v1) or from your AI agent with the MCP server (https://mcp.couryo.com), follow every message on a timeline that includes the receiving server's original response, and get events by webhook. You can also send over SMTP without changing code, and the deliverability agent checks your domains every week.
Where to start#
- Quickstart: your first email in 5 minutes.
- Authentication and keys:
ck_live_andck_test_keys, scopes and allowed IPs. - Sending email: idempotency, batch, scheduling, tags and attachments.
- Domains and DNS: what each record does and how to verify.
- Webhooks: events signed with Standard Webhooks.
- Visual editor and ready-made templates: block templates and Pix, boleto and invoice models.
- Sequences and contacts and events: event-triggered email sequences, no charge per contact.
- SDKs and integrations: Node.js, PHP and Python, plus guides for Next.js, Express, Laravel, Django, Supabase, Firebase, WordPress, n8n and Odoo.
- Errors: every code, with cause and fix.
- Migrate to Couryo: the safe order and the guides for SendGrid, Resend, Mailgun, Locaweb and SMTP.
API principles#
- REST and JSON, dates in ISO 8601 UTC (
2026-10-07T18:30:00Z). - Prefixed, random IDs:
msg_(email),dom_(domain),key_(key),whk_(webhook),evt_(event), always 16 characters after the prefix. - No fake success. A
202only comes back once the email is in the queue. If something prevents sending, you get an error with a stable code and an explanation. - Idempotency on every POST, with the
Idempotency-Keyheader. - Cursor pagination:
?limit=25&starting_after=<id>returns{ "data": [...], "has_more": true }. - Messages in English or Portuguese, following the
Accept-Languageheader (the default ispt-BR; sendAccept-Language: enfor English).
Endpoints#
| Method and path | What it does |
|---|---|
POST /v1/emails |
sends an email |
POST /v1/emails/batch |
sends up to 100 emails in one request |
GET /v1/emails and GET /v1/emails/{id} |
lists emails or returns one, with its timeline and content |
PATCH /v1/emails/{id} and POST /v1/emails/{id}/cancel |
reschedules or cancels a scheduled send |
GET /v1/emails/export |
exports the emails as CSV |
POST /v1/emails/check |
checks an email before sending, without sending it |
GET and POST /v1/domains |
lists and creates domains |
GET and DELETE /v1/domains/{id}, POST /v1/domains/{id}/verify |
reads, deletes and verifies a domain |
GET and POST /v1/webhooks, GET, PATCH and DELETE /v1/webhooks/{id} |
webhooks |
GET and POST /v1/suppressions, DELETE /v1/suppressions/{email} |
suppression list |
GET /v1/events |
events, for when you missed a webhook |
POST /v1/events |
records a contact event and starts sequences |
GET and POST /v1/contacts, GET, PATCH and DELETE /v1/contacts/{id} |
contacts |
POST /v1/contacts/import, GET /v1/contacts/imports/{id} |
imports contacts from a CSV and returns the report |
GET and POST /v1/topics, GET, PATCH and DELETE /v1/topics/{id} |
topics and the preferences page |
GET and POST /v1/sequences, /v1/sequences/{id} and actions |
sequences, metrics and enrollments |
GET /v1/referral |
your referral link, what each side earns and the referrals so far |
GET /openapi.json |
the API's OpenAPI 3.1 spec, no key needed |
For AI agents#
This whole guide is available as Markdown. Add .md to any URL (for example, /en/docs/quickstart.md) or use llms.txt and llms-full.txt. Pricing is at /pricing.md.