> ## Documentation Index
> Fetch the complete documentation index at: https://docs.transmit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Send your first email with Transmit in under 5 minutes

## Get Your API Key

<Steps>
  <Step title="Create an Account">
    Sign up at [transmit.dev/sign-up](https://transmit.dev/sign-up)
  </Step>

  <Step title="Navigate to API Keys">
    Go to **Settings** → **API Keys** in your dashboard
  </Step>

  <Step title="Generate a New Key">
    Click **Create API Key** and copy it somewhere safe
  </Step>
</Steps>

<Warning>
  Never commit your API key to version control or expose it in client-side code.
</Warning>

## Install the SDK

```bash theme={null}
npm install transmitdev
```

## Send Your First Email

<CodeGroup>
  ```typescript TypeScript theme={null}
  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();
  ```

  ```bash cURL theme={null}
  curl -X POST https://api.transmit.dev/v1/emails \
    -H "Authorization: Bearer $TRANSMIT_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "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>"
    }'
  ```
</CodeGroup>

## Verify Your Domain

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

<Steps>
  <Step title="Add Your Domain">
    Go to **Settings** → **Domains** and add your sending domain
  </Step>

  <Step title="Add DNS Records">
    Copy the provided DNS records (SPF, DKIM, DMARC)
  </Step>

  <Step title="Wait for Verification">
    Verification usually takes 24-48 hours
  </Step>

  <Step title="Get Trial Credits">
    Once verified, you'll receive free trial credits automatically
  </Step>
</Steps>

<Info>
  See our [Domain Verification Guide](/guides/domain-verification) for detailed instructions.
</Info>

## Next Steps

<CardGroup cols={2}>
  <Card title="API Reference" icon="book" href="/api-reference/emails">
    Explore all email API endpoints
  </Card>

  <Card title="Email Templates" icon="paintbrush" href="/guides/email-templates">
    Create reusable email templates
  </Card>

  <Card title="Webhooks" icon="webhook" href="/guides/webhooks">
    Set up webhooks for delivery events
  </Card>

  <Card title="SDKs" icon="code" href="/sdks/typescript">
    View full SDK documentation
  </Card>
</CardGroup>
