Skip to content

List all unsubscribes

Request

Paginate over a list of unsubscribes for domain.

Security
basicAuth
Path
domain_namestringrequired

Domain to retrieve unsubscribes from

Query
limitinteger

Maximum number of records to return (optional, default: 100, max: 1000)

pagestring

Page direction relative to the above address, can be next, previous or last, if empty, returns the first page

addressstringrequired

address serving as a "divider" between pages

termstringrequired

Filter records based on addresses that start with the specified substring.

curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/{domain_name}/unsubscribes?limit=0&page=string&address=string&term=string'

Responses

A 200 response

Bodyapplication/json
itemsArray of objects(github.com-mailgun-blackbook-model-Unsubscribe)required
pagingobject(github.com-mailgun-scaffold-httpapi-paging-PagingResponse)required
Response
{ "items": [ {} ], "paging": { "previous": "<previous page url>", "first": "<first page url>", "next": "<next page url>", "last": "<last page url>" } }