Skip to content

List forward rules

Request

By default this endpoint lists all rules defined on the account. You can scope the list of rules by domain with 'domain.name', or search match expressions and forwarding destinations with 'search'. Requests with a non-empty search, including pagination, are limited to one request per second per account.

Security
basicAuth
Query
pagestringrequired

Encoded paging information, provided via 'next', 'previous' links

limitintegerrequired

Limits the number of items returned in a request

domain.namestring

The name of the domain the rule is scoped to

searchstring

A case-insensitive literal substring to search for in match expressions and forwarding destinations (recipients, URLs, and store URLs)

curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/forwards?page=string&limit=0&domain.name=string&search=string'

Responses

A 200 response

Bodyapplication/json
itemsArray of objects(github.com-mailgun-pathfinder-httpapi-ForwardsRule)required
pagingobject(github.com-mailgun-scaffold-httpapi-paging-PagingResponse)required
Response
{ "items": [ { … } ], "paging": { "previous": "https://api.mailgun.net/page=0", "first": "https://api.mailgun.net/page=0", "next": "https://api.mailgun.net/page=1", "last": "https://api.mailgun.net/page=22" } }