Quickstart
Create a public preview
Start a web server inside your box and create a preview URL to access it.Add authentication
Protect your preview URL with bearer token or basic authentication.API
Create Preview
Creates a preview URL that exposes a port on your box. Returns the public URL and authentication credentials if requested.With Bearer Token
AddbearerToken: true to require an authorization header when accessing the preview.
With Basic Authentication
AddbasicAuth: true to require username and password when accessing the preview.
With Both Auth Methods
Enable both authentication methods. Either one will work when accessing the preview.List Previews
Get all active preview URLs for this box.Delete Preview
Remove a preview URL by port number.Behavior
One Preview Per Port
Creating a preview for a port that already has one will overwrite the previous preview (including any auth credentials).Preview Lifecycle
Preview URLs expire automatically when:- The box is paused
- The box is deleted