SandboxPreviewInfo

class baseten.sandbox.SandboxPreviewInfo(*, name, port, url, status, public, response_headers, request_headers, expires_at, region, created_at, updated_at, created_by, updated_by)

Bases: object

A preview as last reported by the control plane.

Parameters:
expires_at: datetime | None

When the preview is deleted, when it expires.

name: str

Name of the preview, unique within the sandbox.

port: int

Sandbox port the preview exposes.

public: bool

Whether the URL is reachable without a token.

region: str | None

Region serving the preview, the sandbox’s region.

request_headers: dict[str, str]

Headers added to every request forwarded to the sandbox.

Values come back as "****" unless read with show_secrets.

response_headers: dict[str, str]

Headers added to every response the preview serves.

url: str

HTTPS URL serving the port.

Requests to a private preview need a token from SandboxPreviews.create_token().