For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
PlaygroundDiscordStatusDashboardSign Up >
DocumentationSDK ReferenceGraphiti
DocumentationSDK ReferenceGraphiti
  • SDK Reference
      • GETGet threads
      • POSTStart a new thread.
      • DELDelete thread
      • GETGet user context
      • GETGet messages of a thread
      • POSTAdd messages to a thread
      • POSTAdd messages to a thread in batch
      • GETGet thread summary
LogoLogo
PlaygroundDiscordStatusDashboardSign Up >
SDK ReferenceThread

Get threads

GET
https://api.getzep.com/api/v2/threads
GET
/api/v2/threads
1from zep_cloud import Zep
2
3client = Zep(
4 api_key="YOUR_API_KEY",
5)
6client.thread.list_all(
7 page_number=1,
8 page_size=1,
9 order_by="order_by",
10 asc=True,
11)
1{
2 "response_count": 1,
3 "threads": [
4 {
5 "created_at": "string",
6 "project_uuid": "string",
7 "thread_id": "string",
8 "user_id": "string",
9 "uuid": "string"
10 }
11 ],
12 "total_count": 1
13}
Returns all threads.
Was this page helpful?

Start a new thread.

Next
Built with

Query parameters

page_numberintegerOptional
Page number for pagination, starting from 1
page_sizeintegerOptional
Number of threads to retrieve per page.
order_bystringOptional

Field to order the results by: created_at, updated_at, user_id, thread_id.

ascbooleanOptional

Order direction: true for ascending, false for descending.

Response

List of threads
response_countinteger
threadslist of objects
total_countinteger

Errors

400
Bad Request Error
500
Internal Server Error