Skip to Content

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

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

Fields

FieldTypeDescription
canonicalThreadIdstringOptional. Canonical thread ID if requested ID was merged
messageCountnumberTotal count of messages in this conversation
messagesMessageMeta[]List of messages in this thread in chronological order
nextCursorstringOptional. Pagination cursor for next page of messages
replyContextReplyContext | nullPre-computed context for replying to this thread
threadIdstringCanonical conversation thread identifier (ULID)

Used by

MethodWhat it does
threads.getGet a conversation thread

On this page