Headers
-
The id of the target brand
Query parameters
-
sort string
Sort chatrooms by one of the following fields
Value is
last_action_date
. -
filter[brand_tag] integer
retrieve ambassadors by brand tag id
-
filter[name] string
retrieve ambassadors by first name, last name or username
-
filter[status] integer
Filter by ambassador status (0: ambassador, 1: employee, 2: administrator, 3: seller, 4: shop manager, 5: manager, 6: expert, 7: client, 8: temp) ex: ?filter[status]=7,8 will return ambassadors with status client or temp
Values are
0
,1
,2
,3
,4
,5
,6
,7
, or8
. -
filter[exclude] integer
Exclude ambassadors by id
GET /chat/ambassadors
curl \
-X GET https://domain.tld/api/v2/chat/ambassadors \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "X-Popsell-Brand: 3"
Response examples (200)
{
"current_page": 42,
"data": [
{
"id_ambassador": 42,
"image": "string",
"firstname": "string",
"lastname": "string",
"username": "string",
"email": "string",
"email_tmp": "string",
"active": 42,
"status": 42,
"online": true,
"last_action_date": "2024-05-04T09:42:00+00:00",
"customer_id": "string",
"anonymized": true
}
],
"first_page_url": "string",
"from": 42,
"last_page": 42,
"last_page_url": "string",
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"next_page_url": "string",
"path": "string",
"per_page": 42,
"prev_page_url": "string",
"to": 42,
"total": 42
}
Response examples (401)
{
"message": "Unauthorized."
}