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

# List Agents

> List every assistant in your workspace

## Overview

Returns every assistant (agent) in the workspace, newest first, including where each one stands against the template it was built from.

Operation name: `agent.list`.

## Authorization

**x-api-key** `string` *required*

Your Composer API key

## Headers

**Content-Type** `string` *required*

Must be set to application/json

## Body

No fields. Send an empty JSON object.

```json Example Request theme={null}
{}
```

***

## Response

**agents** `array`

The assistants, newest first. Each has `id`, `slug`, `display_name`, `config`, `created_at` and `template`.

**agents\[].template** `object | null`

`{ name, version, current_version, behind, onboarding }`. `behind` is true when a template upgrade is waiting. Null for an assistant built from no template.

```json Example Success Response theme={null}
{
  "agents": [
    {
      "id": "0b6f6f0e-2c1a-4c55-9d2a-6b8f1d1f2a10",
      "slug": "my-assistant",
      "display_name": "Iris",
      "config": {},
      "created_at": "2026-11-20T15:04:05Z",
      "template": {
        "name": "Core Assistant",
        "version": 12,
        "current_version": 12,
        "behind": false,
        "onboarding": null
      }
    }
  ]
}
```

***

## Example cURL

```bash cURL theme={null}
curl --request POST 'https://composer.personal.ai/lab/api/v1/op/agent.list' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{}'
```

***

## Error Codes

| Code | Description |
| - | - |
| 400 | The body doesn't match the fields above, or the operation failed. The response body says why. |
| 401 | Missing or invalid API key |
| 403 | This key isn't allowed to call this operation |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.