---
title: "List the org 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.

# List the org agent directory

Path: CloudRaker Workspace API › Workspace Agents

`GET /agents`

Lists the paperwork agents this organization owns, one keyset page at a time, newest-updated first. Authorization: any authenticated org member (session + tenant context only, no admin required). Optional query `status` is one of `all` | `published` | `draft` (default `all`); any other value is ignored and the default applies. Optional `includeArchived=true` adds archived agents. A `private` agent is listed only for its owner; it is absent from every other member's directory. Paging: `limit` is 1-200 (default 100), and `cursor` takes the previous response's `nextCursor` — an opaque string the caller never parses; an out-of-range or non-numeric `limit` falls back to the default instead of failing. Response is `{ data: Agent[], nextCursor }` and `nextCursor` is null on the last page. Each Agent carries its id, handle, name, role, avatar, visibility, `publishedVersionId` (the `agv_` id runs are started with), `draftVersionId` and `sourcePlaybookId`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `status` (`listOrgAgentDirectory.query.status`; string, optional) — Filter by lifecycle state.
  - one of `"all"`, `"published"`, `"draft"`; default `"all"`
- `includeArchived` (`listOrgAgentDirectory.query.includeArchived`; string, optional) — Include archived agents.
  - one of `"true"`, `"false"`; default `"false"`
- `limit` (`listOrgAgentDirectory.query.limit`; integer, optional) — Agents per page.
  - min 1; max 200; default `100`
- `cursor` (`listOrgAgentDirectory.query.cursor`; string, optional) — The previous page's `nextCursor`.

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/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/agents"

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

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

print(response.text)
```

## Responses

### 200

One page of org agents.

#### Example

```json
{
  "data": [
    {
      "id": "string",
      "handle": "string",
      "name": "string",
      "role": "string",
      "avatar": {
        "kind": "initials",
        "color": "string"
      },
      "visibility": "org",
      "ownerUserId": "string",
      "publishedVersionId": "string",
      "documentAgent": true,
      "draftVersionId": "string",
      "emailTriggerId": "string",
      "sourcePlaybookId": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "archivedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "nextCursor": "string"
}
```

- `data` (`listOrgAgentDirectory.response.200.data`; array<object>, required)
  - `id` (`listOrgAgentDirectory.response.200.data.id`; string, required)
  - `handle` (`listOrgAgentDirectory.response.200.data.handle`; string, required) — Unique per org, derived from the name when not given (`mike`, `mike-2`, …).
  - `name` (`listOrgAgentDirectory.response.200.data.name`; string, required)
  - `role` (`listOrgAgentDirectory.response.200.data.role`; string, required)
  - `avatar` (`listOrgAgentDirectory.response.200.data.avatar`; object, required)
    - `kind` (`listOrgAgentDirectory.response.200.data.avatar.kind`; string, required)
      - one of `"initials"`, `"generated"`
    - `color` (`listOrgAgentDirectory.response.200.data.avatar.color`; string, optional)
      - pattern `^#[0-9a-fA-F]{6}$`
  - `visibility` (`listOrgAgentDirectory.response.200.data.visibility`; string, required)
    - one of `"org"`, `"private"`
  - `ownerUserId` (`listOrgAgentDirectory.response.200.data.ownerUserId`; string, required)
  - `publishedVersionId` (`listOrgAgentDirectory.response.200.data.publishedVersionId`; string | null, required) — The `agv_` id a run is started with. Null until the agent is published.
  - `draftVersionId` (`listOrgAgentDirectory.response.200.data.draftVersionId`; string, required)
  - `emailTriggerId` (`listOrgAgentDirectory.response.200.data.emailTriggerId`; string | null, required)
  - `sourcePlaybookId` (`listOrgAgentDirectory.response.200.data.sourcePlaybookId`; string | null, required) — Set on agents created by the playbook migration; null otherwise.
  - `createdAt` (`listOrgAgentDirectory.response.200.data.createdAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `updatedAt` (`listOrgAgentDirectory.response.200.data.updatedAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `createdBy` (`listOrgAgentDirectory.response.200.data.createdBy`; string, required)
  - `archivedAt` (`listOrgAgentDirectory.response.200.data.archivedAt`; any of, required)
    - any of: `string`, `null`
  - `documentAgent` (`listOrgAgentDirectory.response.200.data.documentAgent`; boolean, optional)
- `nextCursor` (`listOrgAgentDirectory.response.200.nextCursor`; string | null, required) — Pass back as `cursor` for the next page — opaque, never parsed. Null on the last page.


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