Tenant Policies
Create a dynamic policy
Create a new dynamic policy. category is required and must start with dynamic- or media- (e.g., dynamic-risk, media-safety).
post/api/v1/tenant-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.
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).
X-User-IDstring
Example:user@company.com
User identifier for audit logging
Request body
Example request
{
"actions": [
{
"config": {
"message": "Request blocked by policy",
"channel": "security-alerts"
}
}
]
}Response
Dynamic policy created
Example response
{
"policy": {
"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"
}
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.