{
"name": "credits_low",
"threshold": {
"credits_below": 100
},
"channels": {
"email": "ops@example.com"
}
}curl --location --request POST '/api/admin/alert-rules' \
--header 'x-admin-token: {{adminToken}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "credits_low",
"threshold": {
"credits_below": 100
},
"channels": {
"email": "ops@example.com"
}
}'