curl --request GET \
--url https://api.assembly.com/v1/installs/{installId}/notification-settings \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.assembly.com/v1/installs/{installId}/notification-settings"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.assembly.com/v1/installs/{installId}/notification-settings', 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.assembly.com/v1/installs/{installId}/notification-settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.assembly.com/v1/installs/{installId}/notification-settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
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.assembly.com/v1/installs/{installId}/notification-settings")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.assembly.com/v1/installs/{installId}/notification-settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"actionLabel": {
"pluralNoun": "invoices",
"singularNoun": "invoice",
"verb": "review"
},
"notifications": [
{
"default": {
"email": false,
"product": true
},
"id": "invoice-paid",
"label": "Invoice paid",
"surfaces": [
"product",
"email"
]
}
],
"object": "notificationSettings"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}Get an app install's notification settings
Returns the notification settings an app declares for the given install. Each
setting’s id is the value to pass as notificationSettingId when creating a
notification via POST /v1/notifications. Installs whose backing app declares no
notification settings return an empty notifications array.
curl --request GET \
--url https://api.assembly.com/v1/installs/{installId}/notification-settings \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.assembly.com/v1/installs/{installId}/notification-settings"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.assembly.com/v1/installs/{installId}/notification-settings', 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.assembly.com/v1/installs/{installId}/notification-settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.assembly.com/v1/installs/{installId}/notification-settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
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.assembly.com/v1/installs/{installId}/notification-settings")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.assembly.com/v1/installs/{installId}/notification-settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"actionLabel": {
"pluralNoun": "invoices",
"singularNoun": "invoice",
"verb": "review"
},
"notifications": [
{
"default": {
"email": false,
"product": true
},
"id": "invoice-paid",
"label": "Invoice paid",
"surfaces": [
"product",
"email"
]
}
],
"object": "notificationSettings"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}Authorizations
Path Parameters
Unique identifier of the app install
Response
OK
ActionLabel is the app's generic "[verb] [count] [noun]" label, present only when declared.
Show child attributes
Show child attributes
Notifications is every notification setting the app exposes for this install. Empty when the
install's backing app declares no settings. A setting's id is the value to pass as
notificationSettingId when creating a notification via POST /v1/notifications. If the
recipient's preferences disable every requested delivery target for a setting, that POST
creates nothing and returns 202.
Show child attributes
Show child attributes
"notificationSettings"