GET/ form/
Get all pop-ups
You can return all of your existing pop-ups
Results are paginated: follow next to get the next page (see Response pagination).
Request
- cURL
- JavaScript
- PHP
- Python
curl -X GET "https://<your_app_subdomain>.user.com/api/public/form/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"
const response = await fetch(
"https://<your_app_subdomain>.user.com/api/public/form/",
{
method: "GET",
headers: {
Authorization: "Token <your_64_char_api_key>",
Accept: "*/*; version=2",
},
},
);
const data = await response.json();
console.log(data);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://<your_app_subdomain>.user.com/api/public/form/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Token <your_64_char_api_key>",
"Accept: */*; version=2",
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
response = requests.get(
"https://<your_app_subdomain>.user.com/api/public/form/",
headers={
"Authorization": "Token <your_64_char_api_key>",
"Accept": "*/*; version=2",
},
)
print(response.json())
Response examples
- 200 OK
{"count": 2,"next": null,"previous": null,"results": [{"key": "g7lvoickax9e","statistics": ,5 fields"name": "Spring sale banner","description": "Shown on the home page.","created_at": "2026-11-17T15:02:02.072630Z","updated_at": "2026-11-17T15:02:02.072652Z","content": "<p>Spring sale: 20% off everything this week.</p>","preview": null,"predefined_template_json": null,"preview_file": null,"author": 1,"category": null,"folder": null},{"key": "g7lvoickax9e","statistics": ,5 fields"name": "20261117-1551-Spring sale banner","description": "20261117-1551-Shown on the home page.","created_at": "2026-11-17T14:53:38.718701Z","updated_at": "2026-11-17T14:53:40.108193Z","content": "<p>Spring sale: 20% off everything this week.</p>","preview": null,"predefined_template_json": null,"preview_file": "https://<your_app_subdomain>.user.com/previews/forms/f9fb9a20-e31c-4175-8966-7961f6537741_n1JFHV2.png","author": 1,"category": null,"folder": null}]}Response fields
Fields returned in the 200 OK response body.
- count
- Number of results across all pages. It can lag behind recent changes; see Response pagination.
- next
- URL of the next page of results. null on the last page.
- previous
- URL of the previous page of results. null on the first page.
- results
- Results on this page.
- results[].
key - Unique key of the pop-up.
- results[].
statistics - How often the pop-up was shown and submitted.
- results[].
statistics. id - ID of the statistics record.
- results[].
statistics. ctr - Submissions as a percentage of times shown, as a string with two decimal places;
0.00if the pop-up hasn't been shown. - results[].
statistics. shown_counter - Number of times the pop-up was shown.
- results[].
statistics. submit_counter - Number of times the pop-up's form was submitted.
- results[].
statistics. form - Key of the pop-up these statistics belong to.
- results[].
- results[].
name - Name of the pop-up.
- results[].
description - Description of the pop-up; an empty string if it has none.
- results[].
created_at - When the pop-up was created, ISO 8601.
- results[].
updated_at - When the pop-up was last updated, ISO 8601.
- results[].
content - HTML content of the pop-up.
- results[].
preview - Older preview image field that the panel no longer fills; the current preview is in
preview_file. - results[].
predefined_template_json - Editable parts of the predefined template the pop-up was made from: texts, images, links, buttons, colors and form fields.
nullif the pop-up wasn't made from a template.- results[].
predefined_template_json. links - Links in the template.
- results[].
predefined_template_json. links[]. el - CSS selector of the link in the pop-up's HTML.
- results[].
predefined_template_json. links[]. type - Kind of element:
link. - results[].
predefined_template_json. links[]. label - Name of the link in the pop-up builder.
- results[].
predefined_template_json. links[]. style - CSS styles applied to the link.
- results[].
predefined_template_json. links[]. style. color - Text color of the link.
- results[].
predefined_template_json. links[]. style. borderColor - Border color of the link.
- results[].
predefined_template_json. links[]. style. backgroundColor - Background color of the link.
- results[].
- results[].
predefined_template_json. links[]. value - Text of the link.
- results[].
- results[].
predefined_template_json. images - Images in the template.
- results[].
predefined_template_json. images[]. el - CSS selector of the image element in the pop-up's HTML.
- results[].
predefined_template_json. images[]. src - URL of the image.
- results[].
predefined_template_json. images[]. rule - How the image is applied:
srcsets the element's source,backgroundsets it as the element's background image. - results[].
predefined_template_json. images[]. type - Kind of element:
image. - results[].
predefined_template_json. images[]. label - Name of the image in the pop-up builder.
- results[].
predefined_template_json. images[]. dimension - Recommended image size in pixels, as
width x height, for example350 x 390.
- results[].
- results[].
predefined_template_json. otherColor - A color shared by several elements of the template.
- results[].
predefined_template_json. otherColor. color - The shared color.
- results[].
predefined_template_json. otherColor. elements - Elements that take the shared color.
- results[].
predefined_template_json. otherColor. elements[]. el - CSS selector of the element.
- results[].
predefined_template_json. otherColor. elements[]. colorProps - CSS property the color is set on:
color,border-color,fillorstroke.
- results[].
- results[].
- results[].
predefined_template_json. backdropColor - Color of the backdrop behind the pop-up.
- results[].
predefined_template_json. backdropColor. el - CSS selector of the backdrop element.
- results[].
predefined_template_json. backdropColor. type - Kind of element:
background-color. - results[].
predefined_template_json. backdropColor. style - CSS styles applied to the backdrop.
- results[].
predefined_template_json. backdropColor. style. backgroundColor - Backdrop color as red, green, blue and opacity values.
- results[].
predefined_template_json. backdropColor. style. backgroundColor. a - Opacity, from
0(transparent) to1. - results[].
predefined_template_json. backdropColor. style. backgroundColor. b - Blue value,
0to255. - results[].
predefined_template_json. backdropColor. style. backgroundColor. g - Green value,
0to255. - results[].
predefined_template_json. backdropColor. style. backgroundColor. r - Red value,
0to255.
- results[].
- results[].
- results[].
- results[].
predefined_template_json. backgroundColor - Background color of the pop-up.
- results[].
predefined_template_json. backgroundColor. el - CSS selector of the pop-up's background element.
- results[].
predefined_template_json. backgroundColor. type - Kind of element:
background-color. - results[].
predefined_template_json. backgroundColor. style - CSS styles applied to the background.
- results[].
predefined_template_json. backgroundColor. style. backgroundColor - Background color as a CSS color, for example
#ffffff.
- results[].
- results[].
- results[].
predefined_template_json. formPlaceholder - The pop-up's form.
- results[].
predefined_template_json. formPlaceholder. el - CSS selector of the form element.
- results[].
predefined_template_json. formPlaceholder. list - Fields in the form.
- results[].
predefined_template_json. formPlaceholder. list[]. id - ID of the field in the pop-up's HTML.
- results[].
predefined_template_json. formPlaceholder. list[]. label - Label shown with the field.
- results[].
predefined_template_json. formPlaceholder. list[]. order - Position value from the template. It's
0in the predefined templates and the pop-up builder doesn't use it. - results[].
predefined_template_json. formPlaceholder. list[]. receiver - Contact attribute the field's value is saved to.
- results[].
predefined_template_json. formPlaceholder. list[]. required - Whether the field must be filled in before the form can be sent.
- results[].
predefined_template_json. formPlaceholder. list[]. component - Empty string in the predefined templates; the pop-up builder doesn't use it.
- results[].
predefined_template_json. formPlaceholder. list[]. can_remove falseif the field can't be removed in the pop-up builder.- results[].
predefined_template_json. formPlaceholder. list[]. renderType - How the field is shown:
input(one line of text),textarea,checkboxorradio(a rating from 0 to 10). - results[].
predefined_template_json. formPlaceholder. list[]. placeholder - Placeholder text shown in the empty field.
- results[].
- results[].
predefined_template_json. formPlaceholder. count - Maximum number of
input,textareaandradiofields the form can have. - results[].
predefined_template_json. formPlaceholder. no_labels - Whether the template shows its fields without labels.
- results[].
- results[].
predefined_template_json. contentPlaceholders - Texts in the template.
- results[].
predefined_template_json. contentPlaceholders[]. el - CSS selector of the text element in the pop-up's HTML.
- results[].
predefined_template_json. contentPlaceholders[]. type - Editor used for the text in the pop-up builder:
input(one line) ortextarea. - results[].
predefined_template_json. contentPlaceholders[]. label - Name of the text in the pop-up builder.
- results[].
predefined_template_json. contentPlaceholders[]. value - The text.
- results[].
predefined_template_json. contentPlaceholders[]. required - Whether the template marks the text as required. The pop-up builder doesn't use it.
- results[].
predefined_template_json. contentPlaceholders[]. maxlength - Maximum text length set by the template, for example
250. The pop-up builder doesn't enforce it.
- results[].
- results[].
predefined_template_json. buttons - Buttons in the template.
- results[].
predefined_template_json. buttons[]. el - CSS selector of the button in the pop-up's HTML.
- results[].
predefined_template_json. buttons[]. type - Kind of element:
button. - results[].
predefined_template_json. buttons[]. style - CSS styles applied to the button.
- results[].
predefined_template_json. buttons[]. style. color - Text color of the button.
- results[].
predefined_template_json. buttons[]. style. backgroundColor - Background color of the button.
- results[].
- results[].
predefined_template_json. buttons[]. value - Text of the button.
- results[].
- results[].
- results[].
preview_file - URL of the pop-up's preview image, or
nullif there is none. - results[].
author - ID of the agent who created the pop-up.
- results[].
category - ID of the pop-up's category, or
null. - results[].
folder - ID of the folder the pop-up is in, or
null.
- results[].
note
Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.