Widgets
Get Popup
Read one popup with its complete content
GET
/
api
/
v1
/
popups
/
{popupId}
Get Popup
curl --request GET \
--url https://api.sequenzy.com/api/v1/popups/{popupId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/popups/{popupId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/popups/{popupId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequenzy.com/api/v1/popups/{popupId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/popups/{popupId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sequenzy.com/api/v1/popups/{popupId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/popups/{popupId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"popup": {
"id": "pop_123",
"name": "Welcome offer",
"status": "published",
"viewCount": 1840,
"conversionCount": 96,
"content": {
"version": 1,
"surface": "popup",
"template": "discount",
"presentation": "modal",
"placement": "center",
"trigger": { "type": "exit-intent", "delaySeconds": 5 },
"targeting": { "domains": [], "paths": [], "device": "all" },
"frequency": { "maxDisplays": 3, "windowDays": 7 },
"blocks": []
}
},
"embed": {
"scriptUrl": "https://sequenzy.com/embed/popups/pop_123?v=capture-runtime-20260716-14"
}
}
{
"error": "Missing API key. Provide via x-api-key header or Authorization: Bearer <key>"
}
{ "error": "API key is missing required scope: widgets:read" }
{ "error": "Popup not found" }
Return one saved popup with its complete content blocks, trigger, targeting,
schedule, frequency, and theme. Read this before replacing
blocks so the
replacement array stays complete.
The embed object is present only when the popup is published.
curl "https://api.sequenzy.com/api/v1/popups/pop_123" \
-H "Authorization: Bearer YOUR_API_KEY"
Responses
{
"success": true,
"popup": {
"id": "pop_123",
"name": "Welcome offer",
"status": "published",
"viewCount": 1840,
"conversionCount": 96,
"content": {
"version": 1,
"surface": "popup",
"template": "discount",
"presentation": "modal",
"placement": "center",
"trigger": { "type": "exit-intent", "delaySeconds": 5 },
"targeting": { "domains": [], "paths": [], "device": "all" },
"frequency": { "maxDisplays": 3, "windowDays": 7 },
"blocks": []
}
},
"embed": {
"scriptUrl": "https://sequenzy.com/embed/popups/pop_123?v=capture-runtime-20260716-14"
}
}
{
"error": "Missing API key. Provide via x-api-key header or Authorization: Bearer <key>"
}
{ "error": "API key is missing required scope: widgets:read" }
{ "error": "Popup not found" }
⌘I
Get Popup
curl --request GET \
--url https://api.sequenzy.com/api/v1/popups/{popupId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/popups/{popupId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/popups/{popupId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequenzy.com/api/v1/popups/{popupId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/popups/{popupId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sequenzy.com/api/v1/popups/{popupId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/popups/{popupId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"popup": {
"id": "pop_123",
"name": "Welcome offer",
"status": "published",
"viewCount": 1840,
"conversionCount": 96,
"content": {
"version": 1,
"surface": "popup",
"template": "discount",
"presentation": "modal",
"placement": "center",
"trigger": { "type": "exit-intent", "delaySeconds": 5 },
"targeting": { "domains": [], "paths": [], "device": "all" },
"frequency": { "maxDisplays": 3, "windowDays": 7 },
"blocks": []
}
},
"embed": {
"scriptUrl": "https://sequenzy.com/embed/popups/pop_123?v=capture-runtime-20260716-14"
}
}
{
"error": "Missing API key. Provide via x-api-key header or Authorization: Bearer <key>"
}
{ "error": "API key is missing required scope: widgets:read" }
{ "error": "Popup not found" }