Get delivery rule options
curl --request GET \
--url https://api.sazabi.com/v1/notification-delivery-rules/optionsimport requests
url = "https://api.sazabi.com/v1/notification-delivery-rules/options"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sazabi.com/v1/notification-delivery-rules/options', 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.sazabi.com/v1/notification-delivery-rules/options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sazabi.com/v1/notification-delivery-rules/options"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sazabi.com/v1/notification-delivery-rules/options")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sazabi.com/v1/notification-delivery-rules/options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"destinations": [
{
"id": "<string>",
"channel": "slack_channel",
"destinationKey": "<string>",
"displayName": "<string>",
"isDeliverable": true
}
],
"notificationTypes": [
{
"notificationType": "issue_triggered",
"label": "<string>",
"conditions": [
"component"
],
"channels": [
"slack_channel",
"teams_channel",
"discord_channel",
"incident_io",
"pagerduty",
"rootly",
"better_stack",
"webhook"
]
}
],
"components": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"lifecycle": "active"
}
],
"teams": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"ownedComponentCount": 4503599627370495
}
],
"channelCatalogs": {
"slack": {
"status": "pending",
"lastSucceededAt": "<string>",
"isInitialSyncPending": true
},
"microsoftTeams": {
"status": "pending",
"lastSucceededAt": "<string>",
"isInitialSyncPending": true
}
}
}Notification delivery rules
Get delivery rule options
List available destinations, events, and conditions for project delivery rules.
GET
https://api.sazabi.com/v1
/
notification-delivery-rules
/
options
Get delivery rule options
curl --request GET \
--url https://api.sazabi.com/v1/notification-delivery-rules/optionsimport requests
url = "https://api.sazabi.com/v1/notification-delivery-rules/options"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sazabi.com/v1/notification-delivery-rules/options', 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.sazabi.com/v1/notification-delivery-rules/options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sazabi.com/v1/notification-delivery-rules/options"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sazabi.com/v1/notification-delivery-rules/options")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sazabi.com/v1/notification-delivery-rules/options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"destinations": [
{
"id": "<string>",
"channel": "slack_channel",
"destinationKey": "<string>",
"displayName": "<string>",
"isDeliverable": true
}
],
"notificationTypes": [
{
"notificationType": "issue_triggered",
"label": "<string>",
"conditions": [
"component"
],
"channels": [
"slack_channel",
"teams_channel",
"discord_channel",
"incident_io",
"pagerduty",
"rootly",
"better_stack",
"webhook"
]
}
],
"components": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"lifecycle": "active"
}
],
"teams": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"ownedComponentCount": 4503599627370495
}
],
"channelCatalogs": {
"slack": {
"status": "pending",
"lastSucceededAt": "<string>",
"isInitialSyncPending": true
},
"microsoftTeams": {
"status": "pending",
"lastSucceededAt": "<string>",
"isInitialSyncPending": true
}
}
}Query Parameters
Project whose notification delivery rules are being managed.