---
title: "List agents"
---

> 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 agents

Path: CloudRaker Paperwork API › Agents

`GET /v1/agents`

Lists the agents your organization can run.

An agent is a reviewed, versioned automation: a list of steps, some done by the agent itself and some by a person, plus the saved actions it may take and where a human sign-off is required. Only active agents appear here.

Each entry carries:

| Field | What it tells you |
| --- | --- |
| `tasks[]` | The step ledger — `executor: "human"` marks the ones a person completes |
| `actions[]` | What the agent may do, and its `approval` gate |
| `version` | The revision a new run will snapshot |

Start one with [POST /v1/agent-runs](https://docs.cloudraker.com/paperwork/api/agents/create-agent-run).

> **Note:** An agent's `id` is opaque — treat it as a string and do not parse it.

    **Learn more:** [Agents guide](/paperwork/capabilities/agents)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The agents.

#### Example

```json
{
  "object": "list",
  "data": [
    {
      "object": "agent",
      "id": "string",
      "name": "string",
      "description": "string",
      "version": 0,
      "tasks": [
        {
          "id": "task-1",
          "title": "string",
          "executor": "agent",
          "dependsOn": [
            "string"
          ]
        }
      ],
      "actions": [
        {
          "name": "string",
          "approval": "auto"
        }
      ],
      "updatedAt": "string"
    }
  ]
}
```

- `object` (`listAgents.response.200.object`; string, required)
- `data` (`listAgents.response.200.data`; array<object>, required)
  - `object` (`listAgents.response.200.data.object`; string, required)
  - `id` (`listAgents.response.200.data.id`; string, required)
  - `name` (`listAgents.response.200.data.name`; string, required)
  - `description` (`listAgents.response.200.data.description`; string, required)
  - `version` (`listAgents.response.200.data.version`; number, required)
  - `tasks` (`listAgents.response.200.data.tasks`; array<object>, required)
    - `id` (`listAgents.response.200.data.tasks.id`; string, required)
      - example `"task-1"`
    - `title` (`listAgents.response.200.data.tasks.title`; string, required)
    - `executor` (`listAgents.response.200.data.tasks.executor`; string, required) — Who performs the step: `agent` runs by itself, `human` waits for a person to complete it.
      - one of `"agent"`, `"human"`
    - `dependsOn` (`listAgents.response.200.data.tasks.dependsOn`; array<string>, required)
  - `actions` (`listAgents.response.200.data.actions`; array<object>, required)
    - `name` (`listAgents.response.200.data.actions.name`; string | null, required)
    - `approval` (`listAgents.response.200.data.actions.approval`; string, required) — When a person has to sign off on this step. - `auto` — no sign-off. - `before` — approve the proposed inputs before it runs. - `output` — approve the result before it is used. - `both` — both gates.
      - one of `"auto"`, `"before"`, `"output"`, `"both"`
  - `updatedAt` (`listAgents.response.200.data.updatedAt`; string, required)

### 401

Missing or invalid credentials.

#### Example

```json
{
  "code": "string",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`listAgents.response.401.code`; string, required)
- `message` (`listAgents.response.401.message`; string, required)
- `retryable` (`listAgents.response.401.retryable`; boolean, required)
- `requestId` (`listAgents.response.401.requestId`; string, required)
- `docUrl` (`listAgents.response.401.docUrl`; string, optional)

### 403

The credential is valid but cannot administer this organization.

#### Example

```json
{
  "code": "string",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`listAgents.response.403.code`; string, required)
- `message` (`listAgents.response.403.message`; string, required)
- `retryable` (`listAgents.response.403.retryable`; boolean, required)
- `requestId` (`listAgents.response.403.requestId`; string, required)
- `docUrl` (`listAgents.response.403.docUrl`; string, optional)

### 429

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`listAgents.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`listAgents.response.429.message`; string, required)
- `retryable` (`listAgents.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`listAgents.response.429.requestId`; string, required)
- `docUrl` (`listAgents.response.429.docUrl`; string, optional)


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