Skip to main content

Get Your API Key

1

Create an Account

2

Navigate to API Keys

Go to SettingsAPI Keys in your dashboard
3

Generate a New Key

Click Create API Key and copy it somewhere safe
Never commit your API key to version control or expose it in client-side code.

Install the SDK

npm install transmitdev

Send Your First Email

import { Transmit } from 'transmitdev';

const client = new Transmit({
  apiKey: process.env.TRANSMIT_API_KEY
});

async function sendEmail() {
  try {
    const response = await client.emails.send({
      from: 'hello@yourdomain.com',
      to: 'user@example.com',
      subject: 'My First Email',
      html: `
        <h1>Hello from Transmit!</h1>
        <p>This is my first email sent via the Transmit API.</p>
      `
    });

    console.log('Email sent!', response.id);
  } catch (error) {
    console.error('Error sending email:', error);
  }
}

sendEmail();

Verify Your Domain

Before sending emails in production, you need to verify your domain:
1

Add Your Domain

Go to SettingsDomains and add your sending domain
2

Add DNS Records

Copy the provided DNS records (SPF, DKIM, DMARC)
3

Wait for Verification

Verification usually takes 24-48 hours
4

Get Trial Credits

Once verified, you’ll receive free trial credits automatically
See our Domain Verification Guide for detailed instructions.

Next Steps

API Reference

Explore all email API endpoints

Email Templates

Create reusable email templates

Webhooks

Set up webhooks for delivery events

SDKs

View full SDK documentation