List Threads
twist.get_threads
ActionChat & messagingconnection required
Calls the Twist API with the connection's credentials.
Read a page of the threads in a channel.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Twist
- Secret shape
- {"access_token": "…"} — the token Twist's OAuth2 flow returns
- Config it needs
- workspace_id, channel_id
- Resolved by
- config.connection_id, else node.connection_id
Configuration
7 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
channel_id Channel to act in; overrides the default channel set on the connection. | string | No | — | — | 6984 |
limit How many records to return; Twist defaults to 20 and allows at most 500. | number | No | 20 | 1–500 | — |
filter_by Whether to return every thread or only the ones you are attached to. | string | No | everyone | one of "everyone", "attached_to_me" | — |
order_by Sort direction: newest first, or oldest first. | string | No | desc | one of "desc", "asc" | — |
newer_than_ts Only return records posted after this Unix timestamp, in seconds. | number | No | — | ≥ 0 | — |
older_than_ts Only return records posted before this Unix timestamp, in seconds. | number | No | — | ≥ 0 | — |
workspace_id Workspace to scope the listing to; overrides the connection's default. | string | No | — | — | 5517 |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"channel_id": "6984",
"filter_by": "everyone",
"limit": 20,
"order_by": "desc",
"workspace_id": "5517"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
items The records Twist returned, newest first. | array | — |
count How many records this page carried. | number | — |
channel_id The channel the threads were read from. | number | — |
{
"channel_id": 0,
"count": 0,
"items": []
}See List Threads run in a workflow.
In a technical demo we add the Twist connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.