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

# List Agents

> Get a list of agents in a workspace

# List Agents

Returns the list of agents belonging to the workspace associated with your API key.

## Request

```
GET /api/v1/agent/list
```

### Headers

| Header          | Required | Description                           |
| --------------- | -------- | ------------------------------------- |
| `Authorization` | Yes      | API key in `Bearer snorbe_...` format |

<Note>
  The workspace is automatically resolved from your API key. No parameters required.
</Note>

## Response

```json theme={null}
[
  {
    "id": "clxxx123456",
    "name": "Research Agent",
    "isDefault": true,
    "createdAt": "2026-01-15T10:30:00.000Z",
    "updatedAt": "2026-03-20T14:22:00.000Z"
  },
  {
    "id": "clxxx789012",
    "name": "Patent Analyst",
    "isDefault": false,
    "createdAt": "2026-02-10T08:00:00.000Z",
    "updatedAt": "2026-02-10T08:00:00.000Z"
  }
]
```

### Response Fields

| Field       | Type      | Description                       |
| ----------- | --------- | --------------------------------- |
| `id`        | `string`  | Agent ID                          |
| `name`      | `string`  | Agent name                        |
| `isDefault` | `boolean` | Whether this is the default agent |
| `createdAt` | `string`  | Creation timestamp (ISO 8601)     |
| `updatedAt` | `string`  | Last update timestamp (ISO 8601)  |

## Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://app.snorbe.deskrex.ai/api/v1/agent/list" \
    -H "Authorization: Bearer snorbe_your_api_key_here"
  ```

  ```python Python theme={null}
  import requests

  resp = requests.get(
      "https://app.snorbe.deskrex.ai/api/v1/agent/list",
      headers={"Authorization": "Bearer snorbe_your_api_key_here"},
  )
  agents = resp.json()
  for agent in agents:
      print(f"{agent['name']} (default: {agent['isDefault']})")
  ```

  ```typescript TypeScript theme={null}
  const resp = await fetch("https://app.snorbe.deskrex.ai/api/v1/agent/list", {
    headers: { Authorization: "Bearer snorbe_your_api_key_here" },
  });
  const agents = await resp.json();
  for (const agent of agents) {
    console.log(`${agent.name} (default: ${agent.isDefault})`);
  }
  ```
</CodeGroup>

## Error Responses

| HTTP Status | Code                | Description                          |
| ----------- | ------------------- | ------------------------------------ |
| 401         | `UNAUTHORIZED`      | Invalid, expired, or missing API key |
| 429         | `TOO_MANY_REQUESTS` | Rate limit exceeded                  |
