OverviewPlatformsAPI Reference
Alerts

Create a channel

Creates a webhook (the default), email or Slack channel. Slack needs a connected workspace, otherwise 409. Telegram chats are connected in the dashboard. A webhook's signing secret appears only in this response.


POST
/v1/channels

Authorization

bearerAuth
AuthorizationBearer <token>

An API key from POST /v1/api-keys. Keys start with ref_.

In: header

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/channels" \  -H "Content-Type: application/json" \  -d '{    "kind": "slack",    "channelId": "string",    "channelName": "string"  }'
{  "id": "string",  "label": "string",  "stats": {    "alerts": 0,    "activeAlerts": 0,    "lastDeliveryAt": "string",    "last7d": {      "total": 0,      "failed": 0    }  },  "createdAt": "string",  "kind": "slack",  "config": {    "channelId": "string",    "channelName": "string",    "events": [      "mention.spike"    ]  }}
Was this page helpful?