Skip to main content
GET
The organization's AI provenance posture across a scope of projects

Authorizations

Authorization
string
header
required

An Earnie API key, sent as Authorization: Bearer sk_earnie_.... Create one under Settings > API keys. The key's scopes decide which operations it may call.

Query Parameters

projects
string

Comma-separated project ids to narrow the scope to. Omitted means every non-archived project in the organization. A value that is not a uuid is a 400; an id the caller cannot see is dropped.

batch
string<uuid>

A bulk import batch id. Narrows the scope to the projects that batch has created so far, resolved on the server so the request stays one id long however large the import. Cannot be combined with projects. A batch that does not exist in the caller's organization is a 404; a batch that has created no project yet answers an empty scope, never the whole organization.

include_archived
boolean
default:false

Response

The scope's AI posture. Always 200 for an authorized caller: an unmeasured estate, a caller who cannot see ai and a failed findings read all return this shape with ai absent, never an error and never zeros.

The organization's AI provenance posture over one scope, in one response. It reads like EstateCryptoPosture: the scope counts are ALWAYS present and say how much of the estate the numbers cover, and ai carries the numbers and is ABSENT when no project in scope has been measured. projects_scanned + projects_not_scanned == projects_in_scope.

A project is MEASURED by the rule ProjectSummary.ai uses: the posture source scan completed an ai stage, OR the project still holds present AI findings. An unmeasured project is counted in projects_not_scanned and contributes to no total, never a zero. A caller who cannot see the ai scanner has nothing measured.

ai is the SUM of the per-project ProjectSummary.ai rollups: totals and every bucket add, by_vendor merges by vendor, and models.by_license_category is present exactly when the caller may see model licenses.

projects_in_scope
integer
required
projects_scanned
integer
required
projects_not_scanned
integer
required
ai
object

The project's AI provenance posture over its present AI findings. Two halves, because the scanner reports two things: AI usage found in source, and model files with the outcome of identifying each.

Every count is INVENTORY split by triage: total is every present finding, and open + decided always equal it. decided means the finding is suppressed, resolved or superseded by a rule, the predicate the Review queue uses (approving a model suppresses it), so the Dashboard and Review agree on what is left. Deciding a finding never removes it from total.

Policy verdicts are not part of this rollup; they are evaluated per scan and reported by the project policy posture.