GET /alerts
curl --request GET \
--url https://api.example.com/alertsimport requests
url = "https://api.example.com/alerts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/alerts', 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.example.com/alerts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/alerts"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/alerts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/alerts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"alerts": [
{
"severity": "spike",
"theme": "Burnout",
"count": 12,
"delta": 3.2,
"recommended_action": "Schedule a wellbeing check-in with the engineering team lead"
}
],
"flagged_count": 8,
"at_risk_pct": 4.2
}
Output
GET /alerts
Returns active Fast Brain flags and at-risk signals
GET
/
alerts
GET /alerts
curl --request GET \
--url https://api.example.com/alertsimport requests
url = "https://api.example.com/alerts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/alerts', 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.example.com/alerts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/alerts"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/alerts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/alerts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"alerts": [
{
"severity": "spike",
"theme": "Burnout",
"count": 12,
"delta": 3.2,
"recommended_action": "Schedule a wellbeing check-in with the engineering team lead"
}
],
"flagged_count": 8,
"at_risk_pct": 4.2
}
Returns active Fast Brain flags and at-risk signals. Anonymised — no individual user data.
Query parameters
string
default:"all"
Filter by severity:
spike, crisis, or all.integer
default:"20"
Maximum alerts to return.
Response
array
Array of
{severity, theme, count, delta, recommended_action} objects.integer
Users with active Fast Brain flags (anonymised count).
float
Percentage of cohort currently above distress baseline.
Example
curl -X GET "https://api.togetherwithkai.com/v1/affective/alerts?severity=all&limit=20" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"alerts": [
{
"severity": "spike",
"theme": "Burnout",
"count": 12,
"delta": 3.2,
"recommended_action": "Schedule a wellbeing check-in with the engineering team lead"
}
],
"flagged_count": 8,
"at_risk_pct": 4.2
}
Crisis-level alerts trigger platform native notifications when received via webhook. See the pricing page for webhook handling pseudocode.