curl --request POST \
--url https://api.range.org/v1/risk/channels \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "My Slack Channel",
"type": "slack",
"params": {
"webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx"
}
}
'import requests
url = "https://api.range.org/v1/risk/channels"
payload = {
"name": "My Slack Channel",
"type": "slack",
"params": { "webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx" }
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'My Slack Channel',
type: 'slack',
params: {webhook_url: 'https://hooks.slack.com/services/T00/B00/xxxx'}
})
};
fetch('https://api.range.org/v1/risk/channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.range.org/v1/risk/channels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'My Slack Channel',
'type' => 'slack',
'params' => [
'webhook_url' => 'https://hooks.slack.com/services/T00/B00/xxxx'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.range.org/v1/risk/channels"
payload := strings.NewReader("{\n \"name\": \"My Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.range.org/v1/risk/channels")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v1/risk/channels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"My Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"workspace_id": "workspace-123",
"name": "My Slack Channel",
"type": "slack",
"enabled": true,
"connected": true,
"created_at": "2026-05-14T12:00:00.000Z",
"updated_at": "2026-05-14T12:00:00.000Z",
"params": {
"webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx"
},
"deleted_at": null
}Create a channel
Creates a single channel for your workspace. Slack, Discord, and generic webhooks require params.webhook_url; PagerDuty requires params.routing_key; Email requires params.recipients (array of addresses); incident.io requires params.url; Telegram params are generated server-side.
curl --request POST \
--url https://api.range.org/v1/risk/channels \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "My Slack Channel",
"type": "slack",
"params": {
"webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx"
}
}
'import requests
url = "https://api.range.org/v1/risk/channels"
payload = {
"name": "My Slack Channel",
"type": "slack",
"params": { "webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx" }
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'My Slack Channel',
type: 'slack',
params: {webhook_url: 'https://hooks.slack.com/services/T00/B00/xxxx'}
})
};
fetch('https://api.range.org/v1/risk/channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.range.org/v1/risk/channels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'My Slack Channel',
'type' => 'slack',
'params' => [
'webhook_url' => 'https://hooks.slack.com/services/T00/B00/xxxx'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.range.org/v1/risk/channels"
payload := strings.NewReader("{\n \"name\": \"My Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.range.org/v1/risk/channels")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v1/risk/channels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"My Slack Channel\",\n \"type\": \"slack\",\n \"params\": {\n \"webhook_url\": \"https://hooks.slack.com/services/T00/B00/xxxx\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"workspace_id": "workspace-123",
"name": "My Slack Channel",
"type": "slack",
"enabled": true,
"connected": true,
"created_at": "2026-05-14T12:00:00.000Z",
"updated_at": "2026-05-14T12:00:00.000Z",
"params": {
"webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx"
},
"deleted_at": null
}Authorizations
Authorization method required to allow user to access the api endpoints.
Body
Display name for the channel.
1 - 255"My Slack Channel"
Channel delivery type.
slack, telegram, discord, webhook, pagerduty, email, incidentio "slack"
Type-specific parameters. Slack, Discord, and generic webhooks require webhook_url. PagerDuty requires routing_key. Email requires recipients (array of addresses). incident.io requires url and token. Telegram is generated server-side.
{
"webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx"
}
Response
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
"workspace-123"
"My Slack Channel"
slack, telegram, discord, webhook, pagerduty, email, incidentio "slack"
true
Whether the channel is ready to receive deliveries. Always true except for a telegram channel that has not yet linked a chat.
true
"2026-05-14T12:00:00.000Z"
"2026-05-14T12:00:00.000Z"
Type-specific channel parameters.
{
"webhook_url": "https://hooks.slack.com/services/T00/B00/xxxx"
}
Soft-delete timestamp. Null while the channel is active.
null
Was this page helpful?