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

# Getting Started

> Set up Inbound and send your first email in minutes

## 1. Get Your API Key

Sign up at [inbound.new](https://inbound.new) and generate an API key from your dashboard.

> [card] [API Keys](https://inbound.new/api-keys)
>
> Create and manage your account API keys

## 2. Install the SDK

Install the Inbound SDK using your preferred package manager:

```bash bun theme={null}
bun add inboundemail
```

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

```bash yarn theme={null}
yarn add inboundemail
```

```bash pnpm theme={null}
pnpm add inboundemail
```

## 3. Send Your First Email

```typescript theme={null}
import { Inbound } from 'inboundemail'

const inbound = new Inbound(process.env.INBOUND_API_KEY!)

const { data, error } = await inbound.emails.send({
  from: 'Your Name <you@yourdomain.com>',
  to: 'recipient@example.com',
  subject: 'Hello from Inbound!',
  html: '<p>This is my first email with Inbound.</p>'
})

if (error) {
  console.error('Error:', error)
} else {
  console.log('Email sent:', data?.id)
}
```

## Next Steps

> [card] [Mailboxes & SMTP](https://inbound.new/docs/mailboxes/overview.md)
>
> Connect an email client using managed IMAP and SMTP credentials

> [card] [Receive with Webhooks](https://inbound.new/docs/api-reference/webhook.md)
>
> Route incoming email to your application in real time


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.