Overview
Send emails from any inbox with full support for HTML, plain text, attachments, CC/BCC recipients, and custom labels. All sent emails are automatically organized into threads.Sending a Basic Email
Both
text and html fields are required. The HTML version will be shown to email clients that support it, while the text version is used as a fallback.Required Parameters
| Parameter | Type | Description |
|---|---|---|
inboxId | string | ID of the inbox to send from |
to | string[] | Array of recipient email addresses |
subject | string | Email subject line |
text | string | Plain text version of the email |
html | string | HTML version of the email |
Optional Parameters
CC and BCC
Send copies to additional recipients:Labels
Organize emails with custom labels for easier filtering:Attachments
Include files with your emails:Attachment Properties
| Property | Type | Required | Description |
|---|---|---|---|
content | string | Yes | Base64-encoded file content |
name | string | No | Filename (e.g., “document.pdf”) |
contentType | string | No | MIME type (e.g., “application/pdf”) |
Replying to Messages
Reply to an existing message to continue the conversation thread:- The subject is automatically prefixed with “Re:”
- The recipient is set to the sender of the original message
- The reply is added to the same thread as the original message
Response Format
Successful send requests return the created message object:Message Status
Messages go through different statuses:| Status | Description |
|---|---|
sent | Message was successfully sent to AWS SES |
delivered | Message was delivered to recipient’s mail server |
bounced | Message bounced (invalid email or server rejection) |
complained | Recipient marked the message as spam |
rejected | Message was rejected before sending |
Rate Limits
Sendook implements rate limiting to prevent abuse:- 100 emails per hour per API key
- Rate limit resets hourly
Threads
All sent messages are automatically organized into threads:- New messages create a new thread
- Replies are added to existing threads
- Each thread contains all messages in a conversation
Webhooks
Sending emails triggers the following webhook events:message.sent- Message was sent to AWS SESmessage.delivered- Message was delivered successfullymessage.bounced- Message bouncedmessage.complained- Recipient marked as spammessage.rejected- Message was rejected
Best Practices
Always include both text and HTML
Always include both text and HTML
Some email clients don’t support HTML or users may have it disabled. Always provide both versions for the best user experience.
Keep attachments reasonable
Keep attachments reasonable
Large attachments can cause delivery issues. Consider hosting large files and including download links instead.
Use labels for organization
Use labels for organization
Labels make it easier to filter and search messages later. Use consistent naming conventions for your labels.
Test with BCC
Test with BCC
When testing in production, use BCC to send yourself a copy without exposing your email to recipients.
Monitor delivery status
Monitor delivery status
Set up webhooks to track delivery status and handle bounces appropriately in your application.
Next Steps
Receive Emails
Learn how to receive and process incoming emails
Webhooks
Set up webhooks to track message status
Threads
Understand how threads organize conversations
Custom Domains
Improve deliverability with custom domains