Quick Start
1
Get Your API Key
Sign up at inbound.new and generate an API key from your dashboard.
2
Install the SDK (Recommended)
Install our SDK for the best developer experience:
3
Send Your First Email
Start sending emails immediately:
SDK (typescript)
Authentication
All API requests to Inbound v2 require authentication using an API key. This guide explains how to obtain and use your API key securely.Base URL
All authenticated requests are made to:Getting Your API Key
1
Access Your Dashboard
Log in to your Inbound dashboard and navigate to the Settings page.
Dashboard
Access your API keys from the dashboard
2
Generate API Key
Click “Create API Key” and give it a descriptive name for easy identification.
3
Copy and Store Securely
Copy your API key immediately and store it securely. You won’t be able to see it again.
API keys are sensitive credentials. Never expose them in client-side code or commit them to version control.
Using Your API Key
Include your API key in theAuthorization
header of all API requests:
Security Best Practices
- Environment Variables: Always store API keys in environment variables
- Key Rotation: Regularly rotate your API keys for enhanced security
- Environment Separation: Use separate API keys for different environments
- Monitoring: Monitor your API key usage in the dashboard
Learn about rate limits to optimize your API usage and avoid hitting limits.
How Inbound Works
Inbound enables you to be able to send & receive emails programmatically.Sending Emails
You can send emails using the SDK or the API. Our SDK is very similar to the Resend SDK. So if you are migrating from Resend, you shouldn’t have any trouble. Example:Node.js
Receiving Emails
In inbound you can receive emails using endpoints. You can attach endpoints to individual email addresses or you can setup catch-all for a domain, where all any incoming email that doesn’t match any of the specific email addresses will be routed to the catch-all endpoint. Example:API Features
Send Emails
Send transactional emails with Resend-compatible API
Receive Emails
Process incoming emails via webhooks with TypeScript types
Reply to Emails
Send replies to received emails with full threading support
Manage Domains
Add and verify domains for email receiving
Webhook Payload Structure
We have fully typed webhook payloads for you to use in your endpoints.Error Handling
API errors are returned with appropriate HTTP status codes:200
- Success400
- Bad Request (invalid parameters)401
- Unauthorized (invalid API key)404
- Not Found (resource not found)429
- Too Many Requests (rate limit exceeded)500
- Internal Server Error