Skip to main content

List chatroom messages

GET 

/bv/chatroom/v1/chatrooms/messages

List messages in the chatroom.

The default without any query parameters will retrieve 100 messages from the latest to the oldest, and can continue to retrieve the next 100 messages by providing the before_at query parameter which can assign the received_at value of the first message from the previous response. If the response returns an empty array, it means there is no more message.

It can also retrieve the messages in different directions: from oldest to latest by providing the from_oldest=true, and continue to retrieve the next 100 messages by providing the after_at query parameter which can assign the received_at value of the last message from the previous response. If the response returns an empty array, it means there is no more message.

Authorization requires the chatroom token in the header.

Request

Responses

A successful response.