Query parameters
-
Sort the chatrooms by last_message_date (-last_message_date: descending, last_message_date: ascending)
Values are
id_chatroom,date_insert,last_message_date, orlast_rating. -
Filter the chatrooms by type_chatroom (0: one to one , 7: one to many)
Values are
0or7. -
Filter the chatrooms by type_discussion(0: between members, 1: between external, 2: between members and external)
Values are
0,1, or2. -
Filter the chatrooms by source
Values are
hot_list,waiting_list, ordirect. -
established : chatrooms with at least two authors, not established : chatrooms with only one author
Values are
establishedornot_established. -
Filter the chatrooms by their last_rating
Values are
not_rated,0,1,2,3,4, or5. -
Filter the chatrooms by having messages posted by the ambassador
-
page number
-
number of items per page
curl \
--request GET 'https://domain.tld/api/v2/manager/chatrooms' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"current_page": 42,
"data": [
{}
],
"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
}
{
"message": "Unauthorized."
}