AI Applications

Mint a short-lived URL for a port running in the application harness sandbox. This intentionally does not return the bare `ws-…` hostname: application sandboxes always have a private preview password and only the gateway can exchange this grant for the preview cookie.

Changed on
post/ai/applications/{application_public_id}/preview-link

Request

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

Path parameters

application_public_idstring required

Request body

pathstring nullable

Optional same-origin path to open after the preview grant is exchanged.

portinteger required

The development server port detected or selected in the sandbox.

Response

expires_atstring date-time required

When the link stops working, ISO 8601 in UTC.

urlstring required

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

Changes