> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-beta.getzep.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-beta.getzep.com/_mcp/server.

# List threads

GET https://api.getzep.com/api/v4/threads

Reference: https://docs-beta.getzep.com/sdk-reference/thread/list

## Authentication

- `Authorization` header (required) (prefixed with ` Api-Key  `) — Type "Api-Key" followed by a space and the project API key.

## Request

### Query parameters

- `limit` (integer, optional) — Page size
- `cursor` (string, optional) — Opaque page cursor
- `order_by` (enum, optional) — Sort field
  - Allowed values: `created_at`, `updated_at`, `uuid`
- `order` (enum, optional) — asc or desc
  - Allowed values: `asc`, `desc`
- `user_uuid` (string, optional) — Filter by user UUID

## Response

### 200

OK

- `items` (list of v4.Thread, optional) — The threads on this page.
- `next_cursor` (string, optional) — The cursor to pass as the next request's cursor to fetch the following page; absent when no further pages remain.
- `total_size` (integer, optional) — The total number of matching threads, counted at the time of this response. It does not indicate whether more pages remain.

## Errors

### 400 Bad Request Error

Bad Request

- `error` (v4.ErrorBody, optional)

### 401 Unauthorized Error

Unauthorized

- `error` (v4.ErrorBody, optional)

### 404 Not Found Error

Not Found

- `error` (v4.ErrorBody, optional)

## Types

### v4.Thread

- `created_at` (string, optional) — The time the thread was created.
- `graph_uuid` (string, optional) — The unique identifier of the owning user's graph.
- `thread_id` (string, optional) — The developer-assigned identifier of the thread.
- `updated_at` (string, optional) — The time the thread was last updated.
- `user_uuid` (string, optional) — The unique identifier of the user the thread belongs to.
- `uuid` (string, optional) — The unique identifier of the thread.

### v4.ErrorBody

- `code` (string, optional)
- `details` (map from string to any, optional)
- `message` (string, optional)
- `param` (string, optional)
- `request_id` (string, optional)

## Examples

**Response**

```json
{
  "items": [
    {
      "created_at": "string",
      "graph_uuid": "string",
      "thread_id": "string",
      "updated_at": "string",
      "user_uuid": "string",
      "uuid": "string"
    }
  ],
  "next_cursor": "string",
  "total_size": 1
}
```