Initialization
Initialize the SDK with your API secret key:Using Environment Variables
Working with Inboxes
Create an Inbox
List All Inboxes
Get an Inbox
Delete an Inbox
Deleting an inbox will also delete all messages associated with it.
Sending Messages
Send an Email
Send with CC and BCC
Send with Labels
Reply to a Message
Receiving Messages
List Messages
Get a Specific Message
Working with Threads
List Threads
Get a Thread
Managing Domains
Create a Domain
Get Domain Details
Get DNS Records
Verify Domain
Delete a Domain
Working with Webhooks
Create a Webhook
List All Webhooks
Get a Webhook
Test a Webhook
Delete a Webhook
Managing API Keys
Create an API Key
List All API Keys
Get an API Key
Delete an API Key
Error Handling
The SDK uses axios for HTTP requests. Wrap API calls in try-catch blocks:Common Patterns
Complete Email Flow
Processing Webhook Events
Next Steps
API Reference
Explore the complete API reference
API Endpoints
View the REST API documentation