Get the waiting list

GET /chat/waiting-list

Headers

  • X-Popsell-Brand integer Required

    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

Responses

  • 200 application/json

    Returns the waiting list

    Hide response attributes Show response attributes object
    • id_ambassador integer
    • id_user integer
    • id_brand integer
    • id_chat_topic integer
    • content string
    • id_chatroom integer
    • date_handled string(date-time)
    • date_update string(date-time)
    • date_delete string(date-time)
    • source integer
    • id_transferrer integer
    • id_chatroom_transferred integer
    • comment string
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
    • message string
  • 403

    Forbidden - You don't have permission to access this route

GET /chat/waiting-list
curl \
 --request GET 'https://domain.tld/api/v2/chat/waiting-list' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "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,
    "comment": "Comment"
  }
]
Response examples (401)
{
  "message": "Unauthorized."
}