Create a notification channel
Changed onCreates a notification channel in the organization and returns it. The server assigns the identifier.
type selects the kind of channel: an email channel takes its recipients in email, and a Slack channel takes an incoming webhook URL in slack. The response shows the webhook URL with its secret token replaced by …. If the body is invalid, such as a webhook URL that isn't a Slack incoming webhook URL, the request fails with 400.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Request body
The body of a request that creates or replaces an email channel.
The body of a request that creates a Slack channel.
Example request
{
"labels": {
"env": "test"
},
"managed_by": {
"owner": "terraform"
}
}Response
The created notification channel.
A notification channel is a destination for budget alerts: a list of email addresses or a Slack incoming webhook. A budget's notification rule sends its alerts to the channels it lists, and one channel can serve many rules.
type tells the two kinds apart. An email channel carries its settings in email, and a Slack channel carries them in slack.
A notification channel that emails each message to its recipients through Konnect's email service.
A notification channel that posts each message to a Slack incoming webhook the organization created in its own workspace.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"labels": {
"env": "test"
},
"managed_by": {
"owner": "terraform"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- info
endpoint added
- info