SandboxPreviewTokenInfo

class baseten.sandbox.SandboxPreviewTokenInfo(*, name, token, expires_at, expired)

Bases: object

An access token for a private preview.

Parameters:
expired: bool

Whether expires_at has passed.

expires_at: datetime

When the token stops working.

name: str

Name of the token.

token: str

Value granting access.

Append it to the preview URL as ?preview_token=<token>; the first request sets a cookie so a browser can keep navigating without it.