On by default

Chat

Get Chat Messages

read-onlyidempotentopen-world
discourse_get_chat_messages

Get messages from a chat channel. Returns JSON object with channel_id, messages array (id, username, created_at, message, edited, thread_id, in_reply_to_id), and meta.

Parameters

channel_idintegerrequired

The chat channel ID

page_sizeinteger[1, 50]

Number of messages to return (default: 50, max: 50)

target_message_idinteger

Message ID to query around or paginate from

directionstringpastfuture

Pagination direction: 'past' for older messages, 'future' for newer

target_datestring

ISO 8601 date string to query messages around