Skip to content
Hoody.com

Configure, start, stop, and remove the network proxy or traffic-blocking interface for a container. The container network layer lets you route outbound traffic through an external proxy (SOCKS5, HTTP, or HTTPS), or block outbound traffic entirely, without restarting the container.

All endpoints operate against a single container identified by its container ID. The type field selects the network mode: socks5, http, https, or block.

Get the current network configuration and runtime status for a container.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to retrieve network configuration for
Terminal window
curl -X GET "https://api.hoody.com/api/v1/containers/{containerId}/network" \
-H "Authorization: Bearer <token>"

Configure or update the network proxy or blocking settings for a container. PATCH is also accepted on this endpoint with identical behavior.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to configure network for
FieldTypeRequiredDescription
typestringYesNetwork configuration type. One of socks5, http, https, or block.
proxystringNoProxy server URL, required for non-block types (for example socks5://proxy.example.com:1080). Credentials may be embedded as userinfo to set or replace them; omitting userinfo on an unchanged endpoint preserves stored credentials.
countrystringNoOptional country code for geographical proxy selection.
citystringNoOptional city for geographical proxy selection.
regionstringNoOptional region for geographical proxy selection.
commentstringNoOptional comment describing the network configuration, maximum 1000 characters.
dns_serversarray of stringNoCustom DNS servers, maximum 4 entries. Defaults to ["1.1.1.1", "8.8.8.8"].
Terminal window
curl -X PUT "https://api.hoody.com/api/v1/containers/{containerId}/network" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"type": "socks5",
"proxy": "socks5://proxy.example.com:1080",
"country": "US",
"city": "New York",
"region": "North America",
"comment": "Production proxy for US traffic",
"dns_servers": ["1.1.1.1", "8.8.8.8"]
}'

POST /api/v1/containers/{id}/network/start

Section titled “POST /api/v1/containers/{id}/network/start”

Start the network proxy or blocking service for a container. The container must already have a network configuration in place.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to start network for
Terminal window
curl -X POST "https://api.hoody.com/api/v1/containers/{containerId}/network/start" \
-H "Authorization: Bearer <token>"

Stop the network proxy or blocking service for a container. The configuration is preserved and can be started again with the start endpoint.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to stop network for
Terminal window
curl -X POST "https://api.hoody.com/api/v1/containers/{containerId}/network/stop" \
-H "Authorization: Bearer <token>"

Remove the entire network proxy or blocking configuration for a container. The container will fall back to direct network access once the configuration is cleared.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to remove network configuration from
Terminal window
curl -X DELETE "https://api.hoody.com/api/v1/containers/{containerId}/network" \
-H "Authorization: Bearer <token>"