POST /configure
curl --request POST \
--url https://api.example.com/configure \
--header 'Content-Type: application/json' \
--data '
{
"cohort_filters": {},
"anon_floor": 123,
"active_layers": [
{}
],
"alert_threshold": 123,
"kai_tone": "<string>"
}
'import requests
url = "https://api.example.com/configure"
payload = {
"cohort_filters": {},
"anon_floor": 123,
"active_layers": [{}],
"alert_threshold": 123,
"kai_tone": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
cohort_filters: {},
anon_floor: 123,
active_layers: [{}],
alert_threshold: 123,
kai_tone: '<string>'
})
};
fetch('https://api.example.com/configure', 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/configure",
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([
'cohort_filters' => [
],
'anon_floor' => 123,
'active_layers' => [
[
]
],
'alert_threshold' => 123,
'kai_tone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.example.com/configure"
payload := strings.NewReader("{\n \"cohort_filters\": {},\n \"anon_floor\": 123,\n \"active_layers\": [\n {}\n ],\n \"alert_threshold\": 123,\n \"kai_tone\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/configure")
.header("Content-Type", "application/json")
.body("{\n \"cohort_filters\": {},\n \"anon_floor\": 123,\n \"active_layers\": [\n {}\n ],\n \"alert_threshold\": 123,\n \"kai_tone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/configure")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"cohort_filters\": {},\n \"anon_floor\": 123,\n \"active_layers\": [\n {}\n ],\n \"alert_threshold\": 123,\n \"kai_tone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"config_id": "cfg_8f3a2b1c",
"applied_at": "2026-06-15T10:00:00Z",
"cohort_size": 142
}
Output
POST /configure
Update your organisation’s Affective Intelligence configuration
POST
/
configure
POST /configure
curl --request POST \
--url https://api.example.com/configure \
--header 'Content-Type: application/json' \
--data '
{
"cohort_filters": {},
"anon_floor": 123,
"active_layers": [
{}
],
"alert_threshold": 123,
"kai_tone": "<string>"
}
'import requests
url = "https://api.example.com/configure"
payload = {
"cohort_filters": {},
"anon_floor": 123,
"active_layers": [{}],
"alert_threshold": 123,
"kai_tone": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
cohort_filters: {},
anon_floor: 123,
active_layers: [{}],
alert_threshold: 123,
kai_tone: '<string>'
})
};
fetch('https://api.example.com/configure', 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/configure",
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([
'cohort_filters' => [
],
'anon_floor' => 123,
'active_layers' => [
[
]
],
'alert_threshold' => 123,
'kai_tone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.example.com/configure"
payload := strings.NewReader("{\n \"cohort_filters\": {},\n \"anon_floor\": 123,\n \"active_layers\": [\n {}\n ],\n \"alert_threshold\": 123,\n \"kai_tone\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/configure")
.header("Content-Type", "application/json")
.body("{\n \"cohort_filters\": {},\n \"anon_floor\": 123,\n \"active_layers\": [\n {}\n ],\n \"alert_threshold\": 123,\n \"kai_tone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/configure")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"cohort_filters\": {},\n \"anon_floor\": 123,\n \"active_layers\": [\n {}\n ],\n \"alert_threshold\": 123,\n \"kai_tone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"config_id": "cfg_8f3a2b1c",
"applied_at": "2026-06-15T10:00:00Z",
"cohort_size": 142
}
Updates the organisation’s Affective Intelligence configuration. Admin role required.
Request body
object
default:"{}"
Demographic or tag-based cohort definition. Filter by team, department, age range, tenure, or custom tag.
integer
default:"10"
Minimum group size floor. Must be at least 10.
array
default:"all"
Signal layers to include:
moods, states, topics, actions.float
default:"2.0"
Distress delta multiplier to trigger alert.
string
default:"community"
Kai’s language tone:
community, corporate, or clinical.Response
string
Confirmed configuration ID.
string
ISO 8601 timestamp when config takes effect.
integer
Number of users matching filters.
Example
curl -X POST "https://api.togetherwithkai.com/v1/affective/configure" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cohort_filters": {
"department": "engineering"
},
"anon_floor": 10,
"active_layers": ["moods", "states", "topics", "actions"],
"alert_threshold": 2.0,
"kai_tone": "corporate"
}'
{
"config_id": "cfg_8f3a2b1c",
"applied_at": "2026-06-15T10:00:00Z",
"cohort_size": 142
}
If
cohort_size is below your anon_floor, signals will not be surfaced on the dashboard. Expand your cohort filters or increase the monitored user base.⌘I