---
title: "The caller’s inbox"
---

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

Path: CloudRaker Workspace API › Inbox

`GET /workspace/inbox`

One page of the caller’s own inbox rows — mentions, approvals, human tasks and unattended parks, plus `connector` rows for connections whose authorization broke — newest first, read from the `inbox_items` projection and the `connections` scan. That pair is ONE reader, shared with `GET /me/work`, so a broken connection is the same item with the same id on both surfaces (R6-A1); its id is the connection id and `POST /workspace/inbox/{itemId}/read` dismisses it. `connector` rows ride the first page only — they are synthesized, so they take no part in the cursor walk — but they always count toward `totalCount` and `unreadCount`. **Authorization:** no per-row check exists or is needed: a row is written FOR one user, so the `userId` filter IS the scope. `status` is `open` (the default) or `all`, and `open` means NOT DONE, not unread: a `mention` leaves it the moment it is read, while an `approval`, `task` or `parked` row that has been read stays until the work behind it closes; `limit` is 1-50 (default 25); `starting_after` takes the previous page’s `nextCursor`. Both are ENFORCED: a bad value is 400 `validation_failed`, not a silent fallback to the defaults (R7C-04).

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `status` (`listWorkspaceInbox.query.status`; string, optional) — `open` (default) or `all`. `open` means NOT DONE, not unread: reading a `mention` resolves it and drops it from this listing, while a read `approval`, `task` or `parked` row stays until the work behind it closes.
  - one of `"open"`, `"all"`
- `limit` (`listWorkspaceInbox.query.limit`; integer, optional) — Page size, 1-50 (default 25). Page one leads with the caller’s broken-connection rows (`kind: connector`), which are synthesized rather than stored, and the stored page shrinks to keep the total inside `limit` — at least one stored row always comes through, so a caller whose broken connections alone fill the page receives them plus that row.
  - min 1; max 50; example `25`
- `starting_after` (`listWorkspaceInbox.query.starting_after`; string, optional) — The previous page’s `nextCursor` — `<ISO-8601 timestamp>|<row id>` (a bare timestamp is still accepted). Anything else is 400 `validation_failed`.

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

One page of inbox items.

#### Example

```json
{
  "data": [
    {
      "id": "string",
      "userId": "string",
      "kind": "approval",
      "document": {
        "artifactId": "string",
        "threadId": "string"
      },
      "sessionId": "string",
      "turnId": "string",
      "refId": "string",
      "title": "string",
      "body": "string",
      "status": "open",
      "createdAt": "string",
      "updatedAt": "string",
      "readAt": "string",
      "unread": true,
      "audience": "space",
      "spaceId": "string",
      "assignee": "string",
      "claimedBy": "string",
      "taskStatus": "string",
      "runId": "string",
      "threadId": "string",
      "runCreatedAt": "string",
      "playbookName": "string",
      "startedBy": "string",
      "runStatus": "string",
      "failureAt": "string",
      "initializationPending": true,
      "legacyImportPending": true,
      "unattended": true,
      "connectionId": "string",
      "reauthUrl": "string",
      "brokenCode": "string"
    }
  ],
  "nextCursor": "string",
  "unreadCount": -9007199254740991,
  "totalCount": -9007199254740991
}
```

