Email API Overview
Complete guide to the Email API for sending, receiving, and managing emails programmatically
Email API Overview
The Email API provides a comprehensive set of endpoints for sending emails, managing API keys, configuring webhooks, and handling attachments. This API is designed to integrate seamlessly with your applications.
Base URL
https://api.yourdomain.com/api/emailAuthentication
All API requests require authentication using an API key passed in the Authorization header:
Authorization: Bearer YOUR_API_KEYAPI keys can be generated and managed through the API Keys endpoint.
Rate Limits
- Free tier: 100 emails/day
- Pro tier: 10,000 emails/day
- Enterprise: Custom limits
Rate limit headers are included in all responses:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1704067200Endpoints Overview
| Endpoint | Method | Description |
|---|---|---|
/send | POST | Send emails with optional attachments |
/api-keys | GET/POST | Manage API keys |
/webhooks | GET/POST/DELETE | Configure webhook endpoints |
/attachments | GET/POST | Upload and retrieve attachments |
Response Format
All responses are returned in JSON format with a consistent structure:
{
"success": true,
"data": {},
"message": "Operation completed successfully"
}Error Handling
Errors follow standard HTTP status codes with descriptive messages:
| Status | Description |
|---|---|
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 403 | Forbidden - Insufficient permissions |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |
SDKs and Libraries
Official SDKs are available for:
- JavaScript/TypeScript
- Python
- Ruby
- Go
Getting Started
- Generate an API key via the API Keys endpoint
- Configure webhooks for real-time event notifications
- Start sending emails using the Send endpoint
For detailed information on each endpoint, see the specific documentation pages.