This article outlines how to use Poper's API to list all the popups you've created. This could be useful if you want a clear snapshot of all popups.
The process requires a POST request to https://api.poper.ai/general/v1/popup/list.
Prerequisites
You should already have an API key and know how to authenticate it. If you're unfamiliar with this process, please refer to our previous guides to get started.
Listing All Popups
1. Setting up the request: Create a POST request targeting this API endpoint https://api.poper.ai/general/v1/popup/list. In the body of your request, pass your api_key.
2. Body Encoding: Remember to encode your body with x-www-urlencoding to ensure correct interpretation by the server.
Here's an example of a curl request you could use:
curl -X POST https://api.poper.ai/general/v1/popup/list -H 'Content-Type: application/x-www-form-urlencoded' -d 'api_key=YOUR_API_KEY'
Understanding the Response
Upon sending the request, you should receive a response in the following format:
{ "popups":[<array of popups>], }
This response consists of an object with the key named 'popups' containing the details of all the popups you've created.
It's a quick way to get an overview of all the popups on your site, helping you manage and optimize your online marketing efforts.
And there you have it! Now, you can easily list all the popups you've created.