curl --request POST \
--url https://api.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation \
--cookie apsio_session=import requests
url = "https://api.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation"
headers = {"cookie": "apsio_session="}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {cookie: 'apsio_session='}};
fetch('https://api.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation', 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.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_COOKIE => "apsio_session=",
]);
$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.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cookie", "apsio_session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation")
.header("cookie", "apsio_session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'apsio_session='
response = http.request(request)
puts response.read_body{
"id": "<string>",
"kind": "slack",
"name": "<string>",
"host": "<string>",
"paused_until": "2023-11-07T05:31:56Z",
"consecutive_failures": 123,
"last_error_code": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"last_delivered_at": "2023-11-07T05:31:56Z",
"region": "us",
"handoff_enabled_at": "2023-11-07T05:31:56Z",
"daily_cap": 123,
"email": {
"address": "<string>",
"member": true,
"state": "pending",
"confirmed_at": "2023-11-07T05:31:56Z",
"unsubscribed_at": "2023-11-07T05:31:56Z"
},
"revoked_at": "2023-11-07T05:31:56Z"
}Send an email destination its confirmation again (owners, admins)
For an address that is pending or unsubscribed: a new link, valid 7 days. At most one every 10 minutes (429). A confirmed address is 409. Audited.
curl --request POST \
--url https://api.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation \
--cookie apsio_session=import requests
url = "https://api.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation"
headers = {"cookie": "apsio_session="}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {cookie: 'apsio_session='}};
fetch('https://api.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation', 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.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_COOKIE => "apsio_session=",
]);
$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.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cookie", "apsio_session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation")
.header("cookie", "apsio_session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apsio.io/v1/orgs/{orgId}/alerts/destinations/{destinationId}/send-confirmation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'apsio_session='
response = http.request(request)
puts response.read_body{
"id": "<string>",
"kind": "slack",
"name": "<string>",
"host": "<string>",
"paused_until": "2023-11-07T05:31:56Z",
"consecutive_failures": 123,
"last_error_code": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"last_delivered_at": "2023-11-07T05:31:56Z",
"region": "us",
"handoff_enabled_at": "2023-11-07T05:31:56Z",
"daily_cap": 123,
"email": {
"address": "<string>",
"member": true,
"state": "pending",
"confirmed_at": "2023-11-07T05:31:56Z",
"unsubscribed_at": "2023-11-07T05:31:56Z"
},
"revoked_at": "2023-11-07T05:31:56Z"
}Authorizations
The console session, set by /v1/auth/callback (__Host-apsio_session when host-only).
Path Parameters
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"0192f3a4-0000-7000-8000-00000000a001"
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"0192f3a4-0000-7000-8000-00000000a001"
Response
The destination
github and linear: the agent handoff, which opens issues instead of messages. email: one address (D39).
slack, webhook, github, linear, pagerduty, email What the console shows of the URL; the URL and a routing key are never sent.
Paused after repeated timeouts until then; a successful test send lifts it.
PagerDuty only.
us, eu github and linear: when an owner turned the handoff on; null while off.
github and linear: issues per project per day. email: alerts a day; past it, one summary.
email only.
Show child attributes
Show child attributes
github and linear: the App was uninstalled or the grant revoked.