Skip to main content
POST
/
notifications
/
channels
curl -X POST "https://kodostatus.com/api/v1/notifications/channels" \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "slack",
    "name": "Engineering Alerts",
    "config": {
      "webhook_url": "https://hooks.slack.com/services/..."
    }
  }'
{
  "id": "uuid",
  "type": "slack",
  "name": "Engineering Alerts",
  "enabled": true
}

Body Parameters

type
string
required
Channel type: email, slack, discord, webhook, pagerduty, opsgenie
name
string
required
Channel name
config
object
required
Channel-specific configuration (see examples below)

Config by Type

{
  "webhook_url": "https://hooks.slack.com/services/..."
}

Response

Returns the created channel object.
curl -X POST "https://kodostatus.com/api/v1/notifications/channels" \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "slack",
    "name": "Engineering Alerts",
    "config": {
      "webhook_url": "https://hooks.slack.com/services/..."
    }
  }'
{
  "id": "uuid",
  "type": "slack",
  "name": "Engineering Alerts",
  "enabled": true
}