MailGun API Documentation (zakutynsky) | RapidAPI

MailGun

FREE
By zakutynsky
Updated 9 months ago
Email
7.7/10
Popularity Score
320ms
Latency
100%
Success Rate

MailGun API Documentation

Send, validate, receive and track emails.

View API Details
POSTaddAddressToUnsubscribeTable
POSTaddBounce
POSTaddMemberToMailingList
POSTaddMultipleBounces
POSTaddSingleComplaint
POSTcreateMailingList
POSTcreateRoute
POSTcreateWebhook
POSTdeleteBounce
POSTdeleteBounceList
POSTdeleteComplaint
POSTdeleteMailingList
POSTdeleteMember
POSTdeleteRoute
POSTdeleteTag
POSTdeleteUnsubscribeRecords
POSTdeleteWebhook
POSTgetAcceptedMessages
POSTgetAllBounces
POSTgetAllComplaints
POSTgetAllMailingLists
POSTgetAllRoutes
POSTgetAllStats
POSTgetAllTags
POSTgetAllUnsubscribes
POSTgetAllWebhooks
POSTgetClickedMessages
POSTgetComplainedMessages
POSTgetDeliveredMessages
POSTgetEventStats
POSTgetFailedMessages
POSTgetMailingListMembers
POSTgetOpenedMessages
POSTgetRejectedMessages
POSTgetSingleBounce
POSTgetSingleComplaint
POSTgetSingleMailingList
POSTgetSingleMailingListMember
POSTgetSingleRoute
POSTgetSingleTag
POSTgetSingleUnsubscribeRecord
POSTgetSingleWebhook
POSTgetStoredMessages
POSTgetTagStats
POSTgetUnsubscribedMessages
POSTsendEmail
POSTsendEmailMIME
POSTupdateMailingList
POSTupdateMember
POSTupdateRoute
POSTupdateTag
POSTupdateWebhook
POSTvalidateAddress
POSTwebhookEvent
POSTsendEmailMIME

Posts a message in MIME format.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
mToLIST
REQUIREDEmail address of the recipient(s). ('Bob [email protected]'). You can use commas to separate multiple recipients.
mFromSTRING
REQUIREDEmail address for From header.
apiKeyCREDENTIALS
REQUIREDThe api key obtained from MailGun.
domainSTRING
REQUIREDMailgun account contain email domain.
Optional Parameters
ccLIST
OPTIONALSame as 'To' but for Cc.
bccLIST
OPTIONALSame as 'To' but for Bcc.
o:tagLIST
OPTIONALTag string.
subjectSTRING
OPTIONALMessage subject.
htmlSTRING
OPTIONALBody of the message. (HTML version).
textSTRING
OPTIONALBody of the message. (text version).
inlineSTRING
OPTIONALAttachment with inline disposition.
o:testmodeSELECT
OPTIONALEnables sending in test mode. Pass yes if needed. See Sending in Test Mode.
o:require-tlsSELECT
OPTIONALThis requires the message only be sent over a TLS connection. (True or False)
o:tracking-clicksSELECT
OPTIONALToggles clicks tracking on a per-message basis. Has higher priority than domain-level setting. Pass yes, no or htmlonly.
h:X-My-HeaderSTRING
OPTIONALh: prefix followed by an arbitrary value allows to append a custom MIME header to the message (X-My-Header in this case).
o:dkimSELECT
OPTIONALEnables/disables DKIM signatures on per-message basis. Pass yes or no.
o:tracking-opensSELECT
OPTIONALToggles opens tracking on a per-message basis. Has higher priority than domain-level setting. Pass yes or no.
v:my-varJSON
OPTIONALv: prefix followed by an arbitrary name allows to attach a custom JSON data to the message. See Attaching Data to Messages for more information.
o:campaignSTRING
OPTIONALId of the campaign the message belongs to. See um-campaign-analytics for details.
o:trackingSELECT
OPTIONALToggles tracking on a per-message basis, see Tracking Messages for details. Pass yes or no.
o:deliverytimeDATEPICKER
OPTIONALDesired time of delivery. See Date Format. Note: Messages can be scheduled for a maximum of 3 days in the future.
o:skip-verificationSELECT
OPTIONALIf set to True, the certificate and hostname will not be verified when trying to establish a TLS connection and Mailgun will accept any certificate during delivery.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication