Skip to main content
GET
Get Policy Counts By Agent

Authorizations

Authorization
string
header
required

A Barndoor API key, sent as Authorization: Bearer <key>. Keys are prefixed bdai_ and are opaque — do not attempt to decode one. Interchangeable with an OAuth 2.0 access token.

Response

200 - application/json

Successful Response

Policy counts keyed by agent ID, plus a count for unscoped (all-agent) policies.

agents
Agents · object

Map of agent ID to policy count

unscoped
integer
default:0

Number of policies that apply to all agents (no agent scope)