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

  • TypeScript
  • Python
npm install @transmit.dev/sdk

Send Your First Email

import { TransmitClient } from '@transmit.dev/sdk';

const client = new TransmitClient({
  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

I