Skip to content
Navigation

The caller's agent runs (and threads)

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.

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

Authorization

  • bearerAuth
    HTTP
    required

Query parameters

  • status
    optional
    string

    Filter to one run status.

  • threadId
    optional
    string

    Filter to one thread.

  • scope
    optional
    string

    'mine' (started by the caller) or 'shared' (started by someone else).

  • group
    optional
    string

    Set to 'thread' to collapse to the newest run per thread.

  • starting_after
    optional
    string

    Cursor: the previous page’s last updatedAt.

Returns

200

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

JSON
  • data
    array of
    object
    required
    • runId
      string
      required
    • sessionId
      string | null
      required
    • sessionTurnId
      string | null
      required
    • spaceId
      string
      required
    • status
      string
      required
    • threadId
      string | null
      required
    • threadTitle
      string | null
      required
    • playbookName
      string | null
      required
    • taskProgress
      required

      Task progress on the run (null on legacy rows).

      Any of the following:

      • object
        • total
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
        • completed
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
      • null
    • createdAt
      required

      Any of the following:

      • string
      • null
    • updatedAt
      required

      Any of the following:

      • string
      • null
    • startedBy
      string | null
      required
    • spaceTitle
      string | null
      required
    • channelKind
      string | null
      required
    • threadStatus
      idle
      or
      running
      or
      unread
      required
    • unread
      boolean
      required
  • 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

Type to search…

↑↓ navigate↵ selectEsc close