Documentation
Everything you need to send, receive and track email from your application. The API is REST-based, uses JSON and authenticates with bearer API keys.
import { StackEmails } from "stackemails";
const stack = new StackEmails("se_live_xxxxxxxxx");
await stack.emails.send({
from: "Acme <hello@acme.com>",
to: "you@example.com",
subject: "Hello world",
html: "<p>It works!</p>",
});Base URL https://stackemails.com/v1
| POST | /v1/emails | Send an email |
| POST | /v1/emails/batch | Send up to 100 emails |
| GET | /v1/emails/:id | Retrieve an email |
| PATCH | /v1/emails/:id | Reschedule an email |
| POST | /v1/emails/:id/cancel | Cancel a scheduled email |
| POST | /v1/domains | Add a domain |
| POST | /v1/domains/:id/verify | Verify a domain |