GET/ form/ :form-key/
Get single pop-up
You can return details about your pop-up.
To access a single pop-up you need a 36 character form key, that can be found when listing all pop-ups.
Request
- cURL
- JavaScript
- PHP
- Python
curl -X GET "https://<your_app_subdomain>.user.com/api/public/form/:form-key/" \
-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/:form-key/",
{
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/:form-key/",
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/:form-key/",
headers={
"Authorization": "Token <your_64_char_api_key>",
"Accept": "*/*; version=2",
},
)
print(response.json())
Response examples
- 200 OK
- 404 Not Found
{"key": "g7lvoickax9e","statistics": {"id": 44,"ctr": "0.00","shown_counter": 0,"submit_counter": 0,"form": "8c22a7ee-cec3-47e7-b4c8-35fba1037571"},"name": "Spring sale banner","description": "Shown on the home page.","created_at": "2026-11-10T09:33:09.915734Z","updated_at": "2026-11-10T09:33:09.915756Z","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}{
"detail": "No Form matches the given query."
}
Response fields
Fields returned in the 200 OK response body.
- key
- Unique key of the pop-up.
- statistics
- How often the pop-up was shown and submitted.
- statistics.
id - ID of the statistics record.
- 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. - statistics.
shown_counter - Number of times the pop-up was shown.
- statistics.
submit_counter - Number of times the pop-up's form was submitted.
- statistics.
form - Key of the pop-up these statistics belong to.
- statistics.
- name
- Name of the pop-up.
- description
- Description of the pop-up; an empty string if it has none.
- created_at
- When the pop-up was created, ISO 8601.
- updated_at
- When the pop-up was last updated, ISO 8601.
- content
- HTML content of the pop-up.
- preview
- Older preview image field that the panel no longer fills; the current preview is in
preview_file. - 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. - preview_file
- URL of the pop-up's preview image, or
nullif there is none. - author
- ID of the agent who created the pop-up.
- category
- ID of the pop-up's category, or
null. - folder
- ID of the folder the pop-up is in, or
null.
note
Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.