Lodol Docs

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

ParameterTypeRequiredDescription
eventstringYesEvent type to aggregate (e.g., delivered, opened).
start_datestringYesStart date (YYYY-MM-DD).
end_datestringYesEnd date (YYYY-MM-DD).
resolutionstringNoOptional 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

ParameterTypeRequiredDescription
from_emailstringYesSender email address (must belong to the Mailgun domain).
tostringYesRecipient email address or comma-separated list.
subjectstringYesSubject line for the email.
textstringYesPlain text body.
htmlstringNoOptional HTML body.
ccstringNoOptional CC recipients (comma-separated).
bccstringNoOptional BCC recipients (comma-separated).

Response

{
  "result": {}
}

On this page