---
title: "Read"
method: GET
path: "/api/v1/index/usage/{operation_id}"
---

# Read

`GET /api/v1/index/usage/{operation_id}`

## Request

- Base URL: `https://api.usesynth.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.usesynth.ai/api/v1/index/usage/{operation_id}`
- Auth: none declared

## Path parameters

- `operation_id` string, nullable, required

## Query parameters

- `limit` integer
- `cursor` string, nullable

## Response `200`

Successful Response

- UsageSummary
  - `metadata` ResponseMetadata, required
    - `contract` 'index.v1' | 'swarms.v1' | 'core.v1', required
    - `request_id` string, required
    - `operation_id` string, nullable, required
    - `observed_at` string, date-time, required
    - `server_timing` TimingSpan[]
      - `name` 'request' | 'queue' | 'first_useful' | 'active' | 'wall' | 'settlement', required
      - `duration_ms` number, nullable, required
      - `source` 'server' | 'worker' | 'unknown', required
      - `clock` 'monotonic' | 'utc' | 'unknown', required
      - `uncertainty_ms` number, nullable, required
    - `client_timing` ClientTiming
      - `total_ms` number, required
      - `first_byte_ms` number, required
      - `attempts` integer, required
      - `source` 'sdk_monotonic'
  - `resource_usage` ResourceUsage[]
    - `plugin` string, required
    - `dimension` 'spend_micros' | 'tokens' | 'tokens_in' | 'tokens_out' | 'calls' | 'index_searches' | 'wall_ms', required
    - `usage_class` 'agent' | 'workload' | 'tool', required
    - `role` string, required
    - `state` 'measured' | 'estimated' | 'unknown' | 'pending', required
    - `amount` integer, nullable
    - `charge` MoneyObservation
      - `state` 'measured' | 'estimated' | 'pending' | 'unknown', required
      - `amount` Money, required
        - `coefficient` integer, required
        - `scale` integer, required
        - `currency` 'USD'
      - `source` string, nullable
      - `rate_version` string, nullable
  - `operation_id` string, required
  - `physical` PackagesCustomerApiTypesUsageUsageMetric[], required
    - `name` string, required
    - `unit` 'tokens' | 'requests' | 'bytes' | 'seconds' | 'searches' | 'reads' | 'millicpu_seconds' | 'byte_seconds', required
    - `quantity` string, nullable, required
    - `state` 'measured' | 'estimated' | 'pending' | 'unknown', required
    - `source` string, nullable, required
  - `cost` MoneyObservation, required
    - `state` 'measured' | 'estimated' | 'pending' | 'unknown', required
    - `amount` Money, required
      - `coefficient` integer, required
      - `scale` integer, required
      - `currency` 'USD'
    - `source` string, nullable
    - `rate_version` string, nullable
  - `customer_charge` MoneyObservation, required
    - `state` 'measured' | 'estimated' | 'pending' | 'unknown', required
    - `amount` Money, required
      - `coefficient` integer, required
      - `scale` integer, required
      - `currency` 'USD'
    - `source` string, nullable
    - `rate_version` string, nullable
  - `financial_state` 'pending' | 'final' | 'unknown', required
  - `execution_source` 'live' | 'replay' | 'unknown', required
  - `list_price` MoneyObservation
    - `state` 'measured' | 'estimated' | 'pending' | 'unknown', required
    - `amount` Money, required
      - `coefficient` integer, required
      - `scale` integer, required
      - `currency` 'USD'
    - `source` string, nullable
    - `rate_version` string, nullable
  - `funding` FundingPart[]
    - `source` 'not_billed' | 'included_in_operation' | 'plan_allowance' | 'promotion' | 'credits' | 'unattributed' | 'unsettled', required
    - `amount` Money, required
      - `coefficient` integer, required
      - `scale` integer, required
      - `currency` 'USD'

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usesynth/apis/synth-api.md) - [All operations](https://skmtc.dev/usesynth/apis/synth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usesynth/apis/synth-api/revisions/4d199548e98a?raw)
