> 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 work queue

GET https://api.cloudraker.com/me/work

Everything waiting on the caller across all runs they can see: pending approvals (any space member with access may decide) and ready human tasks assigned to them or unassigned (anyone in the space may complete those; claiming is optional). Grouped by run, newest run first, cursor-paginated via `starting_after` (up to 20 runs per page). Reads best-effort projections — `asOf` (response) and per-run `asOf` mark staleness; a decision made seconds ago may still appear until the projection catches up. `totalCount` is the badge number: all pending items for the caller, across all pages. Authorization: any authenticated member; non-admins see only spaces they hold `space:read` on.

Reference: https://docs.cloudraker.com/api/cloud-raker-api/workspace/me/get-my-work

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: CloudRaker API
  version: 1.0.0
paths:
  /me/work:
    get:
      operationId: get-my-work
      summary: The caller's work queue
      description: >-
        Everything waiting on the caller across all runs they can see: pending
        approvals (any space member with access may decide) and ready human
        tasks assigned to them or unassigned (anyone in the space may complete
        those; claiming is optional). Grouped by run, newest run first,
        cursor-paginated via `starting_after` (up to 20 runs per page). Reads
        best-effort projections — `asOf` (response) and per-run `asOf` mark
        staleness; a decision made seconds ago may still appear until the
        projection catches up. `totalCount` is the badge number: all pending
        items for the caller, across all pages. Authorization: any authenticated
        member; non-admins see only spaces they hold `space:read` on.
      tags:
        - me
      parameters:
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The work queue, grouped by run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MyWork'
servers:
  - url: https://api.cloudraker.com
    description: Production
  - url: https://api.staging.raker.one
    description: Staging
  - url: https://api.dev.raker.one
    description: Development
components:
  schemas:
    WorkItemKind:
      type: string
      enum:
        - approval
        - human_task
      title: WorkItemKind
    WorkItemApprovalKind:
      type: string
      enum:
        - pre
        - post
      title: WorkItemApprovalKind
    WorkItem:
      type: object
      properties:
        kind:
          $ref: '#/components/schemas/WorkItemKind'
        runId:
          type: string
        spaceId:
          type: string
        playbookName:
          type:
            - string
            - 'null'
        itemId:
          type: string
        title:
          type: string
        approvalKind:
          oneOf:
            - $ref: '#/components/schemas/WorkItemApprovalKind'
            - type: 'null'
        assignee:
          type:
            - string
            - 'null'
        status:
          type:
            - string
            - 'null'
        requestedAt:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - kind
        - runId
        - spaceId
        - playbookName
        - itemId
        - title
        - approvalKind
        - assignee
        - status
        - requestedAt
      title: WorkItem
    MyWorkDataItems:
      type: object
      properties:
        runId:
          type: string
        spaceId:
          type: string
        playbookName:
          type:
            - string
            - 'null'
        runCreatedAt:
          type:
            - string
            - 'null'
          format: date-time
        asOf:
          type:
            - string
            - 'null'
          format: date-time
        items:
          type: array
          items:
            $ref: '#/components/schemas/WorkItem'
      required:
        - runId
        - spaceId
        - playbookName
        - runCreatedAt
        - asOf
        - items
      title: MyWorkDataItems
    MyWork:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/MyWorkDataItems'
        totalCount:
          type: integer
        nextCursor:
          type:
            - string
            - 'null'
        asOf:
          type: string
          format: date-time
      required:
        - data
        - totalCount
        - nextCursor
        - asOf
      title: MyWork
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "data": [
    {
      "runId": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
      "spaceId": "space-1234abcd",
      "playbookName": "Incident Response",
      "runCreatedAt": "2024-04-20T14:22:00Z",
      "asOf": "2024-04-20T14:25:30Z",
      "items": [
        {
          "kind": "approval",
          "runId": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
          "spaceId": "space-1234abcd",
          "playbookName": "Incident Response",
          "itemId": "approval-5678efgh",
          "title": "Approve server restart",
          "approvalKind": "pre",
          "assignee": "jane.doe@example.com",
          "status": "pending",
          "requestedAt": "2024-04-20T14:20:00Z"
        }
      ]
    }
  ],
  "totalCount": 3,
  "nextCursor": "a1b2c3d4-e5f6-7890-ab12-cd34ef567889",
  "asOf": "2024-04-20T14:25:30Z"
}
```

**SDK Code**

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

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

```

```python
from cloudraker import CloudRaker

client = CloudRaker(
    token="YOUR_TOKEN_HERE",
)

client.me.get_my_work()

```

```go
package main

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

func main() {

	url := "https://api.cloudraker.com/me/work"

	payload := strings.NewReader("{}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	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/work")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

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/work")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.cloudraker.com/me/work', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/me/work");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

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

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()
```