v2

latestOpenAPI 3.1.02026-08-0382170235.8 KB
facts
facts

Get aggregated statistics for a POT

Get aggregated statistics for a POT.

Computes per-level fact counts via Select="COUNT" + FilterExpression queries — no fact rows materialized. Used by KB2B's dashboard to render the score distribution chart and total fact count without sampling.

get/pots/{pot_id}/stats

Path parameters

pot_idstring uuid required

Response

Stats retrieved successfully

total_factsinteger

Total facts in the POT (uncapped)

constitution_countinteger

Number of constitution axioms

average_scorenumber

Approximate average POT score, computed from level midpoints. Exact within ~0.1 for typical distributions; this avoids loading all fact rows.