List Popups

Returns the popups the owner enabled in the dashboard, with their targeting (pages, delay, frequency, trigger) and the form for form popups. This public, read-only endpoint can also tell you which popups target a given page.

GET/v1/popups

Authentication

Public key?key=pk_…

Public key in the key query parameter. No OAuth, no secret.

Edge cache: 5 s

Query Parameters

keystring
required

The site's public key (pk_…). It selects the account. Safe to ship to the browser.

triggersstring
optional

The popup kinds your code opens. 1: every popup that opens after a delay, on scroll, on exit intent or on a click on a selector, with its trigger. 2: also popups opened by every link to a page (link) or only by the site's buttons (manual), content popups (type: "content", with their name), and each popup's key. 3: also views popups, which open once the visitor has opened count different listings (a registration wall). Without it only popups that open after a delay are returned, and trigger is left out.

12
pathstring
optional

Page path, for example /listing/1. With triggers (1, 2 or 3), the response adds matched: the ids of the popups that target that path.

searchstring
optional

Query string of the page, without the leading ?. Used together with path and triggers for popups that target search pages.

localestring
optional

Language of the forms inside form popups (no value means English), translated from whatever language the owner wrote them in. Unknown languages return the form as written.

enesbrptitrufrsrdecnzhplrotrar

Responses

200Success
application/json
popupsarray[object]
matchedarray[string]

Errors

401Missing or invalid public key
403TENANT_INACTIVE: the account has no active subscription (body also carries code)

Notes

  • pages patterns: / is the homepage, /* every page, /listing/* a prefix, anything else an exact path. A leading language segment such as /es/ is ignored.
  • type: "auth" popups open the sign-up or log-in step (mode); type: "form" popups carry the form definition in form (their own form, or the website's form on a page spot); type: "content" popups are the site's own copy. Form popups whose form was deleted are not returned.
  • key is the popup's stable name in the site's code: an element with data-panda-popup="<key>" opens it. Popups that the visitor opens (click, link, manual) open every time; frequency applies to the ones that open by themselves, counted when the visitor sees them.
  • matched appears only when you send both triggers and path. form.schema is the same dynamic form definition the forms endpoints return.
  • The list is [] when no popup is enabled.
Request
curl --request GET \
--url "https://api.pandaidx.com/v1/popups?key={{public_key}}&triggers=2&path=%2F"
Response200 OK
{
"popups": [
{
"id": "66f1a2b3c4d5e6f708192a3d",
"key": "home-valuation",
"type": "form",
"mode": "signup",
"formId": "66f1a2b3c4d5e6f708192a3e",
"form": {
"_id": "66f1a2b3c4d5e6f708192a3e",
"name": "Home valuation",
"description": null,
"schema": {}
},
"pages": [
"/",
"/listing/*"
],
"delay": 8,
"trigger": {
"kind": "scroll",
"percent": 50
},
"frequency": "once_per_session",
"dismissable": true
}
],
"matched": [
"66f1a2b3c4d5e6f708192a3d"
]
}