Test notification settings
const options = {
method: 'POST',
headers: {cookie: 'session=', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.example.com/v1/regions/global/notifications/settings/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/regions/global/notifications/settings/test"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "session=")
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))
}curl --request POST \
--url https://api.example.com/v1/regions/global/notifications/settings/test \
--header 'Content-Type: application/json' \
--cookie session= \
--data '{}'import requests
url = "https://api.example.com/v1/regions/global/notifications/settings/test"
payload = {}
headers = {
"cookie": "session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"channel": "<string>",
"sent": true
},
"meta": {}
}Settings
Test notification settings
Send test notification to verify settings
POST
/
v1
/
regions
/
global
/
notifications
/
settings
/
test
Test notification settings
const options = {
method: 'POST',
headers: {cookie: 'session=', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.example.com/v1/regions/global/notifications/settings/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/regions/global/notifications/settings/test"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "session=")
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))
}curl --request POST \
--url https://api.example.com/v1/regions/global/notifications/settings/test \
--header 'Content-Type: application/json' \
--cookie session= \
--data '{}'import requests
url = "https://api.example.com/v1/regions/global/notifications/settings/test"
payload = {}
headers = {
"cookie": "session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"channel": "<string>",
"sent": true
},
"meta": {}
}Authorizations
Session-based authentication via HTTP-only cookie
Body
application/json
Channel to test
Available options:
inApp, email, slack Was this page helpful?