Integrate transactional and marketing email directly into your product with a fast, reliable, and developer-friendly API. Built with a RESTful architecture and SDK support for major programming languages, our platform lets you send, manage, and track emails effortlessly from your application.
From password resets and notifications to large-scale marketing campaigns, the API is designed to deliver emails quickly, reliably, and securely.
import TrueSend from '@truesend/node'; const client = new TrueSend({ apiKey: process.env.TRUESEND_API_KEY }); const response = await client.emails .send({ from: '[email protected]', to: '[email protected]', subject: 'Your order is confirmed! 🎉', template: 'order-confirmation', variables:{ name: 'John Doe', orderTotal: '$149.00', orderId: '#ORD-84721' } }); console.log(response.messageId);
{ "messageId": "msg_01J3K9X2PQ4R7WZBA8N", "status": "queued", "recipient": "[email protected]", "timestamp": "2026-02-25T09:41:22Z" }
Our email API is built for developers who need speed, flexibility, and reliability at scale.
Engineered for performance with intelligent queuing and optimized infrastructure. Emails are processed and delivered quickly, so your application communications reach users without delay.
Learn MoreCreate reusable templates using Handlebars or Liquid syntax with full variable support. Manage templates through the API or update them visually without touching your application code.
View TemplatesReceive instant notifications for key email events such as opens, clicks, bounces, and unsubscribes. Use these events to power automation workflows or trigger actions inside your product.
Explore WebhooksSend large volumes of personalized emails through a single API request. The batch endpoint supports per-recipient variable substitution, enabling fully customized messages even at massive scale.
Batch DocsTemporary delivery issues are handled automatically with intelligent retry mechanisms. Exponential backoff ensures messages are retried safely until successful delivery.
Learn MoreTrack campaign performance and message activity with detailed analytics. Access open rates, click data, deliverability insights, and per-message metrics directly through the API.
Explore AnalyticsAttach documents such as PDFs, invoices, and images to transactional emails. Inline image support ensures consistent rendering across email clients.
Learn MoreProtect your email infrastructure with API keys, OAuth 2.0 authentication, IP allowlisting, and scoped access tokens designed for secure multi-team environments.
Security DocsManage multiple sending domains, clients, or projects from a single parent account. Perfect for SaaS platforms, agencies, and whitelabel products that need isolated sending environments.
Learn MoreOur official SDKs and comprehensive developer documentation help you integrate email capabilities into your application quickly. With simple authentication and flexible API endpoints, you can start sending transactional or marketing emails in just a few steps.
Use a single command to install the SDK via package managers like npm, pip, composer, gem, or go get. Prefer direct integration? You can also interact with the REST API without using an SDK.
Create an API key in your dashboard and securely add it as an environment variable in your application. Once configured, your app can securely communicate with the API.
Make a request to the /v1/emails/send
endpoint with your email payload. Within milliseconds, the API processes your request and returns a delivery response.
Configure webhooks to receive real-time updates for opens, clicks, bounces, and other email events. Monitor delivery metrics and optimize campaigns through the dashboard.
# Install via npm npm install @truesend/node # Set your API key export TRUESEND_API_KEY="ts_live_xxxxxxxxxxxx" # Run the test script node send-email.js
import { TrueSend } from '@truesend/node'; const ts = new TrueSend({ apiKey: process.env.TRUESEND_API_KEY }); // Send a transactional email const { data, error } = await ts.emails.send({ from: '[email protected]', to: ['[email protected]'], template: 'welcome-email', variables: { name: 'Alice' } }); if (error) console.error(error); else console.log('Sent!', data.messageId);
Our API follows a fully RESTful architecture, designed to be simple, consistent, and developer-friendly. Every endpoint uses predictable request and response formats, making it easy to integrate, debug, and scale your email workflows without unexpected surprises.
With structured versioning and clear documentation, developers can confidently build integrations knowing future updates won’t disrupt existing implementations.
Subscribe to key events across the entire email lifecycle and receive instant POST requests directly to your endpoint. Webhooks allow your application to react immediately to subscriber activity, enabling automation, analytics updates, and real-time workflows powered by email engagement data.
Triggered when a recipient opens your email on any device or email client.
A tracked link in your email is clicked
Hard or soft bounce detected on delivery
Recipient clicks unsubscribe link
Confirmed delivery to recipient inbox
// POST https://yourapp.com/webhooks/email // Content-Type: application/json // X-TrueSend-Signature: sha256=abc123... { "event": "email.opened", "messageId": "msg_01J3K9X2PQ4R7WZ", "timestamp": "2026-02-25T10:14:33Z", "recipient": { "email": "[email protected]", "name": "John Doe" }, "metadata": { "userAgent": "AppleMail/17.0", "device": "desktop", "country": "US", "ip": "192.168.x.x" }, "campaign": { "id": "camp_welcome_series", "subject": "Welcome to TrueSend!" } }
Your API credentials, subscriber data, and sending reputation are safeguarded with enterprise-level security standards. Every layer of the platform is designed to protect sensitive data, maintain account integrity, and ensure your email operations remain secure and reliable.
Create API keys with granular access levels, including read-only or restricted write scopes. Keys can be rotated or revoked instantly without interrupting active integrations.
Each webhook request is signed using HMAC-SHA256 signatures, allowing your application to verify that incoming events originate from a trusted source.
Limit API access to specific IP addresses or ranges to maintain strict control over which systems can interact with your account.
All data transmitted between your application and the API is secured with TLS 1.3, while sensitive data stored on the platform is protected with AES-256.
Start free and grow without limits. Every plan comes with generous API rate limits and the ability to request increases for high-volume use cases.