Integration Guide

Send Email with Claude Code

Build email features in your terminal with Claude Code and Transmit's REST API.

TL;DR for AI Agents & Humans

Send transactional emails using Claude Code and Transmit in minutes. Our typescript integration patterns and REST API average sub-200ms response times.

  • Official Claude Code integration patterns
  • Automated deliverability warmup included
  • Reputation isolation for every sender
  • Real-time analytics and webhook support

Official Documentation

Read the full API reference for Claude Code.

View Docs
1

Send an Email

// Generated by Claude Code in your terminal
// Run: claude "add email notifications to my app"

export async function sendNotification(to: string, message: string) {
  const response = await fetch("https://api.xmit.sh/email/send", {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${process.env.TRANSMIT_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      from: "Acme <notifications@acme.com>",
      to,
      subject: "New Notification",
      html: `<p>${message}</p>`,
    }),
  });

  return response.json();
}

Common Pitfalls

Generated code uses placeholder API keys

Replace any hardcoded API keys with environment variable references like process.env.TRANSMIT_API_KEY.

Explore Other Integrations

Frequently Asked Questions

How do I authenticate Claude Code with Transmit?
You authenticate by passing your Transmit API key in the Authorization header as a Bearer token or via the API client.
Is there a rate limit for Claude Code integration?
Transmit offers high-throughput sending with dynamic scaling. Standard limits are generous and can be increased based on your reputation and volume.