---
title: "The caller's work queue"
---

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

Path: CloudRaker Workspace API › Me

`GET /me/work`

Everything waiting on the caller: pending `approval`s (anyone with access to the work session may decide), ready `human_task`s assigned to them or unassigned (anyone in the space may complete those; claiming is optional), `question`s and `mention`s, `parked` — a turn that stopped and is waiting on a person — `run_attention` — a LEGACY run **they started** that failed, or that parked with nobody watching (an overnight trigger or a channel message) — and `connector`, a connection in a space they can read whose authorization broke and needs re-auth. Served from ONE reader — the `inbox_items` projection plus the broken-connection scan — which is also what `GET /workspace/inbox` serves, grouped by work session instead of listed flat, so the two surfaces can never disagree: the same `connector` item id appears on both, and `POST /workspace/inbox/{itemId}/read` dismisses it on both. Newest first, cursor-paginated via `starting_after` (up to 50 items per page); `connector` items ride one extra group with `runId: null` on the first page. Reads a best-effort projection — `asOf` (response) and per-group `asOf` mark staleness; a decision made seconds ago may still appear until the projection catches up, and clients poll this route (there is no push), so the badge can lag the session you are looking at by up to 30 seconds. `totalCount` is the badge number: every pending item for the caller across all pages. Authorization: any authenticated member; non-admins see only sessions and spaces they may read.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `starting_after` (`getMyWork.query.starting_after`; string, optional) — Cursor: the previous page’s `nextCursor`.

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The work queue, grouped by work session.

#### Example

```json
{
  "data": [
    {
      "runId": "string",
      "sessionId": "string",
      "spaceId": "string",
      "playbookName": "string",
      "runCreatedAt": "2019-08-24T14:15:22Z",
      "asOf": "2019-08-24T14:15:22Z",
      "items": [
        {
          "kind": "approval",
          "runId": "string",
          "sessionId": "string",
          "sessionTurnId": "string",
          "spaceId": "string",
          "playbookName": "string",
          "itemId": "string",
          "refId": "string",
          "title": "string",
          "approvalKind": "pre",
          "assignee": "string",
          "status": "open",
          "taskStatus": "string",
          "runStatus": "string",
          "requestedAt": "2019-08-24T14:15:22Z",
          "attention": "waiting",
          "unattended": true,
          "origin": "automation",
          "originId": "string",
          "reauthUrl": "string",
          "brokenCode": "string"
        }
      ]
    }
  ],
  "totalCount": -9007199254740991,
  "unreadCount": -9007199254740991,
  "nextCursor": "string",
  "asOf": "2019-08-24T14:15:22Z"
}
```

- `data` (`getMyWork.response.200.data`; array<object>, required)
  - `runId` (`getMyWork.response.200.data.runId`; string | null, required)
  - `spaceId` (`getMyWork.response.200.data.spaceId`; string | null, required)
  - `playbookName` (`getMyWork.response.200.data.playbookName`; string | null, required)
  - `runCreatedAt` (`getMyWork.response.200.data.runCreatedAt`; any of, required)
    - any of: `string`, `null`
  - `asOf` (`getMyWork.response.200.data.asOf`; any of, required)
    - any of: `string`, `null`
  - `items` (`getMyWork.response.200.data.items`; array<object>, required)
    - `kind` (`getMyWork.response.200.data.items.kind`; string, required)
      - one of `"approval"`, `"human_task"`, `"parked"`, `"run_attention"`, `"connector"`, `"question"`, `"mention"`
    - `runId` (`getMyWork.response.200.data.items.runId`; string | null, required)
    - `sessionId` (`getMyWork.response.200.data.items.sessionId`; string | null, required)
    - `sessionTurnId` (`getMyWork.response.200.data.items.sessionTurnId`; string | null, required)
    - `spaceId` (`getMyWork.response.200.data.items.spaceId`; string, required)
    - `playbookName` (`getMyWork.response.200.data.items.playbookName`; string | null, required)
    - `itemId` (`getMyWork.response.200.data.items.itemId`; string, required)
    - `refId` (`getMyWork.response.200.data.items.refId`; string, required)
    - `title` (`getMyWork.response.200.data.items.title`; string, required)
    - `approvalKind` (`getMyWork.response.200.data.items.approvalKind`; any of, required)
      - any of:
        - `string`: one of `"pre"`, `"post"`
        - `null`
    - `assignee` (`getMyWork.response.200.data.items.assignee`; string | null, required)
    - `status` (`getMyWork.response.200.data.items.status`; string, required)
      - one of `"open"`, `"read"`, `"done"`
    - `taskStatus` (`getMyWork.response.200.data.items.taskStatus`; string | null, required)
    - `runStatus` (`getMyWork.response.200.data.items.runStatus`; string | null, required)
    - `requestedAt` (`getMyWork.response.200.data.items.requestedAt`; any of, required)
      - any of: `string`, `null`
    - `attention` (`getMyWork.response.200.data.items.attention`; any of, required)
      - any of:
        - `string`: one of `"waiting"`, `"failed"`
        - `null`
    - `unattended` (`getMyWork.response.200.data.items.unattended`; boolean | null, required)
    - `origin` (`getMyWork.response.200.data.items.origin`; any of, required)
      - any of:
        - `string`: one of `"automation"`, `"channel"`, `"api"`
        - `null`
    - `originId` (`getMyWork.response.200.data.items.originId`; string | null, required)
    - `reauthUrl` (`getMyWork.response.200.data.items.reauthUrl`; string | null, required)
    - `brokenCode` (`getMyWork.response.200.data.items.brokenCode`; string | null, required)
  - `sessionId` (`getMyWork.response.200.data.sessionId`; string | null, optional)
- `totalCount` (`getMyWork.response.200.totalCount`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `nextCursor` (`getMyWork.response.200.nextCursor`; string | null, required)
- `asOf` (`getMyWork.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` (`getMyWork.response.200.unreadCount`; integer, optional)
  - min -9007199254740991; max 9007199254740991

### 400

`validation_failed` — an unparseable `starting_after`.


Source: https://docs.cloudraker.com/workspace/api/me/get-my-work/index.md
