Skip to main content
GET
Org-wide policy inventory, grouped by policy id

Path Parameters

orgId
string
required

Selects the scope: an organisation slug or id. The caller must be a member of it or the request is refused. See the note above.

Query Parameters

environment
string

Narrow to one environment slug. Mutually exclusive with productionOnly — passing both is a 400.

Maximum string length: 64
productionOnly
enum<string>

Only the literal strings "true" and "false" are accepted — any other value is a 400 schema-validation error, not a silent fall-through. "true" narrows to environments with isProduction: true; "false" or omitting the parameter leaves the scope at every environment. Mutually exclusive with environment — passing both (with productionOnly=true) is also a 400.

Available options:
true,
false

Response

The org's policy inventory in the requested scope.

Response of GET /v1/orgs/{orgId}/policies.

environmentFilter
object
required

Echoes the scope this response was computed under.

environmentSlugs
string[]
required

Every environment slug represented in the org, for populating a scope selector.

projectsInScope
object[]
required

Projects measurable in the current scope — the denominator behind every group's presentIn / absentFrom.

groups
object[]
required
applyRecencyTruncated
boolean
required

Whether the apply-recency pass behind every lastAppliedAt hit its row cap.

applyRecencyCap
integer
required

The row cap the recency pass ran under (currently 2,000, over a trailing 90-day window).