These endpoints allow you to queue emails for sending, retrieve email details, cancel queued emails, and remove completed ones.
Endpoint:
POST /private/emails/send
| Parameter | Description | Required | Default |
|---|---|---|---|
idapp |
App ID | ✅ Yes | – |
from |
Sender email address | No | App default |
fromname |
Sender name | No | App default |
tos |
Recipient email addresses (comma-separated) | ✅ Yes | – |
tonames |
Recipient names (comma-separated) | No | Matches email addresses |
ccs |
CC addresses (comma-separated) | No | – |
bccs |
BCC addresses (comma-separated) | No | – |
replyto |
Reply-to email address | No | – |
mimetype |
text/html or text/plain |
No | text/plain |
subject |
Email subject | ✅ Yes | – |
subjectencoding |
Subject encoding (UTF-8, ISO-8859-1, etc.) |
No | UTF-8 |
body |
Email body | ✅ Yes | – |
bodyencoding |
Body encoding (UTF-8, ISO-8859-1, etc.) |
No | UTF-8 |
attachments |
File attachments | No | – |
urlattachments |
URL attachments | No | – |
attachmenttype |
FILE or URL |
No | FILE |
includetracking |
Include open/click tracking | No | false |
includeunregisterlink |
Include unsubscribe link (blacklist) | No | false |
senddate |
Scheduled send datetime (yyyy-MM-dd'T'HH:mm:ssZ) |
No | – |
| Code | Description |
|---|---|
| 200 | Success |
| 400 | Missing/invalid parameter |
| 401 | Unauthorized |
| 403 | Invalid credentials |
| 406 | Specific error |
| 500 | Internal server error |
Specific errors:
- App not found
- Remote server not allowed:
xxxx - Remote domain not allowed:
xxxx - No active SMTP for App
- Sender domain does not exist
- Cannot use
includetracking=truewith CC or BCC - Cannot use
includeUnregisterLink=truewith CC or BCC fromis not a valid emailtois not a valid emailreplytois not a valid emailreplytodomain lacks MX records- All TO recipients are invalid
- All TO recipients are blacklisted
- Monthly email limit exceeded
{
"id": "64747cae67e43f0f33a3a08b",
"status": "Q",
"inittime": "2023-05-29T10:22:33.895254204",
"logsdeleledby": "2023-06-28T10:22:33.895254204",
"attachments": [
"https://cdn.queuemail.dev/static/sendings/b74f118e-eab2-4aa9-b72d-xec21fa2368b/c.xml"
],
"blacklisted": [],
"autoblacklisted": [],
"notvalidrecipients": []
}
status = Q– Email has been successfully queued.inittime– Estimated time of sending.logsdeleledby– Time when logs will be deleted.attachments– List of attachment URLs.blacklisted– List of blacklisted recipients.autoblacklisted– List of auto-blacklisted recipients.notvalidrecipients– List of invalid recipients.
Endpoint:
GET /private/emails/info
| Parameter | Description | Required | Default |
|---|---|---|---|
idemail |
Email ID | ✅ Yes | – |
Same as above.
Specific error: 1. Email not found
{
"id": "64747cae67e43f0f33a3a08b",
"status": "Q",
"inittime": "2023-05-29T10:22:33.895",
"logsdeleledby": "2023-06-28T10:22:33.895",
"attachments": [
"https://cdn.queuemail.dev/static/sendings/7723743-34838743-34343/c.xml"
],
"log": [],
"opened": []
}
status:Q– QueuedR– Sending in progressC– CancelledE– FailedF– Successfully sent
log– Log entriesopened– Opened email events (with timestamp)
Endpoint:
POST /private/emails/cancel
| Parameter | Description | Required | Default |
|---|---|---|---|
idemail |
Email ID | ✅ Yes | – |
Same as above.
Specific errors:
- Some recipients already processed
- Email not found
- App not found
- Sending finished or in progress – cannot be cancelled
{
"id": "64747cae67e43f0f33a3a08b",
"status": "C",
"inittime": "2023-05-29T10:22:33.895",
"logsdeleledby": "2023-06-28T10:22:33.895",
"attachments": [
"https://cdn.queuemail.dev/static/sendings/b74fdc8e-eab3-4aa9-b72d-0ec21fa2368b/c.xml"
]
}
status = Cmeans the email was successfully cancelled.
Removes a sent email along with logs and tracking info.
Endpoint:
POST /private/emails/remove
| Parameter | Description | Required | Default |
|---|---|---|---|
idemail |
Email ID | ✅ Yes | – |
Same as above.
Specific errors:
- Email not found
- App not found
- Unfinished sendings cannot be removed
Returns an empty response on success.