viakite
Dashboard

API/Alerts/Add a Slack or Microsoft Teams destination

Add a Slack or Microsoft Teams destination

POST/v1/projects/{project}/alert-destinations

Kind, name and url are required. url is the incoming webhook URL made in Slack (hooks.slack.com) or Teams (webhook.office.com, or a Teams workflow on logic.azure.com or api.powerplatform.com). It is sealed and never shown again; url_hint tells destinations apart. Needs alerts.manage.

Secret keyNeeds alerts.manageapi.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).

Body

kindstring
slackteams
namestringup to 100 chars
urlstring · uriup to 2048 chars
The incoming webhook URL; write-only.

Responses

The new destination.

idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
org_idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
project_idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
kindstringrequired
slackteams
namestringrequired
url_hintstringrequired
The URL's host and last four characters.
created_atstring · date-timerequired
A time in UTC, ISO 8601.
updated_atstring · date-timerequired
A time in UTC, ISO 8601.
Example response
1{
2 "id": "id_01JD8Q2M4W9XK3T7B5",
3 "org_id": "org_01JD8Q2M4W9XK3T7B5",
4 "project_id": "prj_01JD8Q2M4W9XK3T7B5",
5 "kind": "slack",
6 "name": "#alerts",
7 "url_hint": "hooks.slack.com/…/x9Qa",
8 "created_at": "2026-11-21T09:30:00Z",
9 "updated_at": "2026-11-21T09:30:00Z"
10}

Errors

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

StatusCode
422validation_error
409destination_limit
503provider_not_configured