Mail API

API Documentation

Integrate email capabilities into your application with our simple and powerful REST API.

Authentication

The API uses Bearer Token authentication. You must include your API token in the Authorization header of each request.

Header Format
Authorization: Bearer <YOUR_API_TOKEN>

You can generate and manage your API tokens in the Settings page.

Send Email

POST
/api/send

Send a transactional email. Supports plain text, HTML, and scheduling.

Request Body
Content-Type: application/json
ParameterTypeRequiredDescription
fromstring
Yes
Sender email address. Must be a verified sender.
tostring
Yes
Recipient email address(es). Comma separated for multiple.
subjectstring
Yes
Email subject line.
textstringNoPlain text version of the email.
htmlstringNoHTML version of the email.
ccstringNoCC recipient(s).
bccstringNoBCC recipient(s).
replyTostringNoReply-To address.
scheduledAtstringNoISO 8601 date string to schedule the email for future delivery.

Examples

curl -X POST https://your-domain.com/api/send \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "sender@example.com",
    "to": "user@example.com",
    "subject": "Hello World",
    "text": "This is a test email."
  }'

Response

{
  "success": true,
  "id": "email_1234567890"
}

Errors

The API uses standard HTTP status codes to indicate success or failure.

CodeDescription
200Success. The email was queued or sent.
400Bad Request. Missing required fields or invalid data.
401Unauthorized. Invalid or missing API token.
500Internal Server Error. Something went wrong on our end.