Introduction
The Sendook API provides programmatic access to send and receive emails at scale. Built on REST principles, the API uses standard HTTP response codes, authentication, and verbs.Base URL
All API requests should be made to:API Versioning
The Sendook API uses URL-based versioning. All endpoints are prefixed with the version number:All v1 endpoints require authentication via API key. See the Authentication guide for details.
Rate Limits
To ensure service reliability and fair usage, the Sendook API implements rate limiting:Message Sending
- 100 requests per hour per organization for message send operations
- Rate limit applies to:
POST /v1/inboxes/{inboxId}/messages/sendPOST /v1/inboxes/{inboxId}/messages/{messageId}/reply
Rate Limit Headers
Rate limit information is included in the response headers using thedraft-7 standard:
Rate Limit Exceeded
When you exceed the rate limit, the API returns a429 Too Many Requests response:
Response Format
All API responses are returned as JSON with appropriate HTTP status codes.Success Responses
Successful requests return the resource or an array of resources:Error Responses
Errors return a JSON object with anerror field describing the issue:
HTTP Status Codes
The API uses standard HTTP status codes:| Code | Description |
|---|---|
200 | Success - Request completed successfully |
201 | Created - Resource created successfully |
400 | Bad Request - Invalid request parameters |
401 | Unauthorized - Missing or invalid API key |
404 | Not Found - Resource does not exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Something went wrong on the server |
Request Format
AllPOST and PUT requests should include a Content-Type: application/json header.
Example Request
Pagination
Some endpoints that return lists support pagination through query parameters:| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: 1) |
per | integer | Items per page (default: 20) |
Request Body Limits
The API accepts request bodies up to 20MB for most endpoints. This accommodates large email content and attachments.CORS Support
The API supports Cross-Origin Resource Sharing (CORS) with credentials:Health Check
You can check API health status using the health endpoint:SDK Support
While you can use the REST API directly, Sendook provides official SDKs for easier integration:Node.js SDK
Official TypeScript/JavaScript SDK
Python SDK
Coming soon - contributions welcome
Next Steps
Authentication
Learn how to authenticate your API requests
Inboxes
Create and manage email inboxes
Send Messages
Send emails via the API
Webhooks
Receive email events in real-time