Every HTTP endpoint of the app, read from its route files. Session means the request needs a signed-in session (the deployment passcode, or the app's own sign-in); Public endpoints answer anyone.
Note
Requests that change data must come from the app's own pages; send JSON unless an endpoint says otherwise.
Adds a pasted list. Each line can be "email", "email, Name" or "Name <email>". The site owner confirms they have consent, so these become active without a confirmation email.
DELETE
/api/domains/:id/subscribers/:subscriberId
Session
Permanently removes the address from this domain's list, including its delivery history.
GET
/api/domains/:id/subscribers/export
Session
—
POST
/api/domains/:id/test
Session
Sends the draft to one address so it can be checked in a real inbox. Nothing is recorded.
GET
/api/domains/:id/updates
Session
—
POST
/api/domains/:id/updates
Session
Creates the update; the browser then calls /api/updates/:id/send until every subscriber has it.
Handles both the button on /unsubscribe and RFC 8058 one-click requests, which mailbox providers send as a POST with the body "List-Unsubscribe=One-Click".
GET
/api/unsubscribe
Public
Link scanners and older mail clients open the URL with GET; show the confirmation page instead of acting.
Queues failed recipients again; the browser then resumes sending with /send.
POST
/api/updates/:id/send
Session
Sends the next chunk of one update through Cloudflare Email Service and reports progress. One bad address only fails that recipient. Rate limits, the daily quota and setup errors stop the chunk; unsent recipients go back in the queue so the update can be resum
Target of the link in the confirmation email (double opt-in).
/domains
—
/domains/:id
—
/edit
—
/item/:slug
—
/item/:slug/workspace
—
/s/:domain
Hosted sign-up page for one domain's list; domains with subscribe.<domain> also serve it there.
/unsubscribe
Shows a button instead of unsubscribing on load, because link scanners open every URL in an email. Mail apps' one-click unsubscribe posts straight to /api/unsubscribe.