Docs

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/email

Authentication

All API requests require authentication using an API key passed in the Authorization header:

Authorization: Bearer YOUR_API_KEY

API 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: 1704067200

Endpoints Overview

EndpointMethodDescription
/sendPOSTSend emails with optional attachments
/api-keysGET/POSTManage API keys
/webhooksGET/POST/DELETEConfigure webhook endpoints
/attachmentsGET/POSTUpload 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:

StatusDescription
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
403Forbidden - Insufficient permissions
429Too Many Requests - Rate limit exceeded
500Internal Server Error

SDKs and Libraries

Official SDKs are available for:

  • JavaScript/TypeScript
  • Python
  • Ruby
  • Go

Getting Started

  1. Generate an API key via the API Keys endpoint
  2. Configure webhooks for real-time event notifications
  3. Start sending emails using the Send endpoint

For detailed information on each endpoint, see the specific documentation pages.

On this page