Preview a scope
Resolve a scope to a matched count + scope_warnings without saving. Fast author-time feedback.
Authorizations
A pnbr- API key. Project-scoped keys make project_id implicit; org-scoped keys require it.
Body
A developer-intent scope: a CQL string (cql) or a structured filter. Names, not UUIDs. cql is canonical if both are given.
CQL filter string. Tokens: type:, shape:, source:, source-shape:, after:, before:. Same-kind tokens union, different-kind intersect. after:/before: accept absolute ISO (YYYY-MM-DD) OR relative expressions resolved server-side in UTC: last-week, last-month, last-year, today, yesterday, now, and signed offsets 7d, -7d, 2w, 3mo, 12h, 1y (sign ignored; past-only). Membership-irrelevant tokens (edge:, agent:, sort:, free text) come back in scope_warnings, never silently dropped.
"type:Company after:7d"
Structured mirror of CQL.
Implicit from a project-scoped key or the X-Penumbra-Project header.
Response
Counts + matched + warnings.