Skip to content

Get all domains of an account where a specific IP is assigned

Request

The IP must belong to the account.

Matching domains are ordered by increasing id, then the limit and skip parameters are applied.

If the search parameter is present, it is used to limit the results to domains whose names match the search query. The search query is split into words by whitespace and punctuation, then the logical OR is applied.

Security
basicAuth
Path
ipstringrequired

The IP to filter on

Query
limitintegerrequired

The limit to apply to the returned domains

searchstringrequired

The search query that the returned domains' names must match

skipintegerrequired

The number of matching domains to skip in the response

curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/ips/{ip}/domains?limit=0&search=string&skip=0'

Responses

A 200 response

Bodyapplication/json
itemsArray of objects(github.com-mailgun-tower-api-account-Item)required

list of domains with the IP assigned, along with the IPs assigned to each domain

total_countinteger, (int32)required

total number of domains with the IP assigned for the given query

Response
{ "items": [ {}, {} ], "total_count": 2 }