Sandboxes
Get preview URL
Get a public HTTPS URL for a port inside a sandbox with the Brimble Sandboxes API.
GET
Get a preview URL for a port
Returns a public HTTPS URL that routes to
port inside the sandbox. No expose step is needed, and the URL stays the same for a given sandbox and port.
The URL serves traffic while the sandbox is running and a process listens on that port. Bind your server to 0.0.0.0, not localhost. If the sandbox is paused or destroyed, the URL responds with a “not running” page.
SDKs: handle.getPreviewUrl(port) (TypeScript), sandbox.get_preview_url(port) (Python), handle.GetPreviewURL(ctx, port) (Go).Authorizations
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
24-char hex id of the sandbox.
Pattern:
^[a-f0-9]{24}$Port inside the sandbox, 1 to 65535.
Required range:
1 <= x <= 65535Last modified on October 23, 2026