Notifications
Create a shared email destination
Creates a shared_email destination with status pending and sends a verification
email to the address. The link expires after 7 days. The destination cannot receive
notifications until the recipient confirms. Addresses belonging to project members
are rejected; those members manage their own personal notification preferences in
the Kapso app.
Slack channels are added from the Kapso app under Notifications. Once connected
they appear in GET /notifications/destinations and can be routed like any other
destination. Requesting kind: slack_channel here returns 400.
Creating a destination for an address that was previously removed reuses the
existing destination: it returns to pending and a new verification email is sent.
POST
/
notifications
/
destinations
Create a shared email destination
curl --request POST \
--url https://api.kapso.ai/platform/v1/notifications/destinations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"kind": "shared_email",
"address": "ops@example.com",
"label": "Ops inbox"
}
'import requests
url = "https://api.kapso.ai/platform/v1/notifications/destinations"
payload = {
"kind": "shared_email",
"address": "ops@example.com",
"label": "Ops inbox"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({kind: 'shared_email', address: 'ops@example.com', label: 'Ops inbox'})
};
fetch('https://api.kapso.ai/platform/v1/notifications/destinations', 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.kapso.ai/platform/v1/notifications/destinations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'kind' => 'shared_email',
'address' => 'ops@example.com',
'label' => 'Ops inbox'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kapso.ai/platform/v1/notifications/destinations"
payload := strings.NewReader("{\n \"kind\": \"shared_email\",\n \"address\": \"ops@example.com\",\n \"label\": \"Ops inbox\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://api.kapso.ai/platform/v1/notifications/destinations")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"kind\": \"shared_email\",\n \"address\": \"ops@example.com\",\n \"label\": \"Ops inbox\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kapso.ai/platform/v1/notifications/destinations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"kind\": \"shared_email\",\n \"address\": \"ops@example.com\",\n \"label\": \"Ops inbox\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "6f708192-0314-42d5-b6e7-f8091a2b3c4d",
"kind": "shared_email",
"label": "Ops inbox",
"status": "pending",
"channel": "email",
"address": "ops@example.com",
"verified_at": null,
"slack_channel_binding_id": null,
"workspace_name": null,
"user_id": null,
"created_at": "2026-09-01T11:58:00.000000Z",
"updated_at": "2026-09-01T11:58:00.000000Z"
}
}Was this page helpful?
⌘I
Create a shared email destination
curl --request POST \
--url https://api.kapso.ai/platform/v1/notifications/destinations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"kind": "shared_email",
"address": "ops@example.com",
"label": "Ops inbox"
}
'import requests
url = "https://api.kapso.ai/platform/v1/notifications/destinations"
payload = {
"kind": "shared_email",
"address": "ops@example.com",
"label": "Ops inbox"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({kind: 'shared_email', address: 'ops@example.com', label: 'Ops inbox'})
};
fetch('https://api.kapso.ai/platform/v1/notifications/destinations', 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.kapso.ai/platform/v1/notifications/destinations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'kind' => 'shared_email',
'address' => 'ops@example.com',
'label' => 'Ops inbox'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kapso.ai/platform/v1/notifications/destinations"
payload := strings.NewReader("{\n \"kind\": \"shared_email\",\n \"address\": \"ops@example.com\",\n \"label\": \"Ops inbox\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://api.kapso.ai/platform/v1/notifications/destinations")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"kind\": \"shared_email\",\n \"address\": \"ops@example.com\",\n \"label\": \"Ops inbox\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kapso.ai/platform/v1/notifications/destinations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"kind\": \"shared_email\",\n \"address\": \"ops@example.com\",\n \"label\": \"Ops inbox\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "6f708192-0314-42d5-b6e7-f8091a2b3c4d",
"kind": "shared_email",
"label": "Ops inbox",
"status": "pending",
"channel": "email",
"address": "ops@example.com",
"verified_at": null,
"slack_channel_binding_id": null,
"workspace_name": null,
"user_id": null,
"created_at": "2026-09-01T11:58:00.000000Z",
"updated_at": "2026-09-01T11:58:00.000000Z"
}
}
