Instance
Update Proxy
Sets or removes the individual proxy of the instance
POST
Update Proxy
Auth:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
Description
Sets an HTTP, HTTPS, or SOCKS5 proxy specific to the instance. The configuration only takes effect after/reconnect or a new /connect.
Examples
Authenticated SOCKS5
Configures a SOCKS5 proxy on port1080 with user and password. The password is encrypted at-rest with AES-256-GCM and never returns in plaintext in the response.
HTTP without auth
Points to an internal HTTP proxy (10.0.0.5:3128) without credentials, common scenario in corporate networks with auth-by-IP or open proxy.
Disable
Sends onlyenabled: false to remove the individual proxy from the instance. It goes back to using the deploy global proxy (if any) or a direct connection on the next reconnection.
Success response
200 OK
The
password appears as an empty string ("") in the response, the server never returns the password in plaintext.Path parameters
Instance name.
Headers
TokenAccount or TokenInstance.
application/json.Request body
Enables/disables the instance proxy.
IP or hostname. Required if
enabled=true.Port as a string (
"1080", "8080"). Required if enabled=true."http", "https", or "socks5". Required if enabled=true.User (optional).
Password (optional, encrypted at-rest).
Rules
enabled=truerequireshost,port, andprotocol.protocolmust behttp,https, orsocks5.username/passwordare optional (open proxy or auth-by-IP).enabled=falsemakes the instance go back to using the default deploy proxy (if any).- The password is encrypted at-rest (AES-256-GCM) and redacted in the response.
Notes
The instance individual proxy has priority over the deploy global proxy. If
enabled=false, the instance uses the global proxy (if any) or a direct connection.Errors
| HTTP | error.message | When |
|---|---|---|
| 400 | Invalid request body | Malformed JSON. |
| 400 | Host is required when proxy is enabled | enabled=true without host. |
| 400 | Port is required when proxy is enabled | enabled=true without port. |
| 400 | Protocol is required when proxy is enabled | enabled=true without protocol. |
| 400 | Protocol must be one of: http, https, socks5 | protocol outside the enum. |
| 401 | Invalid token | Token missing or invalid. |
| 404 | Instance not found | Name does not exist. |
| 429 | Rate limit exceeded. Try again later. | More than 100 req/min. |
| 500 | Failed to update proxy configuration | Database error. |