users-rectangleGet All Customer Groups

Retrieve a complete list of all customer groups available in your SenderWiz account.

πŸ“‹ Get All Customer Groups

Fetch and display the full list of customer groups created in your SenderWiz account, including group names, customer counts, and timestamps.


πŸ”Ή HTTP Request

GET ADMIN-API-URL/groups

πŸ”Έ Query Parameters

Parameter
Default
Description

page

1

Current page to retrieve.

per_page

10

Number of records per page.


πŸ” Authorization Header

X-ADMIN-API-KEY: your-admin-api-key-here

πŸ’» PHP Example

// GET ALL CUSTOMER GROUPS
$response = $endpoint->getCustomerGroups($pageNumber = 1, $perPage = 10);

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';

πŸ“¦ Sample JSON Response


Last updated