Skip to main content
GET
/
admin
/
governance-config
Get governance configuration
curl --request GET \
  --url https://{organization_id}.platform.barndoor.ai/api/llm-gateway/admin/governance-config \
  --header 'Authorization: Bearer <token>'
{
  "require_pricing_for_mappings": true
}

Authorizations

Authorization
string
header
required

JWT obtained through Barndoor's authentication flow. Pass the token verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's loginInteractive() helper to obtain a token in scripts and notebooks.

Response

200 - application/json

Current governance configuration

require_pricing_for_mappings
boolean

When true, the gateway refuses to enable a model route whose upstream_model has no pricing configured. Use this to guarantee every billable request has a known unit cost.