# listThreads

> **Method** in `langsmith`

📖 [View in docs](https://reference.langchain.com/javascript/langsmith/client/Client/listThreads)

## Signature

```javascript
listThreads(props: ListThreadsParams): Promise<ListThreadsItem[]>
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `props` | `ListThreadsParams` | Yes |  |

## Returns

`Promise<ListThreadsItem[]>`

## ⚠️ Deprecated

Use `client.threads.query()` instead. See https://docs.langchain.com/langsmith/smithdb-sdk-migration#threads-query for the migration guide. Will be removed after Jan 31, 2027.

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/3f9fe09d8e0698d65aa8bb63ac3316dfcb2ca947/js/src/client.ts#L3634)