Headers
-
The id of the target brand
Query parameters
-
filter[id_user] integer
Filter the waiting list by ambassador id
-
filter[date_handled] string
Filter the waiting list by date handled
-
filter[id_chat_topic] integer
Filter the waiting list by id chat topic
GET /chat/waiting-list
curl \
-X GET https://domain.tld/api/v2/chat/waiting-list \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "X-Popsell-Brand: 3"
Response examples (200)
[
{
"id_ambassador": 1,
"id_user": 1,
"id_brand": 1,
"id_chat_topic": 1,
"content": "Help me",
"id_chatroom": 1,
"date_handled": "2020-01-01T00:00:00Z",
"date_update": "2020-01-01T00:00:00Z",
"date_delete": "2020-01-01T00:00:00Z",
"source": 1,
"id_transferrer": 1,
"id_chatroom_transferred": 1
}
]
Response examples (401)
{
"message": "Unauthorized."
}