---
title: "Get Observability Router"
method: GET
path: "/observability/router"
tags: ["observability"]
---

# Get Observability Router

`GET /observability/router`

Model-router vs raw-model usage split, plus which routers the team uses.

## Query parameters

- `start_date` string, nullable — Range start (ISO date or datetime, UTC). Defaults to 30 days ago.
- `end_date` string, nullable — Range end (ISO date or datetime, UTC). Defaults to now.
- `scope` 'team' | 'personal' — ``team`` (default) aggregates the active team's coding-agent tasks; ``personal`` narrows to tasks on keys the requesting user created.

## Response `200`

Successful Response

- RouterUsageResponse — Model-router vs raw-model usage across coding-agent traffic. Separates spend served through the Pioneer model router (optimized model selection) from raw direct-model calls that bypass it, so leaders can see router adoption and the raw-spend governance opportunity. ``router_mix`` includes the synthetic ``direct`` bucket as a first-class slice.
  - `total_spend` number, required
  - `routed_spend` number, required
  - `direct_spend` number, required
  - `routed_request_count` integer, required
  - `direct_request_count` integer, required
  - `router_mix` RouterSlice[], required
    - `router_type` string, required — Model-selection router (code/auto_v1.1/auto_v1.2/general) or ``direct`` for raw calls that bypass the router.
    - `spend` number, required
    - `request_count` integer, required
  - `by_harness` RouterHarnessSplit[], required
    - `harness` string, required
    - `routed_spend` number, required
    - `direct_spend` number, required
  - `by_member` RouterMemberSplit[], required
    - `api_key_id` string, nullable, required
    - `api_key_name` string, nullable, required
    - `key_creator_user_id` string, nullable, required
    - `key_creator_name` string, nullable, required
    - `key_creator_email` string, nullable, required
    - `routed_spend` number, required
    - `direct_spend` number, required
  - `meta` ObservabilityMeta, required — Data-quality envelope attached to every observability response. Lets the UI label boundaries instead of silently under-reporting: the category window (classification only runs over recent inline payloads), the per-harness payload coverage, and the earliest date harness attribution is available (before which no data exists, so a picker must not offer it).
    - `category_window_days` integer, required — Category classification only covers the last N days of inline payloads.
    - `category_window_start` string, date-time, required — UTC start of the category-classification window (now - category_window_days).
    - `coverage_start_date` string, date-time, required — Earliest UTC date with caller metadata / harness attribution; date ranges before this return nothing.
    - `harness_coverage` HarnessCoverage[], required — Per-harness category-coverage gating for UI labelling.
      - `harness` string, required
      - `coverage` 'full' | 'partial' | 'excluded', required
    - `generated_at` string, date-time, required — UTC time this response was computed.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/versions/31dfe831e079/schema)
