Send a test message
curl --request POST \
--url https://app.trustivan.com/api/v1/notification-targets/{id}/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/notification-targets/{id}/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/notification-targets/{id}/test', 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}/test"
req, _ := http.NewRequest("POST", 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))
}{}Send a test message
Queues a sample notification through the real outbox and the real worker, because a test that took a different path would not exercise the SSRF guard, the stored secret or the vendor’s rendering.
202, not 200: the outcome appears on the destination’s own
last_success_at and last_error a few seconds later.
POST
/
notification-targets
/
{id}
/
test
Send a test message
curl --request POST \
--url https://app.trustivan.com/api/v1/notification-targets/{id}/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/notification-targets/{id}/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/notification-targets/{id}/test', 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}/test"
req, _ := http.NewRequest("POST", 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))
}{}Authorizations
Response
Queued for delivery by the worker.
The response is of type object.