Email API
Email API examples by runtime — curl, Python and JavaScript
Three runtimes, one wire format. Each page is a complete, copy-pasteable example — authenticate, send, read a reply, verify a webhook signature — written for that runtime's idioms and nothing else.
HTTP / curl
curl
Plain curl against the REST endpoint. No SDK, no runtime assumptions — this is the wire format itself.
Open
Python
python
requests or httpx, sync or async. Includes the signed-webhook receive side with a constant-time compare.
Open
JavaScript
javascript
Zero-dependency fetch for Node, Workers, Bun and Deno — and the official SDK when you want types.
Open
Every runtime speaks the same REST API. If yours is not on this list and it can make an HTTPS request, it works — see the framework guides for the ones we have written up.
Keep going
- API reference — every endpoint, every field, every error code.
- Install the SDK — the typed client, if you would rather not write the wire format.
- Framework guides — the same calls inside Next.js, Hono, Workers and the rest.