Skip to content

List channel messages

GET
/api/chat/channels/{channelId}/messages

Newest page first by default; pass before (a createdAt cursor from nextCursor) to page backwards. Messages come back oldest-first with reactions collapsed and attachment URLs presigned.

channelId
required
string format: uuid
limit
integer
nullable
before

Created_at cursor (ISO); returns older messages

string

Created_at cursor (ISO); returns older messages

A page of messages

object
ok
required
boolean
data
nullable

Unauthenticated

object
ok
required
boolean
error
required
string
code
string

Forbidden

object
ok
required
boolean
error
required
string
code
string

Channel not found

object
ok
required
boolean
error
required
string
code
string

Server error

object
ok
required
boolean
error
required
string
code
string