Skip to content
Hoody.com

The Container Network API lets you inspect, configure, start, stop, and remove the network proxy or traffic-blocking profile attached to a single container. Use these endpoints when you need to manage outbound network routing, assign a proxy location, or tear down the network layer for an individual container.

Retrieve 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.icu/api/v1/containers/507f1f77bcf86cd799439012/network" \
-H "Authorization: Bearer <token>"

Create or replace the network proxy or blocking configuration for a container.

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), e.g. socks5://proxy.example.com:1080. Credentials may be embedded as userinfo (socks5://host:port) to set or replace them; omitting userinfo on an unchanged endpoint preserves the stored credentials (write-only secret). The response never echoes userinfo back — see credentials_configured.
countrystringNoOptional country for geographical proxy selection.
citystringNoOptional city for geographical proxy selection.
regionstringNoOptional region for geographical proxy selection.
commentstringNoOptional comment describing the network configuration.
dns_serversarrayNoCustom DNS servers. Maximum of 4 entries. Defaults to ["1.1.1.1", "8.8.8.8"].
Terminal window
curl -X PUT "https://api.hoody.icu/api/v1/containers/507f1f77bcf86cd799439012/network" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"type": "socks5",
"proxy": "socks5://user:pass@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"]
}'

Start the network proxy or blocking service for a configured container.

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

Section titled “POST /api/v1/containers/{id}/network/start”
NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to start network for
Terminal window
curl -X POST "https://api.hoody.icu/api/v1/containers/507f1f77bcf86cd799439012/network/start" \
-H "Authorization: Bearer <token>"

Stop the network proxy or blocking service for a container.

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

Permanently remove the network proxy or blocking configuration from a container.

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