---
title: "The caller's agent runs (and threads)"
---

> 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 caller's agent runs (and threads)

Path: CloudRaker Workspace API › Me

`GET /me/agent-runs`

Lists agent runs in every container the caller can read — their own desk plus every space they hold `space:read` on — newest activity first. Each row carries `startedBy` and the container `spaceTitle` (null for desks), so a client can split "mine" from "shared with me"; `?scope=mine|shared` filters to one side. Other filters: `status` and `threadId`. `?group=thread` collapses to the newest run per thread (the thread list, up to 20; no further paging) and is the only mode that derives `threadStatus` — `running` while a run is live, `unread` when the thread moved since the caller last marked it seen (`POST /me/threads/{threadId}/view`, with a 30-second grace on a brand-new thread), `idle` otherwise. Every other mode reports `idle`. Otherwise cursor-paginated via `starting_after` (the previous page’s last `updatedAt`), 20 runs per page. Reads best-effort projections — the envelope `asOf` and per-row `updatedAt` mark staleness. `totalCount` is the (scan-capped) number of matching runs. Authorization: any authenticated member; another member’s desk threads are never listed, organization administrators included.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `status` (`listMyAgentRuns.query.status`; string, optional) — Filter to one run status.
- `threadId` (`listMyAgentRuns.query.threadId`; string, optional) — Filter to one thread.
- `scope` (`listMyAgentRuns.query.scope`; string, optional) — 'mine' (started by the caller) or 'shared' (started by someone else).
- `group` (`listMyAgentRuns.query.group`; string, optional) — Set to 'thread' to collapse to the newest run per thread.
- `starting_after` (`listMyAgentRuns.query.starting_after`; string, optional) — Cursor: the previous page’s last updatedAt.

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

One page of agent runs (or the thread list).

#### Example

```json
{
  "data": [
    {
      "runId": "string",
      "sessionId": "string",
      "sessionTurnId": "string",
      "spaceId": "string",
      "status": "string",
      "threadId": "string",
      "threadTitle": "string",
      "playbookName": "string",
      "taskProgress": {
        "total": -9007199254740991,
        "completed": -9007199254740991
      },
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "startedBy": "string",
      "spaceTitle": "string",
      "channelKind": "string",
      "threadStatus": "idle",
      "unread": true
    }
  ],
  "totalCount": -9007199254740991,
  "unreadCount": -9007199254740991,
  "nextCursor": "string",
  "asOf": "2019-08-24T14:15:22Z"
}
```

- `data` (`listMyAgentRuns.response.200.data`; array<object>, required)
  - `runId` (`listMyAgentRuns.response.200.data.runId`; string, required)
  - `sessionId` (`listMyAgentRuns.response.200.data.sessionId`; string | null, required)
  - `sessionTurnId` (`listMyAgentRuns.response.200.data.sessionTurnId`; string | null, required)
  - `spaceId` (`listMyAgentRuns.response.200.data.spaceId`; string, required)
  - `status` (`listMyAgentRuns.response.200.data.status`; string, required)
  - `threadId` (`listMyAgentRuns.response.200.data.threadId`; string | null, required)
  - `threadTitle` (`listMyAgentRuns.response.200.data.threadTitle`; string | null, required)
  - `playbookName` (`listMyAgentRuns.response.200.data.playbookName`; string | null, required)
  - `taskProgress` (`listMyAgentRuns.response.200.data.taskProgress`; any of, required) — Task progress on the run (null on legacy rows).
    - any of:
      - `object`
        - `total` (`listMyAgentRuns.response.200.data.taskProgress.1.total`; integer, required)
          - min -9007199254740991; max 9007199254740991
        - `completed` (`listMyAgentRuns.response.200.data.taskProgress.1.completed`; integer, required)
          - min -9007199254740991; max 9007199254740991
      - `null`
  - `createdAt` (`listMyAgentRuns.response.200.data.createdAt`; any of, required)
    - any of: `string`, `null`
  - `updatedAt` (`listMyAgentRuns.response.200.data.updatedAt`; any of, required)
    - any of: `string`, `null`
  - `startedBy` (`listMyAgentRuns.response.200.data.startedBy`; string | null, required)
  - `spaceTitle` (`listMyAgentRuns.response.200.data.spaceTitle`; string | null, required)
  - `channelKind` (`listMyAgentRuns.response.200.data.channelKind`; string | null, required)
  - `threadStatus` (`listMyAgentRuns.response.200.data.threadStatus`; string, required)
    - one of `"idle"`, `"running"`, `"unread"`
  - `unread` (`listMyAgentRuns.response.200.data.unread`; boolean, required)
- `totalCount` (`listMyAgentRuns.response.200.totalCount`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `nextCursor` (`listMyAgentRuns.response.200.nextCursor`; string | null, required)
- `asOf` (`listMyAgentRuns.response.200.asOf`; 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))$`
- `unreadCount` (`listMyAgentRuns.response.200.unreadCount`; integer, optional)
  - min -9007199254740991; max 9007199254740991


Source: https://docs.cloudraker.com/workspace/api/me/list-my-agent-runs/index.md
