Send
Send an email
POST
https://api.smtpd.dev/api/v1/email/send
This endpoint allows you to send an email where all the content is supplied. The domain from from_email_address
is used to match a sending profile, If no active sending profile is found the email will be rejected.
Headers
Name | Type | Description |
---|---|---|
Authentication | string |
|
Request Body
Name | Type | Description |
---|---|---|
content_text | string | The text content for the email body. |
content_html | string | The HTML content for the email body. |
subject | string | The email subject line. |
from_name | string | The friendly from name |
from_email_address | string | The from email address, this is used to match the send to an `active` sending_profile. |
recipient_name | string | The name of the recipient. |
recipient_email_address | string | The desination email address. |
tags | array | Tags that should be applied to this email for send reporting. You are limited to 256 tags per send with each tag no longer than 256 characters. |
click_tracking | boolean | If click_tracking is enabled. |
open_tracking | boolean | If open tracking is enabled. |
Get your last email sends (1000 limit)
GET
https://api.smtpd.dev/api/v1/email/send
Query Parameters
Name | Type | Description |
---|---|---|
limit | number | Limits the number of rows returned. |
Headers
Name | Type | Description |
---|---|---|
Authentication | string |
|
Search sends by recipient email address
GET
https://api.smtpd.dev/api/v1/email/send/search
Query Parameters
Name | Type | Description |
---|---|---|
q | string | Email search term (min 2 characters) |
Headers
Name | Type | Description |
---|---|---|
Authentication | string |
|
Get send by ID
GET
https://api.smtpd.dev/api/v1/email/send/:id
This endpoint allows you to get the send status details.
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the email send. |
Headers
Name | Type | Description |
---|---|---|
Authentication | string |
|
Get send events by ID
GET
https://api.smtpd.dev/api/v1/email/send/:id/events
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the email Send |
Headers
Name | Type | Description |
---|---|---|
Authentication | string |
|
Get send HTML content by ID
GET
https://api.smtpd.dev/api/v1/email/send/:id/content/html
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the email Send |
Headers
Name | Type | Description |
---|---|---|
Authentication | string |
|
Get send text content by ID
GET
https://api.smtpd.dev/api/v1/email/send/:id/content/text
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of email send |
Headers
Name | Type | Description |
---|---|---|
Authentication | string |
|
Last updated