viakite
Dashboard

API/Alerts/Try an unsaved rule on the last 7 days

Try an unsaved rule on the last 7 days

POST/v1/projects/{project}/alerts/preview

How often the rule would have fired, checked once a minute.

Secret keyapi.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).

Body

namestringup to 100 chars
signalobject
Measures: analytics visitors, pageviews, events, conversions, revenue; monitoring errors, crash_free_rate, new_issues, slow_screens, uptime; logs matching_lines; updates failed_installs, crash_rate. events, conversions and matching_lines need event (an event name, goal or search).
Show 3 fields
productstringrequired
analyticsmonitoringlogsupdates
measurestringrequired
eventstringrequiredup to 255 chars
filtersAlertFilter[]up to 20 items
Such as source is Instagram.
Show 3 fields
propertystringrequiredup to 100 chars
operatorstringrequired
isis_notcontainsnot_contains
valuestringrequiredup to 255 chars
conditionobject
Above and below compare with threshold; up_by, down_by and changed_by (either way) take a percentage and compare_to: previous_period, same_time_last_week, or usual (the same window on the same weekday, averaged over the last 4 weeks that had data, at least 2). Rules against usual are unusual-traffic alerts: no reminders, and at most one fired message per window (at least an hour apart). no_data takes neither.
Show 3 fields
typestringrequired
abovebelowup_bydown_bychanged_byno_data
thresholdnumberrequired
compare_tostringrequired
previous_periodsame_time_last_weekusual
window_minutesinteger5–1440
severitystring
infowarningcritical
channelsstring[]
At least one channel, or a destination instead.
emailwebhookbell
recipientsobject
Up to 50 of each.
Show 3 fields
member_idsstring[]required
group_idsstring[]required
emailsstring[]required
destination_idsstring[]up to 10 items
Slack and Teams destinations of the project.
is_enabledboolean

Responses

The result.

fromstring · date-timerequired
A time in UTC, ISO 8601.
tostring · date-timerequired
A time in UTC, ISO 8601.
checksintegerrequired
firedintegerrequired
fired_atstring · date-time[]required
A time in UTC, ISO 8601.
Example response
1{
2 "from": "2026-11-21T09:30:00Z",
3 "to": "2026-11-21T09:30:00Z",
4 "checks": 1,
5 "fired": 1,
6 "fired_at": [
7 "2026-11-21T09:30:00Z"
8 ]
9}

Errors

Every error has the same shape: error.code, a message for people and details.

StatusCode
422validation_error
501not_available_yet