Skip to main content
GET
Resolve the effective protection rules for a scope

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.

Query Parameters

provider_id
string | null
model_alias
string | null
runtime_stage
string | null
mcp_server_id
string | null
agent_id
string<uuid> | null

Resolve as this AI agent. Omitted = no agent: only All-agents policies apply.

Response

The resolved rule set, with per-rule attribution

rules
object[]
required