Lists alert rules for a tenant. Alert rules define conditions under which the platform sends notifications — e.g., when a message enters input-required, when an agent goes unhealthy, or when a policy violation occurs.
POST
/
policies
/
get_alerts
List alert rules
curl --request POST \
--url https://api.svantic.com/policies/get_alerts \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.svantic.com/policies/get_alerts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.svantic.com/policies/get_alerts"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.svantic.com/policies/get_alerts"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"rules": [
{
"rule_id": "<string>",
"tenant_id": "<string>",
"name": "Approval needed",
"condition": {
"event": "message.input_required",
"filters": {}
},
"notifications": [
{
"type": "webhook",
"config": {},
"enabled": true
}
],
"enabled": true,
"description": "Notify when a message needs human input.",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "Invalid or expired token",
"code": "unauthorized"
}{
"error": "JWT does not include the required scope for this operation",
"code": "forbidden"
}{
"error": "Internal server error",
"code": "INTERNAL_ERROR",
"request_id": "req_01EXAMPLE",
"timestamp": "2026-03-31T12:00:00.000Z"
}Body
application/json
Empty body. The tenant is derived from the caller's JWT.
Response
Alert rule list.
List of alert rules.
Show child attributes
Show child attributes
⌘I
List alert rules
curl --request POST \
--url https://api.svantic.com/policies/get_alerts \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.svantic.com/policies/get_alerts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.svantic.com/policies/get_alerts"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.svantic.com/policies/get_alerts"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"rules": [
{
"rule_id": "<string>",
"tenant_id": "<string>",
"name": "Approval needed",
"condition": {
"event": "message.input_required",
"filters": {}
},
"notifications": [
{
"type": "webhook",
"config": {},
"enabled": true
}
],
"enabled": true,
"description": "Notify when a message needs human input.",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "Invalid or expired token",
"code": "unauthorized"
}{
"error": "JWT does not include the required scope for this operation",
"code": "forbidden"
}{
"error": "Internal server error",
"code": "INTERNAL_ERROR",
"request_id": "req_01EXAMPLE",
"timestamp": "2026-03-31T12:00:00.000Z"
}