Skip to content

Send a test notification to one destination (org admins)

POST
/v1/auto/routes/test
curl --request POST \
--url https://api.monita.ai/v1/auto/routes/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "route": { "id": "example", "name": "example", "enabled": true, "channel": { "type": "email", "target": "example" }, "pillars": [ "volume" ], "minSeverity": "low", "domainIds": [ "example" ] } }'
Media typeapplication/json
object
route
required
object
id
string
<= 40 characters
name
string
<= 80 characters
enabled
boolean
channel
required
object
type
required
string
Allowed values: email slack teams webhook
target
required
string
>= 1 characters <= 2000 characters
pillars
required
Array<string>
>= 1 items <= 3 items
Allowed values: volume data compliance
minSeverity
string
Allowed values: low medium high critical
domainIds
Array<string>
<= 100 items

Delivery outcome

Media typeapplication/json
object
ok
required
boolean
error
string
skipped
Array<object>
object
target
required
string
reason
required
string
Examplegenerated
{
"ok": true,
"error": "example",
"skipped": [
{
"target": "example",
"reason": "example"
}
]
}

Invalid destination

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}

Admins only

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}

Delivery unavailable

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}