---
title: "List Agents"
method: GET
path: "/api/v2/agents"
tags: ["Sessions & Agents"]
---

# List Agents

`GET /api/v2/agents`

## Request

- The document declares no server URL.
- Auth: none declared

List all agents for this Moorcheh account

Returns agents sorted by creation date (newest first). The ``memory_count``
of each agent is populated with the live document count from its Moorcheh
namespace rather than the stale value in local metadata.

## Query parameters

- `include_counts` boolean: Whether to fetch live memory counts from Moorcheh (slow for many namespaces)

## Headers

- `authorization` string, nullable
- `X-Api-Key` string, nullable

## Response `200`

Successful Response

- AgentList: List of agents
  - `agents` AgentInfo[], required
    - `agent_id` string, required
    - `namespace` string, required
    - `pattern` 'support' | 'project' | 'tool', required: Agent pattern types for memory organization
    - `description` string, nullable
    - `created_at` string, date-time, required
    - `last_session` string, date-time, nullable
    - `memory_count` integer
    - `session_count` integer
    - `status` string
  - `count` integer, required
  - `warnings` string[]

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-29** `3311c5bff1f7`: 1 info
  - added the new optional `query` request parameter `include_counts`
- **2026-07-31** `e0a6984c84a3`: 1 info
  - added the optional property `warnings` to the response with the `200` status
- **2026-07-31** `c896819232b5`: 1 warning
  - removed the optional property `warnings` from the response with the `200` status
- **2026-07-30** `3d26c2ab4933`: 1 info
  - added the optional property `warnings` to the response with the `200` status
- **2026-07-14** `51ea5daee7e4`: 3 info
  - added the new optional `header` request parameter `X-Api-Key`
  - added the new optional `header` request parameter `authorization`
  - added the non-success response with the status `422`

[Operation history](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/changes/api/v2/agents/get.md)

---

[API](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love.md) - [All operations](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/llms.txt) - [OpenAPI document](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/revisions/ef842776283e?raw)
