Skip to content
Navigation

The caller's work queue

Everything waiting on the caller: pending approvals (anyone with access to the work session may decide), ready human_tasks assigned to them or unassigned (anyone in the space may complete those; claiming is optional), questions and mentions, 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.

GET
https://api.cloudraker.com/me/work
Try it
Query parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Query parameters

  • starting_after
    optional
    string

    Cursor: the previous page’s nextCursor.

Returns

200

The work queue, grouped by work session.

JSON
  • data
    array of
    object
    required
    • runId
      string | null
      required
    • spaceId
      string | null
      required
    • playbookName
      string | null
      required
    • runCreatedAt
      required

      Any of the following:

      • string
      • null
    • asOf
      required

      Any of the following:

      • string
      • null
    • items
      array of
      object
      required
      • kind
        approval
        or
        human_task
        or
        parked
        or
        run_attention
        or
        connector
        or
        question
        +1 more
        required
      • runId
        string | null
        required
      • sessionId
        string | null
        required
      • sessionTurnId
        string | null
        required
      • spaceId
        string
        required
      • playbookName
        string | null
        required
      • itemId
        string
        required
      • refId
        string
        required
      • title
        string
        required
      • approvalKind
        required

        Any of the following:

        • string
          pre
          or
          post
        • null
      • assignee
        string | null
        required
      • status
        open
        or
        read
        or
        done
        required
      • taskStatus
        string | null
        required
      • runStatus
        string | null
        required
      • requestedAt
        required

        Any of the following:

        • string
        • null
      • attention
        required

        Any of the following:

        • string
          waiting
          or
          failed
        • null
      • unattended
        boolean | null
        required
      • origin
        required

        Any of the following:

        • string
          automation
          or
          channel
          or
          api
        • null
      • originId
        string | null
        required
      • reauthUrl
        string | null
        required
      • brokenCode
        string | null
        required
    • sessionId
      optional
      string | null
  • totalCount
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • nextCursor
    string | null
    required
  • 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
    optional
    integer
    maximum: 9007199254740991 · minimum: -9007199254740991

400

validation_failed — an unparseable starting_after.

Type to search…

↑↓ navigate↵ selectEsc close