# ThreadView

The ThreadView type of the TypeScript SDK, which threads.get take or answer.

```ts
type ThreadView = {
  canonicalThreadId?: string
  messageCount: number
  messages: MessageMeta[]
  nextCursor?: string
  replyContext: ReplyContext | null
  threadId: string
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `canonicalThreadId` | `string` | Optional. Canonical thread ID if requested ID was merged |
| `messageCount` | `number` | Total count of messages in this conversation |
| `messages` | [`MessageMeta[]`](/docs/sdks/typescript/types/message-meta) | List of messages in this thread in chronological order |
| `nextCursor` | `string` | Optional. Pagination cursor for next page of messages |
| `replyContext` | [`ReplyContext`](/docs/sdks/typescript/types/reply-context) \| `null` | Pre-computed context for replying to this thread |
| `threadId` | `string` | Canonical conversation thread identifier (ULID) |

## Used by

| Method | What it does |
| --- | --- |
| [`threads.get`](/docs/sdks/typescript/threads/get) | Get a conversation thread |
