Install and set up the Inbound SDK in your project
npm install @inboundemail/sdk
Import the SDK
import { Inbound } from '@inboundemail/sdk'
Initialize with your API key
const inbound = new Inbound({ apiKey: process.env.INBOUND_API_KEY })
Make your first API call
const domains = await inbound.domains.list() console.log(`You have ${domains.data.length} domains`)
import type { InboundWebhookPayload, InboundWebhookEmail, Webhook } from '@inboundemail/sdk'