Skip to main content
GET
List room messages

Authorizations

Authorization
string
header
default:cr_sk_your_key_here
required

Account API key from Developer Console. Keys start with cr_sk_.

Path Parameters

room_id
string<uuid>
required

Room id. An id you cannot see answers ROOM_NOT_FOUND, like an unknown one.

Query Parameters

before
integer
Required range: x >= 0
after
integer
Required range: x >= 0
around
integer
Required range: x >= 0
limit
integer
default:50
Required range: 1 <= x <= 100
root
integer

A top-level message's seq; page its replies instead of the room. messages then holds only the replies, and the page's root is the top-level message. Any other seq is 400 ROOM_REPLY_ROOT_INVALID.

Required range: x >= 0
channel
string

Keep the page to one channel: an id from GET /v1/rooms/{room_id}/channels, or general, in any case. Absent pages every channel. An after page and a root page ignore it, unknown ids included; an around page pages the channel of the message it is around. On a page that uses it, an id the room does not have is 404 ROOM_CHANNEL_NOT_FOUND.

Response

A page of messages.

messages
object[]
required
updated
object[]
required

Messages outside this page that an edit or delete inside it changed.

cursor_seq
integer
required

Continue an after catch-up from here.

has_more_before
boolean
required
has_more_after
boolean
required
last_seq
integer
required
root
object

With the root query, the top-level message whose replies messages holds.