Policy API
Operation
Endpoint
Compose a Candidate Policy
POST /v1/policy/{tenant_id}/compose
Authorization: Bearer <token>
Content-Type: application/json
{
"content": {
"version": 5,
"rules": [
{
"id": "rule_invoice_under_5k",
"applies_to": ["outbound_payment"],
"when": {
"amount.lte": { "currency": "USD", "value": "5000" },
"counterparty.in": "vendors.trusted"
},
"execute": "auto"
},
{
"id": "rule_invoice_above_5k",
"applies_to": ["outbound_payment"],
"when": { "amount.gt": { "currency": "USD", "value": "5000" } },
"require": "cfo_approval",
"execute": "confirm"
}
],
"lists": { "vendors.trusted": ["cp_aws", "cp_gcp"] }
}
}Sign and Activate
Get the Active Policy
List Versions
Evaluate an Action
Three Possible Decisions
Decision
Meaning
Decision vocabulary across surfaces
Action Vocabulary
Lint a Draft
Simulate Against a Version
Replay a Period
Diff Two Versions
What's Next
Last updated
