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

Timestamp cursor (ISO 8601); returns messages older than it

string

Timestamp cursor (ISO 8601); returns messages older than it

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