Skip to content

Match address to route

Request

Checks if an address matches at least one route.

Security
basicAuth
Query
addressstringrequired

address to match routes on

curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/routes/match?address=string'

Responses

OK

Bodyapplication/json
routeobject(RouteResponse)
Response
{ "route": { "id": "4f3bad2335335426750048c6", "priority": 0, "description": "Sample route", "expression": "match_recipient(\".*@samples.mailgun.org\")", "actions": [ … ], "created_at": "Wed, 15 Feb 2012 13:03:31 GMT" } }