Mailgun
API actions for the Mailgun integration.
Mailgun
Send and track emails with Mailgun's REST API.
Get domain stats
Retrieve aggregated event statistics for a Mailgun domain.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
event | string | Yes | Event type to aggregate (e.g., delivered, opened). |
start_date | string | Yes | Start date (YYYY-MM-DD). |
end_date | string | Yes | End date (YYYY-MM-DD). |
resolution | string | No | Optional grouping interval such as hour, day, or month. |
Response
{
"stats": {}
}Send an email
Send a plain text or HTML email through a Mailgun sending domain.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
from_email | string | Yes | Sender email address (must belong to the Mailgun domain). |
to | string | Yes | Recipient email address or comma-separated list. |
subject | string | Yes | Subject line for the email. |
text | string | Yes | Plain text body. |
html | string | No | Optional HTML body. |
cc | string | No | Optional CC recipients (comma-separated). |
bcc | string | No | Optional BCC recipients (comma-separated). |
Response
{
"result": {}
}