QA & Automation · November 19, 2026 · 6 min read · Ler em português
Proxy in Evolution API: one Brazilian IP per WhatsApp instance
How to set a Mobile Proxy on each Evolution API instance with the /proxy/set endpoint, what to do when you get "Invalid proxy", and how to avoid blocks caused by a shared IP.
Evolution API is the most common way in Brazil to connect WhatsApp to systems and to n8n. Teams running many numbers usually host every instance on the same server, so they all exit through the same datacenter IP. For WhatsApp, many numbers showing up from one server IP is an easy pattern to link. Evolution lets you set a proxy per instance, which is what this guide covers.
Setting the instance proxy
Configuration is done through the API with POST /proxy/set/{instance}, using your Evolution apikey header. The body carries your details from My Proxies:
- enabled: true.
- host: your Mobile Proxy host.
- port: the port, sent as a string (in quotes), for example "30001".
- protocol: "http" or "socks5", matching your Mobile Proxy.
- username and password: your proxy authentication credentials.
To check what was saved, use GET /proxy/find/{instance}. After configuring, reconnect the instance so the WhatsApp session starts using the proxy.
When Evolution returns "Invalid proxy"
Before saving, Evolution tests the proxy by comparing the server's public IP with the IP seen through the proxy. If the test fails, it rejects the request with "Invalid proxy". The most common causes:
- Username or password with an extra space or character (a 407 error in Evolution's logs).
- Port sent as a number instead of a string, or a protocol that doesn't match the proxy.
- Test run right during an IP rotation: wait a few seconds and try again.
One Mobile Proxy per number
The benefit comes from separating numbers: each instance with its own dedicated Mobile Proxy, exiting through a Brazilian carrier IP used only by that number. Putting several instances behind one proxy recreates the shared-IP problem, just with a Brazilian IP.
IP rotation and the WhatsApp session
The Mobile Proxy IP rotates automatically about every 5 minutes, and each rotation interrupts the connection for a few seconds. A WhatsApp session prefers stability: use a plan with rotation control and turn automatic rotation off, or set a long interval, rotating only when needed from the dashboard or the automation link. Host and port don't change, so nothing needs to be redone in Evolution.
Checklist
- POST /proxy/set with port as a string and the right protocol.
- GET /proxy/find showing the saved proxy.
- Instance reconnected after configuring.
- One dedicated Mobile Proxy per number.
- Automatic rotation off or on a long interval.
Ready to run on a dedicated Mobile Proxy?