Skip to main content

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:
The first time a user creates a thread, their threads folder is automatically set up.

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

By default, this returns the user’s conversation threads.

Update a thread

Delete a thread

Only conversation threads can be deleted, and only by the user who created them.

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) — Use before (a timestamp) and limit to page through messages. Stable even when new messages arrive during pagination.
Offset-based — Use offset and limit for simple pagination.

API reference

Thread endpoints

Message endpoints