square-listGet All Lists

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.


Last updated