Overview
A thread is a conversation container that holds an ordered sequence of messages. You can use threads for general Q&A, document-specific discussions, or branching side conversations. Threads and messages are part of the path system, so they integrate naturally with the rest of your knowledge base — including permissions, navigation, and organization.Thread types
Conversation threads
General-purpose threads for open-ended conversations. These live in a user’s personal workspace:Asset-specific threads
Threads anchored to a specific document or section. Use these when you want the conversation to be “about” a particular piece of content:Subthreads
Any thread can have subthreads — useful for sidebar conversations, brainstorming, or exploring a tangent without cluttering the main thread.Working with threads
Create a thread
List threads
Update a thread
Delete a thread
Working with messages
Messages are append-only — once sent, they cannot be edited or deleted. Each message has a role (USER, ASSISTANT, or SYSTEM) and structured content.
Send a message
Get a specific message
List messages
Messages support two pagination modes: Cursor-based (recommended for chat UIs) — Usebefore (a timestamp) and limit to page through messages. Stable even when new messages arrive during pagination.
offset and limit for simple pagination.
