Policies
List policies
List policies for the tenant scope, optionally filtered by layer (1=Platform, 2=Org, 3=Tenant, 4=Process). Layer 4 requires workflow_id. Auth: NextAuth session OR an sk_live_ API key (Authorization: Bearer or X-API-Key).
get/api/v1/tenants/{tenantId}/policies
Request
- Base URL: http://dobby-ai.com
- URL: http://dobby-ai.com/api/v1/tenants/{tenantId}/policies
- Auth: HTTP bearer
Path parameters
tenantIdstring required
Tenant (workspace) ID
Query parameters
layerinteger
Policy layer filter: 1=Platform, 2=Org, 3=Tenant, 4=Process. Omit for all layers.
include_inactive'1'
Pass 1 to include inactive policies
workflow_idstring
Required when layer=4 — the workload (external_workload_id) to scope to
Response
Policies for the requested scope
Example response
{
"success": true,
"data": {
"count": 3,
"policies": [
{
"policy_id": "pol_user_abc123",
"layer": 3,
"text": "Never send customer PII to external email addresses",
"source": "user_authored",
"severity": "high",
"is_active": true,
"version": 1
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.