GET /api/organizations/users.php
Request query parameters
Parameter | Value |
limit | Limits number of records to return per request. Can have maximum value of 250. Default value: 250 |
page | Defines record set offset. For example, having value of 2 will return records from (including) 501-750. Default value: 0 |
Example request
$username = 'YOUR_USERNAME'; $password = 'YOUR_PASSWORD'; $location = 'https://<alamdomeen>.sendsmaily.net/api/organizations/users.php'; $query = array( 'page' => 0, 'limit' => 250, ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $location . ? . http_build_query($query)); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); $result = curl_exec($ch); curl_close($ch);
Example response
[ { "id": 1, "email": "example@example.emailaddress", "first_name": "Example", "last_name": "Example", "is_owner": false, "role": { "id": 1, "name": "Editor" } }, { "id": 2, "email": "another@example.emailaddress", "first_name": "Another", "last_name": "Example", "is_owner": true, "role": { "id": 3, "name": "Reseller" } } ]