---
title: "List resident memory of each live session's runtime process tree"
method: GET
path: "/api/v1/usage/sessions/memory"
tags: ["usage"]
---

# List resident memory of each live session's runtime process tree

`GET /api/v1/usage/sessions/memory`

## Request

- Base URL: `http://127.0.0.1:3001`
- URL: `http://127.0.0.1:3001/api/v1/usage/sessions/memory`
- Auth: none declared

## Query parameters

- `projectId` string: Optional project id filter for dashboard cards.

## Response `200`

OK

- ListSessionMemoryResponse
  - `app` AppMemoryResponse
    - `cpuMeasured` boolean, required: False when there was no earlier sample to measure against: cpuPercent is unknown, not zero.
    - `cpuPercent` number, double, required
    - `own` SessionMemoryResponse
      - `activity` SessionActivityResponse
        - `current` SessionStepResponse
          - `endedAt` string, date-time, nullable: Absent while the tool is still running.
          - `failed` boolean, required
          - `startedAt` string, date-time, required
          - `tool` string, required
        - `recent` SessionStepResponse[], required
          - `endedAt` string, date-time, nullable: Absent while the tool is still running.
          - `failed` boolean, required
          - `startedAt` string, date-time, required
          - `tool` string, required
      - `cpuPercent` number, double, required: Share of one core the whole tree used since the previous sample; zero on the first.
      - `processCount` integer, required
      - `processes` SessionMemoryProcessResponse[], required
        - `command` string, required
        - `cpuPercent` number, double, required: Share of one core used since the previous sample; zero on the first.
        - `pid` integer, required
        - `ppid` integer, required
        - `rssBytes` integer, required
      - `rssBytes` integer, required: Resident set size summed over the runtime process tree.
      - `sampledAt` string, date-time, required
      - `sessionId` string, required
    - `processCount` integer, required
    - `reviewers` ControllersReviewerMemoryResponse[]
      - `harness` string, required
      - `memory` SessionMemoryResponse, required
        - `activity` SessionActivityResponse
          - `current` SessionStepResponse
            - `endedAt` string, date-time, nullable: Absent while the tool is still running.
            - `failed` boolean, required
            - `startedAt` string, date-time, required
            - `tool` string, required
          - `recent` SessionStepResponse[], required
            - `endedAt` string, date-time, nullable: Absent while the tool is still running.
            - `failed` boolean, required
            - `startedAt` string, date-time, required
            - `tool` string, required
        - `cpuPercent` number, double, required: Share of one core the whole tree used since the previous sample; zero on the first.
        - `processCount` integer, required
        - `processes` SessionMemoryProcessResponse[], required
          - `command` string, required
          - `cpuPercent` number, double, required: Share of one core used since the previous sample; zero on the first.
          - `pid` integer, required
          - `ppid` integer, required
          - `rssBytes` integer, required
        - `rssBytes` integer, required: Resident set size summed over the runtime process tree.
        - `sampledAt` string, date-time, required
        - `sessionId` string, required
      - `reviewId` string, required
      - `sessionId` string, required: The worker session this reviewer reviews, not the reviewer's own identity.
    - `rssBytes` integer, required
  - `sessions` SessionMemoryResponse[], required
    - `activity` SessionActivityResponse
      - `current` SessionStepResponse
        - `endedAt` string, date-time, nullable: Absent while the tool is still running.
        - `failed` boolean, required
        - `startedAt` string, date-time, required
        - `tool` string, required
      - `recent` SessionStepResponse[], required
        - `endedAt` string, date-time, nullable: Absent while the tool is still running.
        - `failed` boolean, required
        - `startedAt` string, date-time, required
        - `tool` string, required
    - `cpuPercent` number, double, required: Share of one core the whole tree used since the previous sample; zero on the first.
    - `processCount` integer, required
    - `processes` SessionMemoryProcessResponse[], required
      - `command` string, required
      - `cpuPercent` number, double, required: Share of one core used since the previous sample; zero on the first.
      - `pid` integer, required
      - `ppid` integer, required
      - `rssBytes` integer, required
    - `rssBytes` integer, required: Resident set size summed over the runtime process tree.
    - `sampledAt` string, date-time, required
    - `sessionId` string, required
  - `system` SystemMemoryResponse
    - `availableBytes` integer, required: What the kernel would hand out without swapping (MemAvailable).
    - `cpuCount` integer, required
    - `cpuMeasured` boolean, required
    - `cpuPercent` number, double, required
    - `load1` number, double, required
    - `pressureRaw` number, double, required
    - `pressureSource` 'psi' | 'available_pct' | 'memorystatus', required
    - `swapBytesPerSec` number, double, required
    - `swapTotalBytes` integer, required
    - `swapUsedBytes` integer, required
    - `totalBytes` integer, required

## Other responses

- `500`: Internal Server Error
- `501`: Not Implemented

## Changes

- **2026-10-21** `8f160e6183cd`: 2 info
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `500`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `501`
- **2026-10-05** `10fbd2d7aaf3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/usage/sessions/memory/get.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) - [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) - [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/61d7efd08578?raw)
