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
Set up Inbound and send your first email in minutes
bun add inboundemail
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)
}
Was this page helpful?