---
title: "What the connection produced"
method: GET
path: "/v1/admin/source-connections/{id}/stats"
tags: ["Source Plane"]
---

# What the connection produced

`GET /v1/admin/source-connections/{id}/stats`

## Request

- Base URL: `https://brain.inite.ai`
- URL: `https://brain.inite.ai/v1/admin/source-connections/{id}/stats`
- Auth: HTTP bearer

Catalogue rows by state and the facts the connection grounds (active / stale per the drift sweep / closed by the delete policy). The fact count is a bounded scan; `facts` is null when the tenant was too large to count in time. Source plane operator surface (docs/roadmap/raw-evidence-sources-2026-09.md) — answers a bare 404 until `SOURCE_PLANE_ENABLED=1`.

Required scope: `brain:admin`.

## Path parameters

- `id` string, required

## Response `200`

The counts.

- SourceConnectionStats
  - `connectionId` string, required
  - `facts` object, nullable, required
    - `active` integer, required
    - `closed` integer, required
    - `stale` integer, required
  - `items` object, required
    - `fetched` integer, required
    - `gone` integer, required
    - `indexed` integer, required
    - `seen` integer, required
    - `total` integer, required

## Other responses

- `400`: Validation failed.
- `401`: Missing or unknown bearer key.
- `403`: The key lacks the required scope.
- `404`: No such resource in this tenant.

---

[API](https://skmtc.dev/inite/apis/inite-brain-platform-api.md) · [All operations](https://skmtc.dev/inite/apis/inite-brain-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/inite/apis/inite-brain-platform-api/revisions/c7c3eb5e304b?raw)
