Overview
Sendook can receive emails sent to any of your inboxes. Incoming emails are automatically parsed and sent to your webhook endpoints, making it easy to build email-driven workflows.How It Works
- Set up DNS records - Configure MX records to route emails to Sendook (automatic for
@sendook.com, required for custom domains) - Create a webhook - Register a webhook endpoint to receive incoming emails
- Receive emails - When someone emails your inbox, Sendook parses it and sends the data to your webhook
- Process in your app - Handle the webhook payload in your application
Setting Up Email Reception
For sendook.com Addresses
Inboxes using@sendook.com addresses can receive emails immediately—no configuration needed.
For Custom Domains
For custom domains, you need to configure MX records. See Custom Domains for detailed instructions.Webhook Integration
When an email is received, Sendook sends a POST request to your webhook URL:Parsed Email Format
Received emails include:| Field | Type | Description |
|---|---|---|
id | string | Unique message ID |
organizationId | string | Your organization ID |
inboxId | string | Inbox that received the email |
threadId | string | Thread this message belongs to |
from | string | Sender’s email address |
fromInboxId | string | ID of sender’s inbox (if they’re also a Sendook user) |
to | string[] | Recipient email addresses |
toInboxId | string | ID of the inbox that received the email |
subject | string | Email subject line |
text | string | Plain text content (parsed and cleaned) |
html | string | HTML content (parsed and cleaned) |
status | string | Message status (“received”) |
createdAt | string | ISO 8601 timestamp |
updatedAt | string | ISO 8601 timestamp |
Sendook uses email-reply-parser to extract only the visible content from emails, removing quoted replies and signatures for cleaner processing.
Thread Detection
Sendook automatically detects email threads:- If an incoming email is a reply (based on References header), it’s added to the existing thread
- If it’s a new conversation, a new thread is created
- All messages in a conversation share the same
threadId
Example Webhook Handler
Here’s an example webhook handler in Node.js:Retrieving Received Messages
You can also retrieve received messages via the API:Searching Messages
Search for messages using regex patterns:toaddressesfromaddressccaddressessubject- Message body (
textandhtml)
Auto-Replies
You can build auto-reply functionality by combining received emails with sending:Common Use Cases
Customer Support Inbox
Customer Support Inbox
Receive support emails and automatically create tickets in your system. Use AI to categorize and prioritize incoming requests.
Email-Based Commands
Email-Based Commands
Parse incoming emails to trigger actions in your app (e.g., “deploy to production” emails from authorized users).
Email Forwarding Service
Email Forwarding Service
Build an email forwarding or filtering service by receiving emails and conditionally forwarding them.
AI Email Assistant
AI Email Assistant
Use AI to analyze incoming emails and generate smart replies automatically.
Best Practices
Next Steps
Webhooks
Learn more about webhook configuration and events
Threads
Understand how threads organize conversations
Send Emails
Reply to received emails
Custom Domains
Set up custom domains for receiving emails