Mailgun lets you tag each outgoing message with a custom value. When you access stats on your messages, they will be aggregated by these tags.
WARNING: This API is deprecated in favor of our new Tags API.
List all tags associated with a domain
Security
basicAuth
- US Mailgunhttps://api.mailgun.net/v3/{domain}/tags
- EU Mailgunhttps://api.eu.mailgun.net/v3/{domain}/tags
curl -i -X GET \
-u '<username>:<password>' \
'https://api.mailgun.net/v3/{domain}/tags?page=string&limit=0&tag=string&prefix=string'Response
{ "items": [ { … }, { … } ], "paging": { "previous": "https://api.mailgun.net/v3/example.com/tags?limit=1000&page=prev&tag=", "first": "https://api.mailgun.net/v3/example.com/tags?limit=1000&page=first&tag=", "next": "https://api.mailgun.net/v3/example.com/tags?limit=1000&page=next&tag=", "last": "https://api.mailgun.net/v3/example.com/tags?limit=1000&page=last&tag=" } }