---
title: "Get detailed token and estimated cost usage for one session"
method: GET
path: "/api/v1/usage/sessions/{sessionId}"
tags: ["usage"]
---

# Get detailed token and estimated cost usage for one session

`GET /api/v1/usage/sessions/{sessionId}`

## Path parameters

- `sessionId` string, required — Session identifier, e.g. project-1.

## Response `200`

OK

- SessionUsageResponse
  - `harnesses` UsageHarnessResponse[], required
    - `harness` string, required
    - `models` UsageModelResponse[], required
      - `modelId` string, required
      - `totals` UsageTotalsResponse, required
        - `cacheReadTokens` integer, nullable, required — Deprecated compatibility alias for cachedInputTokens.
        - `cachedInputTokens` integer, nullable, required — Input read from an existing provider cache. Cache hit percentage uses cachedInputTokens divided by inclusive inputTokens.
        - `estimatedCost` EstimatedCostResponse, required
          - `cachedInputNanos` integer, nullable, required
          - `coverage` 'complete' | 'partial', required
          - `inputNanos` integer, nullable, required — Every non-cache-read input charge, cache writes included.
          - `outputNanos` integer, nullable, required
          - `providerAttribution` 'observed' | 'inferred' | 'mixed', required — Whether contributing billing providers were detected, inferred from model ownership, or both.
          - `totalNanos` integer, required
        - `inputTokens` integer, nullable, required — Total input, including cached and uncached input.
        - `outputTokens` integer, nullable, required — Total output, including provider-specific subsets such as reasoning output.
        - `processedTokens` integer, nullable, required — Canonical input plus output. Null when either component is unknown.
        - `uncachedInputTokens` integer, nullable, required — Input not read from an existing provider cache. Includes cache writes.
    - `totals` UsageTotalsResponse, required
      - `cacheReadTokens` integer, nullable, required — Deprecated compatibility alias for cachedInputTokens.
      - `cachedInputTokens` integer, nullable, required — Input read from an existing provider cache. Cache hit percentage uses cachedInputTokens divided by inclusive inputTokens.
      - `estimatedCost` EstimatedCostResponse, required
        - `cachedInputNanos` integer, nullable, required
        - `coverage` 'complete' | 'partial', required
        - `inputNanos` integer, nullable, required — Every non-cache-read input charge, cache writes included.
        - `outputNanos` integer, nullable, required
        - `providerAttribution` 'observed' | 'inferred' | 'mixed', required — Whether contributing billing providers were detected, inferred from model ownership, or both.
        - `totalNanos` integer, required
      - `inputTokens` integer, nullable, required — Total input, including cached and uncached input.
      - `outputTokens` integer, nullable, required — Total output, including provider-specific subsets such as reasoning output.
      - `processedTokens` integer, nullable, required — Canonical input plus output. Null when either component is unknown.
      - `uncachedInputTokens` integer, nullable, required — Input not read from an existing provider cache. Includes cache writes.
  - `incomplete` boolean, required
  - `sessionId` string, required
  - `totals` UsageTotalsResponse, required
    - `cacheReadTokens` integer, nullable, required — Deprecated compatibility alias for cachedInputTokens.
    - `cachedInputTokens` integer, nullable, required — Input read from an existing provider cache. Cache hit percentage uses cachedInputTokens divided by inclusive inputTokens.
    - `estimatedCost` EstimatedCostResponse, required
      - `cachedInputNanos` integer, nullable, required
      - `coverage` 'complete' | 'partial', required
      - `inputNanos` integer, nullable, required — Every non-cache-read input charge, cache writes included.
      - `outputNanos` integer, nullable, required
      - `providerAttribution` 'observed' | 'inferred' | 'mixed', required — Whether contributing billing providers were detected, inferred from model ownership, or both.
      - `totalNanos` integer, required
    - `inputTokens` integer, nullable, required — Total input, including cached and uncached input.
    - `outputTokens` integer, nullable, required — Total output, including provider-specific subsets such as reasoning output.
    - `processedTokens` integer, nullable, required — Canonical input plus output. Null when either component is unknown.
    - `uncachedInputTokens` integer, nullable, required — Input not read from an existing provider cache. Includes cache writes.

## Other responses

- `404` — Not Found
- `500` — Internal Server Error
- `501` — Not Implemented

## Changes

- **2026-08-28** `e853ada076ff` — 12 breaking, 3 info
  - removed the required property `harnesses/items/models/items/totals/cacheWriteTokens` from the response with the `200` status
  - removed the required property `harnesses/items/models/items/totals/provenance` from the response with the `200` status
  - removed the required property `harnesses/items/models/items/totals/providerDetails` from the response with the `200` status
  - removed the required property `harnesses/items/models/items/totals/reasoningTokens` from the response with the `200` status
  - …11 more
- **2026-08-21** `5682a5de7409` — 12 info
  - added the required property `harnesses/items/models/items/totals/cachedInputTokens` to the response with the `200` status
  - added the required property `harnesses/items/models/items/totals/processedTokens` to the response with the `200` status
  - added the required property `harnesses/items/models/items/totals/provenance` to the response with the `200` status
  - added the required property `harnesses/items/models/items/totals/providerDetails` to the response with the `200` status
  - …8 more
- **2026-08-06** `966e7144cdbc` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/usage/sessions/:sessionId/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-service-production.skmtc.workers.dev/v1/apis/composiohq/agent-orchestrator-http-daemon/revisions/513f2a8dd71b/schema)
