> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.syncspider.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Configure server routes rewrite for Magento REST API

1. Open **virtual host nginx** config file.
2. Then, add this part to it:

1. #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;      }

4. 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 !