Proxy
Configure Proxy
Configure HTTP/HTTPS/SOCKS proxy settings for your WhatsApp instance.
POST
Overview
You can route your WhatsApp instance traffic through a proxy server. This is useful for bypassing network restrictions, improving privacy, or routing traffic through specific geographic locations.Authentication
This endpoint requires authentication via theapikey header.
string
required
Your Evolution API key for authentication.
Path Parameters
string
required
The name of your WhatsApp instance.
Request Body
boolean
default:"false"
Enable or disable the proxy. Set to
false to disable proxy and use direct connection.string
required
Proxy server hostname or IP address (e.g., “proxy.example.com” or “192.168.1.100”).
string
required
Proxy server port (e.g., “8080” or “3128”).
string
required
Proxy protocol. Supported values:
http: HTTP proxyhttps: HTTPS proxysocks4: SOCKS4 proxysocks5: SOCKS5 proxy
string
Proxy authentication username (if required by your proxy server).
string
Proxy authentication password (if required by your proxy server).
Response
object
The configured proxy settings.
boolean
Whether the proxy was successfully validated.
Proxy Validation
Before applying proxy settings, Evolution API validates the proxy by:- Attempting to connect to
https://icanhazip.com/directly - Attempting to connect through the configured proxy
- Comparing the IP addresses to ensure the proxy is working
The proxy must successfully route traffic and change the origin IP address to pass validation.
Supported Proxy Types
HTTP Proxy
Standard HTTP proxy. Most common type, widely supported. Good for basic proxy needs.
HTTPS Proxy
Encrypted HTTP proxy connection. Provides additional security for the proxy connection itself.
SOCKS4/SOCKS5
SOCKS proxies work at a lower level and can handle any type of traffic. SOCKS5 supports authentication, while SOCKS4 does not.
Usage Notes
Proxy credentials (username and password) are stored securely but should still be treated as sensitive information.
Get Current Proxy Configuration
To retrieve current proxy settings:Disabling Proxy
To disable proxy and use a direct connection:Common Use Cases
Geographic Routing
Route your WhatsApp instance through a specific country’s proxy to appear as if you’re connecting from that location.Network Restrictions
Bypass corporate firewalls or network restrictions that may block WhatsApp’s servers.Load Distribution
Distribute multiple instances across different proxy servers to balance load and reduce the risk of rate limiting.Privacy Enhancement
Hide your server’s actual IP address from WhatsApp’s servers by routing all traffic through a proxy.Troubleshooting
Proxy validation fails
Proxy validation fails
Ensure your proxy server is running and accessible. Check that the host, port, and protocol are correct. Verify firewall rules allow outbound connections to the proxy.
Instance won't connect with proxy
Instance won't connect with proxy
Try disabling the proxy temporarily to verify the instance works without it. Check proxy server logs for connection errors. Ensure the proxy supports HTTPS connections.
Authentication errors
Authentication errors
Verify username and password are correct. Check that your proxy server supports authentication. Try connecting without authentication first to isolate the issue.