Skip to main content
POST
Rotate Preview-URL Auth Token
Mint a new bearer token for the sandbox’s preview-URL auth gate. The old token stops working immediately — there is no zero-downtime dual-token mode, so roll the new token out to your caller before discarding the old one. If the sandbox was originally created without previewAuth, this call installs a token and starts enforcing the gate from that point on. The plaintext is returned exactly once in the response. Only the SHA-256 hash is persisted server-side; the server cannot show you the token again later.
id
string
required
Sandbox ID

Errors