Skip to main content

1. Get Your API Key

Sign up at inbound.new and generate an API key from your dashboard.

Dashboard

Access your API keys from the dashboard

2. Install the SDK

Install the Inbound SDK using your preferred package manager:
bun add inboundemail

3. Send Your First Email

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