Skip to content
Hoody.com

Configure the network interface for a container: read the current configuration, attach a proxy (SOCKS5, HTTP, or HTTPS), set up traffic blocking, start or stop the service, and remove the configuration entirely. Use these endpoints when you need to route a container’s outbound traffic through a specific proxy endpoint or block outbound traffic altogether.

Get the current network configuration and status for a container, including the proxy endpoint, geo metadata, DNS servers, and the live remote status.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to retrieve network configuration for
{
"statusCode": 200,
"message": "Network configuration retrieved successfully",
"data": {
"container_id": "507f1f77bcf86cd799439012",
"configured": true,
"type": "socks5",
"proxy": "socks5://proxy.example.com:1080",
"credentials_configured": true,
"country": "US",
"city": "New York",
"region": "North America",
"comment": "Production proxy configuration",
"dns_servers": ["1.1.1.1", "8.8.8.8"],
"status": "running",
"configured_at": "2025-01-15T10:00:00.000Z",
"last_status_check": "2025-01-15T20:00:00.000Z",
"remote_status": {
"is_running": true,
"last_check": "2025-01-15T20:00:00.000Z"
}
}
}
Terminal window
curl -X GET "https://api.hoody.com/api/v1/containers/507f1f77bcf86cd799439012/network" \
-H "Authorization: Bearer <token>"

Configure or update the network proxy or blocking settings for a container. The request body must include a type. When type is not block, a proxy URL is required. Credentials can be embedded in the proxy URL as userinfo; the API never echoes credentials back, only the boolean credentials_configured.

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), 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 (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 (max 4). Defaults to ["1.1.1.1", "8.8.8.8"].
{
"statusCode": 200,
"message": "Network configuration updated successfully",
"data": {
"container_id": "507f1f77bcf86cd799439012",
"type": "socks5",
"proxy": "socks5://proxy.example.com:1080",
"credentials_configured": true,
"country": "US",
"city": "New York",
"region": "North America",
"comment": "Production proxy for US traffic",
"dns_servers": ["1.1.1.1", "8.8.8.8"],
"status": "configured",
"configured_at": "2025-01-15T21:00:00.000Z"
}
}
Terminal window
curl -X PUT "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"]
}'

Remove the entire network proxy or blocking configuration for a container. After removal, the container returns to using the default network path with no proxy applied.

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

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 before this endpoint can succeed.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to start network for
{
"statusCode": 200,
"message": "Network service started successfully",
"data": {
"container_id": "507f1f77bcf86cd799439012",
"status": "running",
"is_running": true,
"last_check": "2025-01-15T21:05:00.000Z"
}
}
Terminal window
curl -X POST "https://api.hoody.com/api/v1/containers/507f1f77bcf86cd799439012/network/start" \
-H "Authorization: Bearer <token>"

Stop the network proxy or blocking service for a container. The configuration is preserved and can be restarted later.

NameInTypeRequiredDescription
idpathstringYesUnique identifier of the container to stop network for
{
"statusCode": 200,
"message": "Network service stopped successfully",
"data": {
"container_id": "507f1f77bcf86cd799439012",
"status": "stopped",
"is_running": false,
"last_check": "2025-01-15T21:10:00.000Z"
}
}
Terminal window
curl -X POST "https://api.hoody.com/api/v1/containers/507f1f77bcf86cd799439012/network/stop" \
-H "Authorization: Bearer <token>"