Configure server routes rewrite for Magento REST API
- Open virtual host nginx config file.
- Then, add this part to it:
- #REST API PART location /api { rewrite ^/api/rest /api.php?type=rest last; rewrite ^/api/v2_soap /api.php?type=v2_soap last; rewrite ^/api/soap /api.php?type=soap last; }
- Finally, restart nginx.! Please, check your integration data and make sure that route "api/rest" is publicly accessible.
If you got any questions or need any assistance feel free to contact our support through SyncSpider !
Updated on: 22/09/2026
Thank you!