Skip to content

Initialize/set IPs for all pools

Request

Any existing IPs in dynamic IP pools will be replaced. All IPs must be dedicated IPs and belong to the account. Additionally, each dynamic IP pool must contain at least 1 IP that is not currently warming.

Security
basicAuth
Bodymultipart/form-datarequired
good_reputationstringrequired

IP(s) to include in the good_reputation pool

poor_reputationstringrequired

IP(s) to include in the poor_reputation pool

new_sendersstringrequired

IP(s) to include in the new_senders pool

curl -i -X POST \
  -u '<username>:<password>' \
  https://api.mailgun.net/v3/dynamic_pools/all \
  -H 'Content-Type: multipart/form-data' \
  -F good_reputation=string \
  -F poor_reputation=string \
  -F new_senders=string

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

Response
{ "good_reputation": [ "1.0.0.1", "1.0.0.2" ], "new_senders": [ "1.0.0.4" ], "poor_reputation": [ "1.0.0.3" ] }