Skip to main content
Start a service inside a machine and call machine.get_url(port) to get the exact signed preview URL to share. Keep the machine and the server process running while someone is using the URL.
Hosted preview URLs are edge-owned. The exact host and path are deployment specific; use the returned URL directly:
Single-host OSS owned-domain installs use API-compatible wildcard preview hostnames because apps/edge is not part of that appliance profile.

HTTP and WebSocket URLs

Use the exact signed URL returned by the SDK. If the deployment returns an edge_token query parameter, do not strip or rewrite it. After opening a signed HTTP preview URL in a browser, normal page navigation can continue through the scoped preview continuation cookie. WebSocket clients should use the returned websocket_url; HTTP continuation cookies do not authorize WebSocket upgrades. Use a custom preview proxy when you need your own domain, app session checks, or proxy middleware. Concept: Create. API reference: getHost, createMachine, and execCommand.