Population Stability Index per dimension
curl --request GET \
--url https://api.blindsight.example.com/api/runtime-security/drift \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.blindsight.example.com/api/runtime-security/drift"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.blindsight.example.com/api/runtime-security/drift', 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.blindsight.example.com/api/runtime-security/drift",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.blindsight.example.com/api/runtime-security/drift"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.blindsight.example.com/api/runtime-security/drift")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blindsight.example.com/api/runtime-security/drift")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"baseline": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"total_events": 123
},
"recent": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"total_events": 123
},
"dimensions": [
{
"name": "<string>",
"label": "<string>",
"psi": 123,
"severity": "stable",
"baseline_distribution": {},
"recent_distribution": {}
}
]
}Analytics
Population Stability Index per dimension
Computes PSI between a baseline window (default 30 days) and a recent window (default 7 days) for eight dimensions: verdict, direction, source_app, model, provider, pii_category, injection_label, blocked_reason. PSI > 0.25 is the “model is missing a new pattern” signal.
GET
/
api
/
runtime-security
/
drift
Population Stability Index per dimension
curl --request GET \
--url https://api.blindsight.example.com/api/runtime-security/drift \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.blindsight.example.com/api/runtime-security/drift"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.blindsight.example.com/api/runtime-security/drift', 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.blindsight.example.com/api/runtime-security/drift",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.blindsight.example.com/api/runtime-security/drift"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.blindsight.example.com/api/runtime-security/drift")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blindsight.example.com/api/runtime-security/drift")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"baseline": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"total_events": 123
},
"recent": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"total_events": 123
},
"dimensions": [
{
"name": "<string>",
"label": "<string>",
"psi": 123,
"severity": "stable",
"baseline_distribution": {},
"recent_distribution": {}
}
]
}Authorizations
ApiKeyAuthBlindsightKeyAuthSessionCookieAuth
Blindsight workspace API key (ak_live_…). Use this header for the
scan API and the OpenAI proxy routes. The required permission
scope is runtime_security.scan for scan endpoints,
runtime_security.view for read-only analytics, and
runtime_security.manage for configuration changes.
Query Parameters
Required range:
1 <= x <= 365Required range:
1 <= x <= 90
