> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shinzo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Agents

> Retrieve a list of all your AI agents.

## Authentication

Requires JWT token or Platform API key via `Authorization: Bearer <token>` header.

<ParamField query="page" type="number" default="1">Page number (min: 1)</ParamField>
<ParamField query="limit" type="number" default="20">Results per page (1-100)</ParamField>
<ParamField query="status" type="string">Filter by status: `active`, `paused`, `stopped`, or `error`</ParamField>
<ParamField query="sort" type="string" default="created_at">Sort field: `created_at`, `updated_at`, or `name`</ParamField>
<ParamField query="order" type="string" default="desc">Sort order: `asc` or `desc`</ParamField>

## Example Request

```bash theme={null}
curl -X GET "https://api.app.shinzo.ai/v1/agent/list?limit=10&status=active" \
  -H "Authorization: Bearer <token>"
```

## Example Response

```json theme={null}
{
  "agents": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "name": "code-review-agent",
      "description": "Agent for automated code reviews",
      "status": "active",
      "created_at": "2025-01-15T10:00:00Z",
      "updated_at": "2025-01-18T14:30:00Z",
      "message_count": 45,
      "mcp_server_count": 2
    },
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "name": "data-analysis-agent",
      "description": "Agent for data analysis tasks",
      "status": "paused",
      "created_at": "2025-01-10T08:00:00Z",
      "updated_at": "2025-01-12T09:15:00Z",
      "message_count": 12,
      "mcp_server_count": 0
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 2,
    "total_pages": 1
  }
}
```

## Status Codes

| Code  | Description                                      |
| ----- | ------------------------------------------------ |
| `200` | Success                                          |
| `401` | Unauthorized - invalid or missing authentication |
| `403` | AI Agents feature not enabled for your account   |
