Policies
List policies
Retrieve a paginated list of policies with optional filtering
get/api/v1/policies
Request
- Base URLhttps://agent.getaxonflow.com
- Authnone declared. Required headers: X-Tenant-ID
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
type'content' | 'user' | 'risk' | 'cost' | 'context_aware' | 'media' | 'rate-limit' | 'budget' | 'time-access' | 'role-access' | 'mcp' | 'connector'
Policy type determines evaluation context:
- content: Evaluates request/response content
- user: Evaluates user attributes
- risk: Evaluates risk scores
- cost: Evaluates cost estimates
- context_aware: Context-aware controls (tenant isolation, debug restriction, sensitive-data control)
- media: Media governance policies (multimodal image governance)
- rate-limit, budget, time-access: MCP rate/budget controls
- role-access, mcp, connector: MCP access controls
Filter by policy type
enabledboolean
Filter by enabled status
searchstring
Search in policy name and description
pageinteger
Page number (1-indexed)
page_sizeinteger
Items per page
sort_by'name' | 'created_at' | 'updated_at' | 'priority'
Sort field
sort_dir'asc' | 'desc'
Sort direction
Headers
X-Tenant-IDstring required
Example:tenant_abc123
Tenant identifier for multi-tenancy isolation. When calling through the Agent (recommended), this header is stamped automatically from the authenticated client — you do not set it yourself. Required only on direct Orchestrator calls (internal deployments).
Response
List of policies
Example response
{
"policies": [
{
"id": "pol_abc123def456",
"name": "Block PII Access",
"description": "Prevent unauthorized access to personally identifiable information",
"category": "dynamic-risk",
"actions": [
{
"config": {
"message": "Request blocked by policy",
"channel": "security-alerts"
}
}
]
}
],
"pagination": {
"page": 1,
"page_size": 20,
"total_items": 45,
"total_pages": 3
}
}Changes
No recorded changes to this operation across all 1 revision of this API.