Hoody Egress
Section titled “Hoody Egress”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.
Service health
Section titled “Service health”GET /api/v1/egress/health
Section titled “GET /api/v1/egress/health”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.
curl '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' });
await client.egress.kit.getHealth();curl --request GET \ --url 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/health'TypeScript SDK
Section titled “TypeScript SDK”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();Responses
Section titled “Responses”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"}Response fields
Section titled “Response fields”| Field | Type | Required | Description |
|---|---|---|---|
status | string | Yes | Service status. The only value is ok. |
service | string | Yes | Service name. |
built | string or null | No | Executable modification time as an RFC3339 string. |
started | string | Yes | Process start time as an RFC3339 string. |
memory | object or null | No | Memory details, when available. |
memory.rss | integer | Yes | Resident set size in bytes. |
memory.heap | integer or null | No | Always null because the service reports no separate heap figure. |
fds | integer or null | No | Number of open file descriptors. |
pid | integer | Yes | Process identifier. |
ip | string | Yes | IP address reported by the service. |
userAgent | string or null | No | User agent reported by the service. |
Upstream proxy
Section titled “Upstream proxy”GET /api/v1/egress/upstream
Section titled “GET /api/v1/egress/upstream”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.
curl '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' });
await client.egress.upstream.get();curl --request GET \ --url 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream'TypeScript SDK
Section titled “TypeScript SDK”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();Responses
Section titled “Responses”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 }}Response fields
Section titled “Response fields”| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Yes | Whether 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. |
state | string | Yes | The configuration in force: active, unavailable, or direct. This reports configuration, not reachability. |
scheme | string | No | Upstream scheme: socks5, socks5h, http, or https. Absent when there is no parsed upstream configuration. |
host | string | No | Upstream host. Absent when there is no parsed upstream configuration. |
port | integer | No | Upstream port. Absent when there is no parsed upstream configuration. |
auth | boolean | No | Whether upstream credentials are configured. Credentials are never returned. Absent when there is no parsed upstream configuration. |
config_path | string | Yes | Path of the file that stores the setting. |
lease | object | No | Lease details. Absent when the upstream has no lease. |
lease.id | string | Yes | Identifier used to renew the lease. It is not a credential. |
lease.ttl | integer | Yes | Number of seconds added by each renewal. |
lease.expires_at | integer | Yes | Unix time, in seconds, when the upstream will be disabled unless renewed. |
lease.expires_in | integer | Yes | Number of seconds remaining until expires_at. |
PUT /api/v1/egress/upstream
Section titled “PUT /api/v1/egress/upstream”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.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
lease | query | integer | No | Lease 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. |
Request body
Section titled “Request body”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:8080curl --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'import { HoodyClient } from 'hoody-sdk';
const client = new HoodyClient({ baseURL: 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com' });
await client.egress.upstream.set('http://proxy.example.com:3128', { lease: 300 });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'TypeScript SDK
Section titled “TypeScript SDK”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 });Responses
Section titled “Responses”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 }}Response fields
Section titled “Response fields”| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Yes | Whether an upstream proxy is configured. |
state | string | Yes | The 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. |
scheme | string | No | Upstream scheme: socks5, socks5h, http, or https. Absent when there is no parsed upstream configuration. |
host | string | No | Upstream host. Absent when there is no parsed upstream configuration. |
port | integer | No | Upstream port. Absent when there is no parsed upstream configuration. |
auth | boolean | No | Whether upstream credentials are configured. Credentials are never returned. |
config_path | string | Yes | Path of the file that stores the setting. |
lease | object | No | Lease details. Absent when the upstream has no lease. |
lease.id | string | Yes | Identifier used to renew the lease. It is not a credential. |
lease.ttl | integer | Yes | Number of seconds added by each renewal. |
lease.expires_at | integer | Yes | Unix time, in seconds, when the upstream will be disabled unless renewed. |
lease.expires_in | integer | Yes | Number of seconds remaining until expires_at. |
Bad request.
Upstream destination not permitted: The upstream destination is not permitted.
Media type: not recorded
The request is rejected because the Content-Length header is missing.
Media type: not recorded
The declared Content-Length is greater than 4096 bytes. The text/plain wire body contains Body too large followed by a newline.
Media type: not recorded
The service could not write the upstream configuration file.
Media type: not recorded
POST /api/v1/egress/upstream
Section titled “POST /api/v1/egress/upstream”Alias of PUT /api/v1/egress/upstream for clients that cannot send a PUT. It accepts the same body, lease parameter, and responses.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
lease | query | integer | No | Lease 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. |
Request body
Section titled “Request body”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:8080curl --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'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'Responses
Section titled “Responses”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 }}Response fields
Section titled “Response fields”| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Yes | Whether an upstream proxy is configured. |
state | string | Yes | The 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. |
scheme | string | No | Upstream scheme: socks5, socks5h, http, or https. Absent when there is no parsed upstream configuration. |
host | string | No | Upstream host. Absent when there is no parsed upstream configuration. |
port | integer | No | Upstream port. Absent when there is no parsed upstream configuration. |
auth | boolean | No | Whether upstream credentials are configured. Credentials are never returned. |
config_path | string | Yes | Path of the file that stores the setting. |
lease | object | No | Lease details. Absent when the upstream has no lease. |
lease.id | string | Yes | Identifier used to renew the lease. It is not a credential. |
lease.ttl | integer | Yes | Number of seconds added by each renewal. |
lease.expires_at | integer | Yes | Unix time, in seconds, when the upstream will be disabled unless renewed. |
lease.expires_in | integer | Yes | Number of seconds remaining until expires_at. |
Bad request.
Upstream destination not permitted: The upstream destination is not permitted.
Media type: not recorded
The request is rejected because the Content-Length header is missing.
Media type: not recorded
The declared Content-Length is greater than 4096 bytes. The text/plain wire body contains Body too large followed by a newline.
Media type: not recorded
The service could not write the upstream configuration file.
Media type: not recorded
POST /api/v1/egress/upstream/renew
Section titled “POST /api/v1/egress/upstream/renew”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.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
lease_id | query | string | Yes | The lease.id returned when the upstream was set. |
curl --request POST \ 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream/renew?lease_id=lease-3f7c9a21'import { HoodyClient } from 'hoody-sdk';
const client = new HoodyClient({ baseURL: 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com' });
await client.egress.upstream.renewLease({ lease_id: 'lease-3f7c9a21' });curl --request POST \ --url 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream/renew?lease_id=3f7c9a21b04e6d58'TypeScript SDK
Section titled “TypeScript SDK”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'});Responses
Section titled “Responses”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 }}Response fields
Section titled “Response fields”| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Yes | Whether an upstream proxy is configured. |
state | string | Yes | The 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. |
scheme | string | No | Upstream scheme: socks5, socks5h, http, or https. Absent when there is no parsed upstream configuration. |
host | string | No | Upstream host. Absent when there is no parsed upstream configuration. |
port | integer | No | Upstream port. Absent when there is no parsed upstream configuration. |
auth | boolean | No | Whether upstream credentials are configured. Credentials are never returned. |
config_path | string | Yes | Path of the file that stores the setting. |
lease | object | No | Lease details. Absent when the upstream has no lease. |
lease.id | string | Yes | Identifier used to renew the lease. It is not a credential. |
lease.ttl | integer | Yes | Number of seconds added by each renewal. |
lease.expires_at | integer | Yes | Unix time, in seconds, when the upstream will be disabled unless renewed. |
lease.expires_in | integer | Yes | Number of seconds remaining until expires_at. |
The lease_id query parameter is missing or invalid.
Media type: not recorded
Only POST is accepted for this route.
Media type: not recorded
No lease with the supplied identifier is in force. The lease may have expired, the upstream may have been replaced or disabled, or another lease may have taken over. The wire body is text/plain.
The client’s upstream is no longer the one in force. Set it again if it should remain in force.
Media type: not recorded
The service could not read or write the configuration file. The text/plain body is Failed to read config or Failed to write config.
Media type: not recorded
DELETE /api/v1/egress/upstream
Section titled “DELETE /api/v1/egress/upstream”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.
curl --request DELETE \ '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' });
await client.egress.upstream.disable();curl --request DELETE \ --url 'https://{projectId}-{computerId}-egress-1.{server}.computers.hoody.com/api/v1/egress/upstream'TypeScript SDK
Section titled “TypeScript SDK”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();Responses
Section titled “Responses”The upstream was disabled.
Media type: application/json
{ "enabled": false, "state": "direct", "config_path": "/hoody/storage/hoody-egress/config/upstream_proxy.txt"}Response fields
Section titled “Response fields”| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Yes | Whether an upstream proxy is configured. |
state | string | Yes | The configuration in force: active, unavailable, or direct. direct means no upstream is configured. This reports configuration, not reachability. |
scheme | string | No | Upstream scheme: socks5, socks5h, http, or https. Absent when there is no parsed upstream configuration. |
host | string | No | Upstream host. Absent when there is no parsed upstream configuration. |
port | integer | No | Upstream port. Absent when there is no parsed upstream configuration. |
auth | boolean | No | Whether upstream credentials are configured. Credentials are never returned. |
config_path | string | Yes | Path of the file that stores the setting. |
lease | object | No | Lease details. Absent when the upstream has no lease. |
lease.id | string | Yes | Identifier used to renew the lease. It is not a credential. |
lease.ttl | integer | Yes | Number of seconds added by each renewal. |
lease.expires_at | integer | Yes | Unix time, in seconds, when the upstream will be disabled unless renewed. |
lease.expires_in | integer | Yes | Number of seconds remaining until expires_at. |
The configuration file could not be written, so the upstream setting in force before the request remains in force.
Media type: text/plain
Failed to write config