Skip to Content

preview_open

Needs http. A secret 10-minute link to see a preview in your own browser.

Arguments

NameTypeRequiredMeaning
namestringyesThe preview’s name, as previews_list shows it.

Result

NameTypeRequiredMeaning
expiresintegernoWhen the link stops opening (unix seconds); absent for a public preview’s own address.
urlstringyesOpen it in your own browser. A private preview’s link is one-time: it signs that browser in to this preview as you, works up to 3 times within 10 minutes, and is a secret.

Examples

{ "name": "preview_open", "arguments": { "name": "<name>" } }

Limits

The token is the only check: no risk class applies, and the call is not counted against the plan. A call with machine set, or with sealed instead of args, returns bad_args. A refused call returns one of the error codes.