Get Thread Messages

rocketchat.get_thread_messages
ActionChat & messagingconnection required

Calls the Rocket.Chat API with the connection's credentials.

Read the replies under one thread's parent message.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Rocket.Chat
Secret shape
the personal access token, or {"token": "…", "user_id": "…"}
Config it needs
base_url, user_id
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
tmid
The id of the message that starts the thread.
stringYes———
count
How many messages to return. Rocket.Chat caps this at the workspace's API_Upper_Count_Limit setting.
numberNo50≥ 1—
offset
How many messages to skip before this page.
numberNo0≥ 0—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "count": 50,
  "offset": 0
}

Output

One shape.

result

FieldTypeExample
messages
The matching messages, as Rocket.Chat returned them.
array—
count
How many messages this page carries.
number—
offset
The offset this page started at, when the endpoint reports one.
number—
total
Total matches, when the endpoint reports one.
number—
{
  "count": 0,
  "messages": [],
  "offset": 0,
  "total": 0
}

See Get Thread Messages run in a workflow.

In a technical demo we add the Rocket.Chat connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.