Skip to content

Public soft launch: these docs are still being updated. The next full update is on 28 November at 8 PM UTC. Public soft launch. Docs update 28 Nov, 8 PM UTC.

Hoody.com

The Hoody Egress service is the computer’s HTTP proxy. Use these endpoints to read its health, inspect the configured upstream, set or lease an upstream proxy, renew a lease, or disable the upstream.

The upstream applies only to requests sent through the computer’s HTTP proxy. enabled indicates whether an upstream is configured, while state indicates which configuration is in force. Neither field reports whether the upstream is reachable.

These computer-scoped routes do not use the Hoody account token. Access to each route is governed by the computer’s proxy permission rules.

In the Hub, open Computers, select a running computer and open Network. Where your traffic comes out shows the current exit; choose Use another exit…, pick Your own proxy, enter its Type, Proxy host and Port (and an optional user name and password) and choose Use this exit. To clear the upstream, choose Use its own address and confirm with Use own address.

Returns the standardized health response for the Egress service. The endpoint is unauthenticated.

A HEAD request to the same path returns the same headers without a body. Other methods return 405 with Allow: GET, HEAD.

Terminal window
curl 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/health'
Terminal window
curl --request GET \
--url 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/health'
import { HoodyClient } from 'hoody-sdk';
const client = new HoodyClient({ baseURL: 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com' });
const health = await client.egress.kit.getHealth();

The service is healthy.

Media type: application/json

{
"status": "ok",
"service": "hoody-egress",
"built": "2026-11-12T09:41:07Z",
"started": "2026-11-16T08:02:15Z",
"memory": {
"rss": 9437184,
"heap": null
},
"fds": 14,
"pid": 412,
"ip": "203.0.113.24",
"userAgent": "curl/8.5.0"
}
FieldTypeRequiredDescription
statusstringYesService status. The only value is ok.
servicestringYesService name.
builtstring or nullNoExecutable modification time as an RFC3339 string.
startedstringYesProcess start time as an RFC3339 string.
memoryobject or nullNoMemory details, when available.
memory.rssintegerYesResident set size in bytes.
memory.heapinteger or nullNoAlways null because the service reports no separate heap figure.
fdsinteger or nullNoNumber of open file descriptors.
pidintegerYesProcess identifier.
ipstringYesIP address reported by the service.
userAgentstring or nullNoUser agent reported by the service.

Returns the current upstream configuration. enabled reports whether an upstream is configured, while state reports which configuration is in force. Credentials are never returned, and auth only indicates whether credentials are configured.

Terminal window
curl 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream'
Terminal window
curl --request GET \
--url 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream'
import { HoodyClient } from 'hoody-sdk';
const client = new HoodyClient({ baseURL: 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com' });
const upstream = await client.egress.upstream.get();

The upstream status was returned.

Media type: application/json

{
"enabled": true,
"state": "active",
"scheme": "http",
"host": "proxy.example.com",
"port": 8080,
"auth": true,
"config_path": "/hoody/storage/hoody-egress/config/upstream_proxy.txt",
"lease": {
"id": "3f7c9a21b04e6d58",
"ttl": 300,
"expires_at": 1794826200,
"expires_in": 287
}
}
FieldTypeRequiredDescription
enabledbooleanYesWhether an upstream proxy is configured. It can also be true when an unreadable startup setting leaves the service unable to determine whether one is configured.
statestringYesThe configuration in force: active, unavailable, or direct. This reports configuration, not reachability.
schemestringNoUpstream scheme: socks5, socks5h, http, or https. Absent when there is no parsed upstream configuration.
hoststringNoUpstream host. Absent when there is no parsed upstream configuration.
portintegerNoUpstream port. Absent when there is no parsed upstream configuration.
authbooleanNoWhether upstream credentials are configured. Credentials are never returned. Absent when there is no parsed upstream configuration.
config_pathstringYesPath of the file that stores the setting.
leaseobjectNoLease details. Absent when the upstream has no lease.
lease.idstringYesIdentifier used to renew the lease. It is not a credential.
lease.ttlintegerYesNumber of seconds added by each renewal.
lease.expires_atintegerYesUnix time, in seconds, when the upstream will be disabled unless renewed.
lease.expires_inintegerYesNumber of seconds remaining until expires_at.

Sets the upstream from the request body and writes it atomically to the upstream configuration file. Credentials are allowed.

With lease, the service disables the upstream when the lease expires without a renewal. Without lease, the upstream remains in force until it is replaced or disabled, and any previous lease ends.

NameInTypeRequiredDescription
leasequeryintegerNoLease the upstream for this many seconds. The service disables the upstream, as DELETE does, unless the lease is renewed before then with POST /api/v1/egress/upstream/renew. The value must be a whole number of seconds from 5 to 3600.

The request body is required and uses text/plain. Send the upstream proxy URL. The service reads the first non-empty, non-comment line.

http://proxy-user:proxy-password@proxy.example.com:8080
Terminal window
curl --request PUT \
'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream?lease=300' \
--header 'Content-Type: text/plain' \
--data-binary 'http://proxy.example.com:3128'
Terminal window
curl --request PUT \
--url 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream?lease=300' \
--header 'Content-Type: text/plain' \
--data-raw 'http://proxy-user:proxy-password@proxy.example.com:8080'
import { HoodyClient } from 'hoody-sdk';
const client = new HoodyClient({ baseURL: 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com' });
const upstream = await client.egress.upstream.set(
'http://proxy-user:proxy-password@proxy.example.com:8080',
{ lease: 300 }
);

The upstream was updated.

Media type: application/json

{
"enabled": true,
"state": "active",
"scheme": "http",
"host": "proxy.example.com",
"port": 8080,
"auth": true,
"config_path": "/hoody/storage/hoody-egress/config/upstream_proxy.txt",
"lease": {
"id": "3f7c9a21b04e6d58",
"ttl": 300,
"expires_at": 1794826200,
"expires_in": 300
}
}
FieldTypeRequiredDescription
enabledbooleanYesWhether an upstream proxy is configured.
statestringYesThe configuration in force: active, unavailable, or direct. active means an address for the configured upstream was checked and approved and requests are sent through it. unavailable means the service has no approved upstream address and does not send proxied requests directly. direct means no upstream is configured. This reports configuration, not reachability.
schemestringNoUpstream scheme: socks5, socks5h, http, or https. Absent when there is no parsed upstream configuration.
hoststringNoUpstream host. Absent when there is no parsed upstream configuration.
portintegerNoUpstream port. Absent when there is no parsed upstream configuration.
authbooleanNoWhether upstream credentials are configured. Credentials are never returned.
config_pathstringYesPath of the file that stores the setting.
leaseobjectNoLease details. Absent when the upstream has no lease.
lease.idstringYesIdentifier used to renew the lease. It is not a credential.
lease.ttlintegerYesNumber of seconds added by each renewal.
lease.expires_atintegerYesUnix time, in seconds, when the upstream will be disabled unless renewed.
lease.expires_inintegerYesNumber of seconds remaining until expires_at.

Alias of PUT /api/v1/egress/upstream for clients that cannot send a PUT. It accepts the same body, lease parameter, and responses.

NameInTypeRequiredDescription
leasequeryintegerNoLease the upstream for this many seconds. The service disables the upstream, as DELETE does, unless the lease is renewed before then with POST /api/v1/egress/upstream/renew. The value must be a whole number of seconds from 5 to 3600.

The request body is required and uses text/plain. Send the upstream proxy URL. The service reads the first non-empty, non-comment line.

http://proxy-user:proxy-password@proxy.example.com:8080
Terminal window
curl --request POST \
'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream?lease=300' \
--header 'Content-Type: text/plain' \
--data-binary 'http://proxy.example.com:3128'
Terminal window
curl --request POST \
--url 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream?lease=300' \
--header 'Content-Type: text/plain' \
--data-raw 'http://proxy-user:proxy-password@proxy.example.com:8080'

The upstream was updated.

Media type: application/json

{
"enabled": true,
"state": "active",
"scheme": "http",
"host": "proxy.example.com",
"port": 8080,
"auth": true,
"config_path": "/hoody/storage/hoody-egress/config/upstream_proxy.txt",
"lease": {
"id": "3f7c9a21b04e6d58",
"ttl": 300,
"expires_at": 1794826200,
"expires_in": 300
}
}
FieldTypeRequiredDescription
enabledbooleanYesWhether an upstream proxy is configured.
statestringYesThe configuration in force: active, unavailable, or direct. active means an address for the configured upstream was checked and approved and requests are sent through it. unavailable means the service has no approved upstream address and does not send proxied requests directly. direct means no upstream is configured. This reports configuration, not reachability.
schemestringNoUpstream scheme: socks5, socks5h, http, or https. Absent when there is no parsed upstream configuration.
hoststringNoUpstream host. Absent when there is no parsed upstream configuration.
portintegerNoUpstream port. Absent when there is no parsed upstream configuration.
authbooleanNoWhether upstream credentials are configured. Credentials are never returned.
config_pathstringYesPath of the file that stores the setting.
leaseobjectNoLease details. Absent when the upstream has no lease.
lease.idstringYesIdentifier used to renew the lease. It is not a credential.
lease.ttlintegerYesNumber of seconds added by each renewal.
lease.expires_atintegerYesUnix time, in seconds, when the upstream will be disabled unless renewed.
lease.expires_inintegerYesNumber of seconds remaining until expires_at.

Extends the deadline of the upstream lease by its ttl, counted from the time of renewal, and persists the new deadline. The request body is ignored.

Call this endpoint while the client that owns the upstream remains active. For example, a client with a 300-second lease can renew every 100 seconds. If renewals stop, the service disables the upstream at the deadline so that an inactive exit cannot continue refusing requests sent through the proxy.

NameInTypeRequiredDescription
lease_idquerystringYesThe lease.id returned when the upstream was set.
Terminal window
curl --request POST \
'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream/renew?lease_id=lease-3f7c9a21'
Terminal window
curl --request POST \
--url 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream/renew?lease_id=3f7c9a21b04e6d58'
import { HoodyClient } from 'hoody-sdk';
const client = new HoodyClient({ baseURL: 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com' });
const upstream = await client.egress.upstream.renewLease({
lease_id: '3f7c9a21b04e6d58'
});

The upstream lease was renewed.

Media type: application/json

{
"enabled": true,
"state": "active",
"scheme": "http",
"host": "proxy.example.com",
"port": 8080,
"auth": true,
"config_path": "/hoody/storage/hoody-egress/config/upstream_proxy.txt",
"lease": {
"id": "3f7c9a21b04e6d58",
"ttl": 300,
"expires_at": 1794826500,
"expires_in": 300
}
}
FieldTypeRequiredDescription
enabledbooleanYesWhether an upstream proxy is configured.
statestringYesThe configuration in force: active, unavailable, or direct. active means an address for the configured upstream was checked and approved and requests are sent through it. unavailable means the service has no approved upstream address and does not send proxied requests directly. direct means no upstream is configured. This reports configuration, not reachability.
schemestringNoUpstream scheme: socks5, socks5h, http, or https. Absent when there is no parsed upstream configuration.
hoststringNoUpstream host. Absent when there is no parsed upstream configuration.
portintegerNoUpstream port. Absent when there is no parsed upstream configuration.
authbooleanNoWhether upstream credentials are configured. Credentials are never returned.
config_pathstringYesPath of the file that stores the setting.
leaseobjectNoLease details. Absent when the upstream has no lease.
lease.idstringYesIdentifier used to renew the lease. It is not a credential.
lease.ttlintegerYesNumber of seconds added by each renewal.
lease.expires_atintegerYesUnix time, in seconds, when the upstream will be disabled unless renewed.
lease.expires_inintegerYesNumber of seconds remaining until expires_at.

Disables the upstream and persists the disable as the directive line disabled in the configuration file. This survives a restart and overrides an --upstream command-line value.

A PUT with an empty body, or a body whose first real line is disabled, performs the same action.

Terminal window
curl --request DELETE \
'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream'
Terminal window
curl --request DELETE \
--url 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream'
import { HoodyClient } from 'hoody-sdk';
const client = new HoodyClient({ baseURL: 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com' });
const upstream = await client.egress.upstream.disable();

The upstream was disabled.

Media type: application/json

{
"enabled": false,
"state": "direct",
"config_path": "/hoody/storage/hoody-egress/config/upstream_proxy.txt"
}
FieldTypeRequiredDescription
enabledbooleanYesWhether an upstream proxy is configured.
statestringYesThe configuration in force: active, unavailable, or direct. direct means no upstream is configured. This reports configuration, not reachability.
schemestringNoUpstream scheme: socks5, socks5h, http, or https. Absent when there is no parsed upstream configuration.
hoststringNoUpstream host. Absent when there is no parsed upstream configuration.
portintegerNoUpstream port. Absent when there is no parsed upstream configuration.
authbooleanNoWhether upstream credentials are configured. Credentials are never returned.
config_pathstringYesPath of the file that stores the setting.
leaseobjectNoLease details. Absent when the upstream has no lease.
lease.idstringYesIdentifier used to renew the lease. It is not a credential.
lease.ttlintegerYesNumber of seconds added by each renewal.
lease.expires_atintegerYesUnix time, in seconds, when the upstream will be disabled unless renewed.
lease.expires_inintegerYesNumber of seconds remaining until expires_at.