SDK method
threads.history
Chronological exchange, metadata by default. Request view: "full" to read bodies.
Signature
ts
history(input: ThreadHistoryInput): Promise<ThreadHistoryPage | null>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | — |
view | "compact" | "full" | no | — |
cursor | string | no | — |
limit | number | no | — |
bodyLimit | number | no | Per-message and shared page limits, in Unicode code points. |
bodyBudget | number | no | — |
Returns
Promise<ThreadHistoryPage | null>