AI Chat

Renew a managed preview only for an already-bound, running workspace. The requested sandbox ID is an object selector, never an authorization grant.

post/ai/preview/authorize

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/preview/authorize
  • Auth: HTTP bearer

Request body

pathstring nullable
portinteger required
sandbox_public_idstring required

Response

expires_atinteger required
urlstring required

A short-lived authenticated URL. Its fragment carries the grant and never reaches the development server or referrer headers.

Changes

No recorded changes to this operation across all 53 revisions of this API.