projects

Create embed URL

Plan: All plans

Creates a one-hour static preview URL that can be framed by one exact HTTPS parent origin. The token is anonymous and cannot access live previews or published modes.

post/v1/projects/{project_id}/embed-url

Path parameters

project_idstring required

Project ID

Project ID

Request body

parent_originstring required

Exact HTTPS origin (scheme + host, no path) allowed to frame the static preview. The minted token only loads inside a frame served from this origin.

Example request

{
  "parent_origin": "https://acme.com"
}

Response

OK

embed_urlstring required

Origin-bound static-preview URL carrying a short-lived signed token (?__lovable_token=…). Load it in an iframe on the requested parent_origin.

expires_atstring date-time required

When the embed URL token expires and stops loading the preview.

Example response

{
  "embed_url": "https://acme-landing-page.lovable.app/?__lovable_token=eyJhbGciOiJIUzI1NiJ9",
  "expires_at": "2026-01-15T09:30:00Z"
}

Changes