Retrieve a paginated list of all subscriber lists associated with your SenderWiz account using this endpoint. Useful for managing and referencing available list records.
📋 Get All Lists
Retrieve all available subscriber lists associated with your account.
🔹 HTTP Request
GET API-URL/lists
🔸 Query Parameters
Parameter
Default
Description
page
1
Current page number to retrieve.
per_page
10
Number of items per page to return.
🔐 Authorization Header
Include your customer API key:
X-API-KEY: your-api-key-here
💻 PHP Example
// GET ALL ITEMS
$response = $endpoint->getLists($pageNumber = 1, $perPage = 10);
// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';
📦 Sample JSON Response
Returns a JSON array of list objects including metadata such as list ID, name, and creation details.