Palette
Close deals, approve POs, and query data
Sanka is a purpose-built shortcut app to control and grow revenue.
Close deals, approve POs, and query data without leaving your keyboard.
amount > 1000
currency is required
Deny write + reason code amount_exceeds_limit
{
"policy_key": "invoice_update_guard",
"object_type": "invoice",
"action": "update",
"rules": [
{
"rule_key": "invoice_amount_limit",
"status": "active",
"priority": 10,
"rule_definition": {
"type": "max_value",
"field": "amount",
"max": 1000
},
"reason_code": "amount_exceeds_limit",
"reason_message": "Amount exceeds policy limit."
},
{
"rule_key": "invoice_required_currency",
"status": "active",
"priority": 20,
"rule_definition": {
"type": "required_fields",
"fields": ["currency"]
},
"reason_code": "missing_required_fields",
"reason_message": "Required fields are missing."
}
]
}Policies are stored as JSON (GovernanceRule.rule_definition / GovernancePolicyVersion.rule_snapshot) and evaluated by /v1/execute.
If you have repetitive work or things to complete while you sleep, Workflow is a good fit.
import json
import requests
JWT = "YOUR_ACCESS_TOKEN"
H = {"Authorization": f"Bearer {JWT}", "Content-Type": "application/json"}
P = {"workspace_id":"12345678","object_type":"invoice","operation":"update","target_id":"0001","payload":{"vendor":"Apple","currency":"USD","line_items":[{"item_name":"MacBook Pro 14-inch","quantity":1,"unit_price":2000}],"notes":"macbook-purchase-request"},"dry_run":True}
run = requests.post("https://api.sanka.com/v1/execute", json=P, headers=H, timeout=15).json()
result = {"decision": run["data"]["decision"], "reasons": run["data"]["reasons"]}
print("decision:", result["decision"])
print("reasons:", result["reasons"])
with open("invoice_approve_dryrun.json", "w", encoding="utf-8") as f:
json.dump(result, f, ensure_ascii=False, indent=2)
print("saved:", "invoice_approve_dryrun.json")reasons
This payload returns directly to UI, so users instantly know what to fix.
We built a policy engine that AI can't break.
Ensure every action complies with company standards.
AppLog with full context preservation
WORM - Write Once, Read Many
Unify data and integrate with other apps
for ultra-fast performance.
Role-Based Access Control
Pull data in. Run jobs out.