Skip to content
Navigation

List the work sessions the caller can see

One keyset page of work sessions, MOST RECENTLY ACTIVE first (lastActivityAt, which is also what nextCursor carries), read from the work_sessions projection with a single query. Authorization: a session is listed when the caller holds work_session:read, or when it is linked to a space the caller holds space:contribute on — the SAME permission the detail route is gated on, so the list never advertises a session every other route answers 404 on; administrators see every session EXCEPT other people’s desk sessions, which are private by identity. Optional filter is mine, shared, space:<spaceId> or agent:<agentId>; status narrows by derived status and workStatus by the status a person set; limit is 1-50 (default 25) and starting_after takes the previous page’s nextCursor. Every one of them is ENFORCED — an unknown filter, a limit outside 1-50 or a status outside the enum is 400 validation_failed, never a quietly unfiltered page (R7-03 / R7C-04). The projection is best-effort, so a session opened seconds ago may take a moment to appear.

GET
https://api.cloudraker.com/workspace/sessions
Try it
Query parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Query parameters

  • q
    optional
    string
    maxLength: 200
  • filter
    optional

    One of mine (opened by the caller), shared (the caller is a participant on someone else’s session), space:<spaceId> or agent:<agentId>. Any other value is 400 validation_failed.

    Any of the following:

    • string
      mine
      or
      shared
    • string
    • string
  • status
    optional
    open
    or
    working
    or
    waiting
    or
    done
    or
    archived

    Only sessions in this derived status.

  • workStatus
    optional
    active
    or
    ready_for_review
    or
    done

    Only sessions a person has set to this work status.

  • limit
    optional
    integer

    Page size, 1-50 (default 25).

    maximum: 50 · minimum: 1
  • starting_after
    optional
    string

    The previous page’s nextCursor — <ISO-8601 timestamp>|<row id> (a bare timestamp is still accepted). Anything else is 400 validation_failed.

Returns

200

One page of work sessions.

JSON
  • data
    array of
    object
    required
    • id
      string
      required
      maxLength: 128 · minLength: 1
    • title
      string
      required
    • description
      string
      required
    • status
      open
      or
      working
      or
      waiting
      or
      done
      or
      archived
      required
    • workStatus
      active
      or
      ready_for_review
      or
      done
      required

      Whether the WORK is done, which only people decide. status stays the derived state of the turns.

    • openedByUserId
      string | null
      required
    • openedVia
      string | null
      required
    • participantUserIds
      array of
      string
      required
    • agentIds
      array of
      string
      required
    • spaceIds
      array of
      string
      required
    • primarySpaceId
      string | null
      required
    • counts
      object
      required
      • turns
        number
        required
      • approvalsPending
        number
        required
      • tasksPending
        number
        required
      • unread
        number
        required
    • lastActivityAt
      string | null
      required
    • createdAt
      string | null
      required
    • updatedAt
      string | null
      required
    • archivedAt
      string | null
      required
  • nextCursor
    string | null
    required

400

validation_failed — a bad filter, status or limit.

Type to search…

↑↓ navigate↵ selectEsc close