- `data` (`listWorkspaceInbox.response.200.data`; array<object>, required)
  - `id` (`listWorkspaceInbox.response.200.data.id`; string, required)
  - `userId` (`listWorkspaceInbox.response.200.data.userId`; string, required)
  - `kind` (`listWorkspaceInbox.response.200.data.kind`; string, required)
    - one of `"approval"`, `"human_task"`, `"question"`, `"mention"`, `"parked"`, `"run_attention"`, `"connector"`
  - `sessionId` (`listWorkspaceInbox.response.200.data.sessionId`; string | null, required)
  - `turnId` (`listWorkspaceInbox.response.200.data.turnId`; string | null, required)
  - `refId` (`listWorkspaceInbox.response.200.data.refId`; string | null, required)
  - `title` (`listWorkspaceInbox.response.200.data.title`; string, required)
  - `body` (`listWorkspaceInbox.response.200.data.body`; string | null, required)
  - `status` (`listWorkspaceInbox.response.200.data.status`; string, required)
    - one of `"open"`, `"read"`, `"done"`
  - `createdAt` (`listWorkspaceInbox.response.200.data.createdAt`; string, required)
  - `updatedAt` (`listWorkspaceInbox.response.200.data.updatedAt`; string, required)
  - `readAt` (`listWorkspaceInbox.response.200.data.readAt`; string | null, required)
  - `document` (`listWorkspaceInbox.response.200.data.document`; any of, optional)
    - any of:
      - `object`
        - `artifactId` (`listWorkspaceInbox.response.200.data.document.1.artifactId`; string, required)
        - `threadId` (`listWorkspaceInbox.response.200.data.document.1.threadId`; string, required)
      - `null`
  - `unread` (`listWorkspaceInbox.response.200.data.unread`; boolean, optional)
  - `audience` (`listWorkspaceInbox.response.200.data.audience`; string, optional)
    - one of `"space"`, `"user"`
  - `spaceId` (`listWorkspaceInbox.response.200.data.spaceId`; string | null, optional)
  - `assignee` (`listWorkspaceInbox.response.200.data.assignee`; string | null, optional)
  - `claimedBy` (`listWorkspaceInbox.response.200.data.claimedBy`; string | null, optional)
  - `taskStatus` (`listWorkspaceInbox.response.200.data.taskStatus`; string | null, optional)
  - `runId` (`listWorkspaceInbox.response.200.data.runId`; string | null, optional)
  - `threadId` (`listWorkspaceInbox.response.200.data.threadId`; string | null, optional)
  - `runCreatedAt` (`listWorkspaceInbox.response.200.data.runCreatedAt`; string | null, optional)
  - `playbookName` (`listWorkspaceInbox.response.200.data.playbookName`; string | null, optional)
  - `startedBy` (`listWorkspaceInbox.response.200.data.startedBy`; string | null, optional)
  - `runStatus` (`listWorkspaceInbox.response.200.data.runStatus`; string | null, optional)
  - `failureAt` (`listWorkspaceInbox.response.200.data.failureAt`; string | null, optional)
  - `initializationPending` (`listWorkspaceInbox.response.200.data.initializationPending`; boolean, optional)
  - `legacyImportPending` (`listWorkspaceInbox.response.200.data.legacyImportPending`; boolean, optional)
  - `unattended` (`listWorkspaceInbox.response.200.data.unattended`; boolean | null, optional)
  - `connectionId` (`listWorkspaceInbox.response.200.data.connectionId`; string | null, optional)
  - `reauthUrl` (`listWorkspaceInbox.response.200.data.reauthUrl`; string | null, optional)
  - `brokenCode` (`listWorkspaceInbox.response.200.data.brokenCode`; string | null, optional)
- `nextCursor` (`listWorkspaceInbox.response.200.nextCursor`; string | null, required)
- `unreadCount` (`listWorkspaceInbox.response.200.unreadCount`; integer, required) — Unread rows across every page, the badge number. Never counts a resolved (`done`) row, whatever `status` asked for, and includes the synthesized broken-connector rows.
  - min -9007199254740991; max 9007199254740991
- `totalCount` (`listWorkspaceInbox.response.200.totalCount`; integer, required) — Rows across every page in the SAME set this call pages over: `status=open` (the default) counts unresolved rows only, `status=all` counts resolved rows too. Includes the synthesized broken-connector rows.
  - min -9007199254740991; max 9007199254740991

### 400

`validation_failed` — a bad `status` or `limit`.


Source: https://docs.cloudraker.com/workspace/api/inbox/list-workspace-inbox/index.md
