> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cloudraker.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cloudraker.com/_mcp/server.

# The caller's agent runs (and threads)

GET https://api.cloudraker.com/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.

Reference: https://docs.cloudraker.com/api/cloud-raker-api/workspace/me/list-my-agent-runs

## Authentication

- `Authorization` header (bearer token, required)

## Request

### Query parameters

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

## Response

### 200

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

- `data` (list of object, required)
  - `runId` (string, required)
  - `spaceId` (string, required)
  - `status` (string, required)
  - `threadId` (string, required, nullable)
  - `threadTitle` (string, required, nullable)
  - `playbookName` (string, required, nullable)
  - `taskProgress` (object, required, nullable) — Task progress on the run (null on legacy rows).
    - `total` (integer, required)
    - `completed` (integer, required)
  - `createdAt` (datetime, required, nullable)
  - `updatedAt` (datetime, required, nullable)
  - `startedBy` (string, required, nullable)
  - `spaceTitle` (string, required, nullable)
  - `channelKind` (string, required, nullable)
  - `threadStatus` (enum, required)
    - Allowed values: `idle`, `running`, `unread`
  - `unread` (boolean, required)
- `totalCount` (integer, required)
- `nextCursor` (string, required, nullable)
- `asOf` (datetime, required)

## Examples

**Response**

```json
{
  "data": [
    {
      "runId": "string",
      "spaceId": "string",
      "status": "string",
      "threadId": "string",
      "threadTitle": "string",
      "playbookName": "string",
      "taskProgress": {
        "total": 1,
        "completed": 1
      },
      "createdAt": "2024-01-15T09:30:00Z",
      "updatedAt": "2024-01-15T09:30:00Z",
      "startedBy": "string",
      "spaceTitle": "string",
      "channelKind": "string",
      "threadStatus": "idle",
      "unread": true
    }
  ],
  "totalCount": 1,
  "nextCursor": "string",
  "asOf": "2024-01-15T09:30:00Z"
}
```

**SDK Code**

```typescript
import { CloudRakerClient } from "@cloudraker/api";

async function main() {
    const client = new CloudRakerClient({
        token: "YOUR_TOKEN_HERE",
    });
    await client.me.listMyAgentRuns({});
}
main();

```

```python
from cloudraker import CloudRaker

client = CloudRaker(
    token="YOUR_TOKEN_HERE",
)

client.me.list_my_agent_runs()

```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.cloudraker.com/me/agent-runs"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.cloudraker.com/me/agent-runs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.cloudraker.com/me/agent-runs")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.cloudraker.com/me/agent-runs', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/me/agent-runs");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cloudraker.com/me/agent-runs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```