Skip to main content
GET
/
api
/
v1
/
widgets
/
popup.js
Get Popup Runtime
curl --request GET \
  --url https://api.sequenzy.com/api/v1/widgets/popup.js \
  --header 'Authorization: Bearer <token>'
(function () {
  "use strict";
  // Popup runtime
})();

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.
curl "https://api.sequenzy.com/api/v1/widgets/popup.js"

Usage

<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

(function () {
  "use strict";
  // Popup runtime
})();