---
title: "Ownership rules with pages caught, last match and a health verdict"
method: GET
path: "/api/{org_id}/oncall/ownership/stats"
tags: ["OnCall"]
---

# Ownership rules with pages caught, last match and a health verdict

`GET /api/{org_id}/oncall/ownership/stats`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/oncall/ownership/stats`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/oncall/ownership/stats/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required

## Query parameters

- `team_id` string
- `days` integer
- `limit` integer
- `offset` integer

## Response `200`

Success

- OwnershipStatsBody
  - `from` integer, required
  - `rules` OwnershipRuleStats[], required
    - `created_at` integer, required
    - `dimensions` object, required
    - `health` string, required: `active`, `never_used`, or `shadowed`.
    - `health_summary` string, required
    - `last_matched_at` integer, nullable: Micros. `None` when it has never matched.
    - `pages_caught` integer, required
    - `path` string, required
    - `rule_id` string, required
    - `shadowed_by` ShadowingRule[], required
      - `outcome` string, required: What it takes, and why it takes it.
      - `path` string, required
      - `rule_id` string, required
      - `team_id` string, required
      - `team_name` string, nullable
    - `team_id` string, required
    - `team_name` string, nullable
  - `to` integer, required
  - `total` integer, required: Rules matching the filter, before paging.
  - `days` integer, required
  - `limit` integer, required
  - `offset` integer, required

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
