Skip to content

Enroll all account domains

Request

Begins an asynchronous background job to assign all domains to Dynamic IP Pools. This can also include domains belonging to subaccounts depending on the provided parameters. The Dynamic IP Pools feature must be enabled for the account and the request must come from a parent account user.

Security
basicAuth
Query
include_subaccountsbooleanrequired

If true, domains belonging to subaccounts will also be enrolled in Dynamic IP Pools

Default:false
curl -i -X POST \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/domains/all/dynamic_pools/enroll?include_subaccounts=false'

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

Response
{ "message": "started" }