Skip to content

The Container Network API lets you manage outbound network behavior for individual containers — including configuring proxy profiles, blocking all traffic, starting/stopping the underlying bridge, and inspecting live status. Use these endpoints when you need to route a container through a specific proxy, geo-pin its egress, or cut off its network entirely.

GET /api/v1/containers/{id}/network

Returns the current network configuration and runtime status for a container, including the bridge details used to enforce the proxy or block rule.

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

PATCH /api/v1/containers/{id}/network

Configures or updates the network proxy/blocking settings for a container. The type field selects between a proxy protocol (socks5, http, https) and block, which drops all egress traffic.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to configure network for
FieldTypeRequiredDescription
typestringYesNetwork configuration type. One of: socks5, http, https, block
proxystringNoProxy server URL (required for non-block types, e.g. socks5://user:pass@proxy.example.com:1080)
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 (max 4, defaults to ["1.1.1.1", "8.8.8.8"])
Terminal window
curl -X PATCH "https://api.hoody.com/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"]
}'

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

Starts the network proxy or blocking service for a container. The container must already have a network configuration in place before this endpoint can activate it.

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

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

Stops the network proxy or blocking service for a container. The configuration is preserved and can be re-started later.

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

DELETE /api/v1/containers/{id}/network

Removes the entire network proxy or blocking configuration for a container. After this call the container returns to its default (unfiltered) network behavior.

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