> ## 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 Runtime

> Load the hosted JavaScript runtime for popup signup widgets.

# Get Popup Runtime

Load this public JavaScript file from your website to render popup signup
widgets. The runtime reads `window.SequenzyPopupConfig` and submits subscribers
through the public Forms API.

## Request

This endpoint does not require authentication.

```bash theme={null}
curl "https://api.sequenzy.com/api/v1/widgets/popup.js"
```

## Usage

```html theme={null}
<script>
  window.SequenzyPopupConfig = {
    companyId: "company_123",
    apiBaseUrl: "https://api.sequenzy.com",
    listMode: "all",
    listIds: [],
    tagIds: [],
    templateId: "newsletter",
    layout: "fullscreen",
    trigger: { type: "delay", delaySeconds: 5 },
    content: {
      title: "Join the newsletter",
      description: "Get practical updates delivered to your inbox.",
      buttonText: "Subscribe",
      successMessage: "Thanks for subscribing.",
      badgeText: "Newsletter",
    },
    visual: { style: "accent", placement: "top" },
    fields: { email: { placeholder: "you@example.com" } },
    theme: {
      accentColor: "#f97316",
      backgroundColor: "#ffffff",
      textColor: "#111827",
    },
  };
</script>
<script async src="https://api.sequenzy.com/api/v1/widgets/popup.js"></script>
```

## Responses

<ResponseExample>
  ```javascript 200 theme={null}
  (function () {
    "use strict";
    // Popup runtime
  })();
  ```
</ResponseExample>
