Create a policy
Creates a new guard policy for the specified tenant. The policy scope, name, and decision are required. Requires admin scope.
POST
Create a policy
Body
application/json
Response
Policy created.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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"
}
}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"
}
}