List Colleagues API
API for listing colleagues (potential invitees) for a user within a client organization.
GET /v1/colleagues-list
This endpoint is used to retrieve a list of colleagues associated with a specific user.
When it is called, it will return all colleagues that have been created for the specified user and are available for invitation.
Endpoint URL
The endpoint URL is https://api.wazper.com/v1/colleagues-list
HTTP Method
GET
Headers
Header | Type | Required | Description |
---|---|---|---|
X-API-Key | String | Yes | Your Wazper API Key. |
Accept | String | No | Recommended application/json . |
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
email | String | Yes | The email address of the user whose colleagues you want to retrieve. |
Example Request (cURL)
Success Response (200 OK)
The response contains an array of colleague objects, sorted with joined colleagues first, then by photo presence, and finally by creation date.
Error Responses
-
400 Bad Request - Email Parameter Missing:
-
400 Bad Request - API Key Not Linked:
-
401 Unauthorized - API Key Required:
-
401 Unauthorized - Invalid API Key:
-
403 Forbidden - Waz Disabled:
-
500 Internal Server Error:
Notes
- This API does not consume credits from your account.
- Results are limited to 50 colleagues maximum.
- Colleagues with “deleted” status are excluded from the results.
- The list is sorted to show joined colleagues first, then colleagues with photos, and finally by newest creation date.
Authorizations
Query Parameters
The email address of the user whose colleagues are to be listed.
Response
A list of colleagues.
The response is of type object[]
.