One destination
curl --request GET \
--url https://app.trustivan.com/api/v1/notification-targets/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/notification-targets/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/notification-targets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/notification-targets/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"target": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"channel": "<string>",
"configured": true,
"events": [
"<string>"
],
"only_blocking": true,
"enabled": true,
"consecutive_failures": 123,
"created_at": "2023-11-07T05:31:56Z",
"config": {},
"min_severity": "critical",
"disabled_at": "2023-11-07T05:31:56Z",
"last_success_at": "2023-11-07T05:31:56Z",
"last_failure_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"secret_rotated_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z"
}
}One destination
GET
/
notification-targets
/
{id}
One destination
curl --request GET \
--url https://app.trustivan.com/api/v1/notification-targets/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/notification-targets/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/notification-targets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/notification-targets/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"target": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"channel": "<string>",
"configured": true,
"events": [
"<string>"
],
"only_blocking": true,
"enabled": true,
"consecutive_failures": 123,
"created_at": "2023-11-07T05:31:56Z",
"config": {},
"min_severity": "critical",
"disabled_at": "2023-11-07T05:31:56Z",
"last_success_at": "2023-11-07T05:31:56Z",
"last_failure_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"secret_rotated_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z"
}
}Authorizations
Response
The destination, without its secret.
One outbound notification destination. The stored secret is not
here and has no read path at all, in any response: it is the customer's
own credential and TRUSTIVAN has no business showing it back. url is
absent for the same reason (for Slack and Teams the destination URL IS
the credential), and configured reports only whether a secret is set.
Show child attributes
Show child attributes