Authenticate with a Bearer API key and POST to /v1/emails. That's the whole quickstart.
import { YoursTruly } from "@saalr-io/yours-truly";const yt = new YoursTruly(process.env.YT_API_KEY);async function main() {const { id } = await yt.emails.send({from: "hello@yourdomain.com", // a domain you've verifiedto: ["ada@example.com"],subject: "Email that lands",html: "<strong>Yours, truly.</strong>",});console.log("Sent", id); // → Sent email_yrwky6q…}main();
Base URL https://api.yourstrulymail.com