Documentation

Send your first email

Authenticate with a Bearer API key and POST to /v1/emails. That's the whole quickstart.

npminstall @saalr-io/yours-truly
quickstart.ts
import { YoursTruly } from "@saalr-io/yours-truly";
 
const yt = new YoursTruly(process.env.YT_API_KEY);
 
await yt.emails.send({
from: "hello@yourstrulymail.com",
to: ["sreekanth@saalr.io"],
subject: "Email that lands",
html: "<strong>Yours, truly.</strong>",
});
 
// → { id: "email_yrwky6q…", status: "sent" }

API reference

Base URL https://api.yourstrulymail.com

POST/v1/emails
GET/v1/emails/:id
GET/v1/emails/:id/events
POST/v1/domains
POST/v1/domains/:id/verify
POST/v1/api-keys
GET/v1/broadcasts
POST/v1/webhooks
GET/v1/analytics/overview
GET/v1/logs
Get an API key