> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Popup Embed

> Get a published popup's deployment snippets

Return a published popup's script URL plus ready-to-paste snippets for plain
HTML, React and Next.js, WordPress, and Shopify. The snippets carry no API key -
trigger, targeting, and audience rules stay server-side.

The popup must be published. Publish it with
[Update Popup](/api-reference/widgets/update-popup).

```bash theme={null}
curl "https://api.sequenzy.com/api/v1/popups/embed/pop_123" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "popup": { "id": "pop_123", "name": "Welcome offer", "status": "published" },
    "embed": {
      "scriptUrl": "https://sequenzy.com/embed/popups/pop_123?v=capture-runtime-20260716-14",
      "javascript": "<script async src=\"https://sequenzy.com/embed/popups/pop_123?v=capture-runtime-20260716-14\"></script>",
      "supportedPlatforms": ["HTML", "React", "Next.js", "WordPress", "Shopify"]
    }
  }
  ```

  ```json 400 theme={null}
  { "error": "Publish the popup before requesting public embed code." }
  ```

  ```json 401 theme={null}
  {
    "error": "Missing API key. Provide via x-api-key header or Authorization: Bearer <key>"
  }
  ```

  ```json 403 theme={null}
  { "error": "API key is missing required scope: widgets:read" }
  ```

  ```json 404 theme={null}
  { "error": "Popup not found" }
  ```
</ResponseExample>
