---
title: "List agent threads"
method: GET
path: "/v2/agent/threads"
tags: ["agent"]
---

# List agent threads

`GET /v2/agent/threads`

## Request

- Base URL: `https://api.cardog.app`
- URL: `https://api.cardog.app/v2/agent/threads`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Your conversations (threads) with the agent, most recently active first. Without a grant header you get your personal history. To read an organization workspace's history, send a session token from `POST /v2/agent/session` in the `X-Cardog-Agent-Grant` header; the token must have been created for you, or the call is a 401.

An anonymous session, an organization API key and a server token have no history (403). Costs 0 credits.

## Query parameters

- `q` string

## Headers

- `X-Cardog-Agent-Grant` string

## Response `200`

Threads, most recently active first

- AgentThreadList
  - `data` object[], required: The chats, most recently active first
    - `id` string, required: The thread ID
    - `name` string, nullable, required: The name the agent gave the chat, e.g. "Recalls on a 2021 RAV4". Null until it has one.
    - `lastMessage` string, nullable, required: A preview of the newest message. Null when there is none.
    - `createdAt` string, date-time, required: When the thread was opened, ISO 8601
    - `updatedAt` string, date-time, required: When the thread last changed, ISO 8601
    - `lastMessageAt` string, date-time, nullable, required: When the newest message was added, ISO 8601. Null when there is none.
    - `links` object, required: `messages`: this thread's messages.
  - `links` object, required: `self`: this endpoint.

## Other responses

- `400`: The request is invalid. The error response names each bad value in `refs` or `details` and, where it can, suggests the nearest valid ref in `suggestions`. We never fall back to a fuzzy match.
- `401`: No valid API key or session
- `403`: Your credential cannot use this endpoint (`forbidden`)
- `429`: Per-minute rate limit exceeded
- `500`: Internal error
- `503`: Temporarily unavailable (`unavailable`); retry with backoff

## Changes

- **2026-11-04** `0b43ff0bb604`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cardog/apis/cardog-api-v2/changes/v2/agent/threads/get.md)

---

[API](https://skmtc.dev/cardog/apis/cardog-api-v2.md) - [All operations](https://skmtc.dev/cardog/apis/cardog-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/cardog/apis/cardog-api-v2/revisions/016058226dc5?raw)
