Skip to main content
PUT
/
sandboxes
/
{id}
/
egress
curl --request PUT \ --url https://sandbox.brimble.io/sandboxes/{id}/egress \ --header 'Content-Type: application/json' \ --header 'x-brimble-key: <api-key>' \ --data '{ "mode": "open" }'
{ "message": "Sandbox egress updated", "data": { "id": "507f1f77bcf86cd799439011", "egress": { "mode": "restricted", "allow": [ "1.1.1.1" ] }, "block_outbound": false, "network_updated": true } }
Changes outbound network policy for a ready sandbox.

Request body

FieldTypeRequiredDescription
mode"open" | "restricted" | "deny_all"yesTarget egress mode.
allowstring[]when mode is restrictedIPv4 addresses, CIDR ranges, or hostnames. Min 1, max 50 entries. Must be omitted for open and deny_all.

Examples

{ "mode": "open" }
{ "mode": "deny_all" }
{
  "mode": "restricted",
  "allow": ["1.1.1.1", "api.openai.com"]
}

Response

Returns the updated sandbox record in data, including:
FieldTypeDescription
egress.modestringApplied egress mode.
egress.allowstring[]Applied allowlist (restricted mode only).
block_outboundbooleanLegacy mirror; true when mode is deny_all.
network_updatedbooleantrue when the sandbox was switched to a different network profile. Allow a few seconds before probing connectivity from inside the sandbox.

Authorizations

x-brimble-key
string
header
required

Your account-level Brimble API key. Find it in the dashboard under your profile drawer → API key (click the avatar in the sidebar). Available on paid plans only.

Path Parameters

id
string
required

24-char hex id of the sandbox.

Pattern: ^[a-f0-9]{24}$

Body

application/json

Request body for PUT /sandboxes/{id}/egress.

mode
enum<string>
required

Outbound network policy for a sandbox.

  • open — full outbound internet access (default).
  • deny_all — all outbound connections blocked; inbound Brimble API calls still work.
  • restricted — default deny with an allowlist (allow required on update).
Available options:
open,
restricted,
deny_all
allow
string[]

Required when mode is restricted; must be omitted otherwise.

Required array length: 1 - 50 elements
Required string length: 1 - 253

Response

Egress updated

message
string
required
Example:

"Sandbox egress updated"

data
object
required

Includes network_updated when the network profile changed.

Last modified on June 29, 2026