---
title: "The published agent directory"
---

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

# The published agent directory

Path: CloudRaker Workspace API › Workspace Agents

`GET /workspace/agents`

The agents a member can actually mention in a session: PUBLISHED and non-archived only. **Authorization:** any authenticated member; a `private` agent is listed only for its owner, which `work-sessions` scopes by the relayed identity. `limit` is 1-200 (default 100) and `cursor` takes the previous page’s `nextCursor`. Both are ENFORCED: a `limit` outside 1-200 or a non-numeric one is 400 `validation_failed`, never a quietly defaulted page (R8-05).

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `limit` (`listWorkspaceAgents.query.limit`; integer, optional) — Page size, 1-200 (default 100).
  - min 1; max 200; example `100`
- `cursor` (`listWorkspaceAgents.query.cursor`; string, optional) — The previous page’s `nextCursor` — `<ISO-8601 timestamp>|<row id>` (a bare timestamp is still accepted). Anything else is 400 `validation_failed`.

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.cloudraker.com/workspace/agents \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/workspace/agents';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/workspace/agents"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

One page of published agents.

#### Example

```json
{
  "data": [
    {
      "id": "string",
      "handle": "string",
      "name": "string",
      "role": "string",
      "publishedVersionId": "string",
      "workPolicy": {
        "harness": "auto",
        "spaces": {
          "mode": "any",
          "spaceTypes": [
            "string"
          ],
          "spaceIds": [
            "string"
          ]
        },
        "handoffs": {
          "mode": "none",
          "agentIds": [
            "string"
          ]
        }
      },
      "property1": null,
      "property2": null
    }
  ],
  "nextCursor": "string"
}
```

- `data` (`listWorkspaceAgents.response.200.data`; array<object>, required)
  - `id` (`listWorkspaceAgents.response.200.data.id`; string, required)
  - `handle` (`listWorkspaceAgents.response.200.data.handle`; string, required)
  - `name` (`listWorkspaceAgents.response.200.data.name`; string, required)
  - `role` (`listWorkspaceAgents.response.200.data.role`; string, required)
  - `publishedVersionId` (`listWorkspaceAgents.response.200.data.publishedVersionId`; string | null, required)
  - `workPolicy` (`listWorkspaceAgents.response.200.data.workPolicy`; any of, required)
    - any of: `WorkspaceAgentWorkPolicy`, `null`
- `nextCursor` (`listWorkspaceAgents.response.200.nextCursor`; string | null, required)

### 400

`validation_failed` — a `limit` outside 1-200.


Source: https://docs.cloudraker.com/workspace/api/workspace-agents/list-workspace-agents/index.md
