Skip to content

Add Mailgun account IP allowlist entry

Request

Add Mailgun account IP allowlist entry

Security
basicAuth
Bodymultipart/form-datarequired
addressstringrequired

Address to be added to the allowlist

descriptionstring

Description of the address to be added to the allowlist, defaults to empty string

curl -i -X POST \
  -u '<username>:<password>' \
  https://api.mailgun.net/v2/ip_whitelist \
  -H 'Content-Type: multipart/form-data' \
  -F address=string \
  -F description=string

Responses

A 200 response

Bodyapplication/json
addressesArray of objects(github.com-mailgun-cerberus-whitelist-WhitelistRespEntry)required

Allowlisted IP address entries on the account

Response
{ "addresses": [ {} ] }