Not directly possible at the moment. If you have any network appliance in front of APIM you could consider doing URL rewrite at that level. Otherwise, one workaround is to use send-request policy to invoke an operation on APIM itself via 127.0.0.1 localhost IP: https://learn.microsoft.com/en-us/azure/api-management/send-request-policy#usage-notes