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.
Path parameters
project
The project's id (
prj_…).Body
kind
slackteamsname
url
The incoming webhook URL; write-only.
Responses
The new destination.
id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).org_id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).project_id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).kind
slackteamsname
url_hint
The URL's host and last four characters.
created_at
A time in UTC, ISO 8601.
updated_at
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.
| Status | Code |
|---|---|
validation_error | |
destination_limit | |
provider_not_configured |