Creates a new guard policy for the specified tenant. The policy scope, name, and decision are required. Requires admin scope.
curl --request POST \
--url https://api.svantic.com/policies/create_policy \
--header 'Content-Type: application/json' \
--data '
{
"tenant_id": "string",
"scope": "tool",
"name": "string",
"decision": "string",
"description": "string",
"match": {
"example_key": "example_value"
},
"reason": "string",
"approvers": [
"string"
],
"evaluator": {
"example_key": "example_value"
},
"priority": 0,
"enabled": true
}
'{
"policy": {
"policy_id": "string",
"tenant_id": "string",
"scope": "tool",
"name": "string",
"decision": "string",
"description": "string",
"match": {
"example_key": "example_value"
},
"reason": "string",
"approvers": [
"string"
],
"evaluator": {
"example_key": "example_value"
},
"priority": 0,
"enabled": true,
"created_at": "2026-03-31T12:00:00.000Z",
"updated_at": "2026-03-31T12:00:00.000Z"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.svantic.com/llms.txt
Use this file to discover all available pages before exploring further.
Policy created.
Show child attributes
curl --request POST \
--url https://api.svantic.com/policies/create_policy \
--header 'Content-Type: application/json' \
--data '
{
"tenant_id": "string",
"scope": "tool",
"name": "string",
"decision": "string",
"description": "string",
"match": {
"example_key": "example_value"
},
"reason": "string",
"approvers": [
"string"
],
"evaluator": {
"example_key": "example_value"
},
"priority": 0,
"enabled": true
}
'{
"policy": {
"policy_id": "string",
"tenant_id": "string",
"scope": "tool",
"name": "string",
"decision": "string",
"description": "string",
"match": {
"example_key": "example_value"
},
"reason": "string",
"approvers": [
"string"
],
"evaluator": {
"example_key": "example_value"
},
"priority": 0,
"enabled": true,
"created_at": "2026-03-31T12:00:00.000Z",
"updated_at": "2026-03-31T12:00:00.000Z"
}
}