Create Runtime App
curl --request POST \
--url https://api.your-blindsight.com/api/runtime-security/apps \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"accent_color": "<string>",
"template_key": "<string>",
"privacy_mode": "redacted_only",
"batch_interval_seconds": 300,
"dataset_field_picks": [
"<string>"
],
"free_form_tags": {},
"max_events_per_hour": 2,
"max_events_per_day": 2,
"require_signed_token": false,
"config": {
"thresholds": {
"block": 0.55,
"redact": 0.35,
"output_block": 0.55,
"output_redact": 0.35
},
"detectors": {
"injection": true,
"pii": true,
"ner": true,
"embedding_anomaly": false,
"perplexity": false,
"harm": true,
"topic_drift": false,
"agentic_guardrails": true
},
"ner": {
"threshold": 0.55,
"entities": [
"<string>"
]
},
"custom_phrases": [
"<string>"
],
"pii_rules": [
{
"name": "<string>",
"pattern": "<string>",
"category": "custom",
"score": 0.7,
"description": "<string>",
"flags": 0,
"priority": 0
}
],
"tool_policy": {
"allowlist": [
"<string>"
],
"denylist": [
"<string>"
]
},
"routing": {
"forbidden_providers": [
"<string>"
],
"provider": "<string>",
"upstream_base_url": "<string>"
},
"streaming": {
"strict": false,
"attachment_notice_enabled": true,
"attachment_notice_message": "🔒 Blindsight: analyzing attached file for security risks…"
},
"egress": {
"host_allowlist": [
"<string>"
]
},
"canaries": {
"enabled": false,
"phrases": [
"<string>"
]
},
"redaction": {
"style": "bracket"
},
"request_signing": {
"enabled": false,
"timestamp_skew_seconds": 300
},
"mcp": {
"min_trust_score": 0.4,
"tools": [
{
"name": "<string>",
"description": "",
"trust_score": 0,
"severity_top": "none",
"findings_count": 0,
"registered_at": "2023-11-07T05:31:56Z",
"last_scanned_at": "2023-11-07T05:31:56Z"
}
],
"enforcement": "block_high",
"pin_on_first_use": true,
"scan_results": true
}
}
}
'import requests
url = "https://api.your-blindsight.com/api/runtime-security/apps"
payload = {
"key": "<string>",
"name": "<string>",
"description": "<string>",
"accent_color": "<string>",
"template_key": "<string>",
"privacy_mode": "redacted_only",
"batch_interval_seconds": 300,
"dataset_field_picks": ["<string>"],
"free_form_tags": {},
"max_events_per_hour": 2,
"max_events_per_day": 2,
"require_signed_token": False,
"config": {
"thresholds": {
"block": 0.55,
"redact": 0.35,
"output_block": 0.55,
"output_redact": 0.35
},
"detectors": {
"injection": True,
"pii": True,
"ner": True,
"embedding_anomaly": False,
"perplexity": False,
"harm": True,
"topic_drift": False,
"agentic_guardrails": True
},
"ner": {
"threshold": 0.55,
"entities": ["<string>"]
},
"custom_phrases": ["<string>"],
"pii_rules": [
{
"name": "<string>",
"pattern": "<string>",
"category": "custom",
"score": 0.7,
"description": "<string>",
"flags": 0,
"priority": 0
}
],
"tool_policy": {
"allowlist": ["<string>"],
"denylist": ["<string>"]
},
"routing": {
"forbidden_providers": ["<string>"],
"provider": "<string>",
"upstream_base_url": "<string>"
},
"streaming": {
"strict": False,
"attachment_notice_enabled": True,
"attachment_notice_message": "🔒 Blindsight: analyzing attached file for security risks…"
},
"egress": { "host_allowlist": ["<string>"] },
"canaries": {
"enabled": False,
"phrases": ["<string>"]
},
"redaction": { "style": "bracket" },
"request_signing": {
"enabled": False,
"timestamp_skew_seconds": 300
},
"mcp": {
"min_trust_score": 0.4,
"tools": [
{
"name": "<string>",
"description": "",
"trust_score": 0,
"severity_top": "none",
"findings_count": 0,
"registered_at": "2023-11-07T05:31:56Z",
"last_scanned_at": "2023-11-07T05:31:56Z"
}
],
"enforcement": "block_high",
"pin_on_first_use": True,
"scan_results": True
}
}
}
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({
key: '<string>',
name: '<string>',
description: '<string>',
accent_color: '<string>',
template_key: '<string>',
privacy_mode: 'redacted_only',
batch_interval_seconds: 300,
dataset_field_picks: ['<string>'],
free_form_tags: {},
max_events_per_hour: 2,
max_events_per_day: 2,
require_signed_token: false,
config: {
thresholds: {block: 0.55, redact: 0.35, output_block: 0.55, output_redact: 0.35},
detectors: {
injection: true,
pii: true,
ner: true,
embedding_anomaly: false,
perplexity: false,
harm: true,
topic_drift: false,
agentic_guardrails: true
},
ner: {threshold: 0.55, entities: ['<string>']},
custom_phrases: ['<string>'],
pii_rules: [
{
name: '<string>',
pattern: '<string>',
category: 'custom',
score: 0.7,
description: '<string>',
flags: 0,
priority: 0
}
],
tool_policy: {allowlist: ['<string>'], denylist: ['<string>']},
routing: {
forbidden_providers: ['<string>'],
provider: '<string>',
upstream_base_url: '<string>'
},
streaming: {
strict: false,
attachment_notice_enabled: true,
attachment_notice_message: '🔒 Blindsight: analyzing attached file for security risks…'
},
egress: {host_allowlist: ['<string>']},
canaries: {enabled: false, phrases: ['<string>']},
redaction: {style: 'bracket'},
request_signing: {enabled: false, timestamp_skew_seconds: 300},
mcp: {
min_trust_score: 0.4,
tools: [
{
name: '<string>',
description: '',
trust_score: 0,
severity_top: 'none',
findings_count: 0,
registered_at: '2023-11-07T05:31:56Z',
last_scanned_at: '2023-11-07T05:31:56Z'
}
],
enforcement: 'block_high',
pin_on_first_use: true,
scan_results: true
}
}
})
};
fetch('https://api.your-blindsight.com/api/runtime-security/apps', 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.your-blindsight.com/api/runtime-security/apps",
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([
'key' => '<string>',
'name' => '<string>',
'description' => '<string>',
'accent_color' => '<string>',
'template_key' => '<string>',
'privacy_mode' => 'redacted_only',
'batch_interval_seconds' => 300,
'dataset_field_picks' => [
'<string>'
],
'free_form_tags' => [
],
'max_events_per_hour' => 2,
'max_events_per_day' => 2,
'require_signed_token' => false,
'config' => [
'thresholds' => [
'block' => 0.55,
'redact' => 0.35,
'output_block' => 0.55,
'output_redact' => 0.35
],
'detectors' => [
'injection' => true,
'pii' => true,
'ner' => true,
'embedding_anomaly' => false,
'perplexity' => false,
'harm' => true,
'topic_drift' => false,
'agentic_guardrails' => true
],
'ner' => [
'threshold' => 0.55,
'entities' => [
'<string>'
]
],
'custom_phrases' => [
'<string>'
],
'pii_rules' => [
[
'name' => '<string>',
'pattern' => '<string>',
'category' => 'custom',
'score' => 0.7,
'description' => '<string>',
'flags' => 0,
'priority' => 0
]
],
'tool_policy' => [
'allowlist' => [
'<string>'
],
'denylist' => [
'<string>'
]
],
'routing' => [
'forbidden_providers' => [
'<string>'
],
'provider' => '<string>',
'upstream_base_url' => '<string>'
],
'streaming' => [
'strict' => false,
'attachment_notice_enabled' => true,
'attachment_notice_message' => '🔒 Blindsight: analyzing attached file for security risks…'
],
'egress' => [
'host_allowlist' => [
'<string>'
]
],
'canaries' => [
'enabled' => false,
'phrases' => [
'<string>'
]
],
'redaction' => [
'style' => 'bracket'
],
'request_signing' => [
'enabled' => false,
'timestamp_skew_seconds' => 300
],
'mcp' => [
'min_trust_score' => 0.4,
'tools' => [
[
'name' => '<string>',
'description' => '',
'trust_score' => 0,
'severity_top' => 'none',
'findings_count' => 0,
'registered_at' => '2023-11-07T05:31:56Z',
'last_scanned_at' => '2023-11-07T05:31:56Z'
]
],
'enforcement' => 'block_high',
'pin_on_first_use' => true,
'scan_results' => true
]
]
]),
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.your-blindsight.com/api/runtime-security/apps"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"template_key\": \"<string>\",\n \"privacy_mode\": \"redacted_only\",\n \"batch_interval_seconds\": 300,\n \"dataset_field_picks\": [\n \"<string>\"\n ],\n \"free_form_tags\": {},\n \"max_events_per_hour\": 2,\n \"max_events_per_day\": 2,\n \"require_signed_token\": false,\n \"config\": {\n \"thresholds\": {\n \"block\": 0.55,\n \"redact\": 0.35,\n \"output_block\": 0.55,\n \"output_redact\": 0.35\n },\n \"detectors\": {\n \"injection\": true,\n \"pii\": true,\n \"ner\": true,\n \"embedding_anomaly\": false,\n \"perplexity\": false,\n \"harm\": true,\n \"topic_drift\": false,\n \"agentic_guardrails\": true\n },\n \"ner\": {\n \"threshold\": 0.55,\n \"entities\": [\n \"<string>\"\n ]\n },\n \"custom_phrases\": [\n \"<string>\"\n ],\n \"pii_rules\": [\n {\n \"name\": \"<string>\",\n \"pattern\": \"<string>\",\n \"category\": \"custom\",\n \"score\": 0.7,\n \"description\": \"<string>\",\n \"flags\": 0,\n \"priority\": 0\n }\n ],\n \"tool_policy\": {\n \"allowlist\": [\n \"<string>\"\n ],\n \"denylist\": [\n \"<string>\"\n ]\n },\n \"routing\": {\n \"forbidden_providers\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"upstream_base_url\": \"<string>\"\n },\n \"streaming\": {\n \"strict\": false,\n \"attachment_notice_enabled\": true,\n \"attachment_notice_message\": \"🔒 Blindsight: analyzing attached file for security risks…\"\n },\n \"egress\": {\n \"host_allowlist\": [\n \"<string>\"\n ]\n },\n \"canaries\": {\n \"enabled\": false,\n \"phrases\": [\n \"<string>\"\n ]\n },\n \"redaction\": {\n \"style\": \"bracket\"\n },\n \"request_signing\": {\n \"enabled\": false,\n \"timestamp_skew_seconds\": 300\n },\n \"mcp\": {\n \"min_trust_score\": 0.4,\n \"tools\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"trust_score\": 0,\n \"severity_top\": \"none\",\n \"findings_count\": 0,\n \"registered_at\": \"2023-11-07T05:31:56Z\",\n \"last_scanned_at\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"enforcement\": \"block_high\",\n \"pin_on_first_use\": true,\n \"scan_results\": true\n }\n }\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.your-blindsight.com/api/runtime-security/apps")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"template_key\": \"<string>\",\n \"privacy_mode\": \"redacted_only\",\n \"batch_interval_seconds\": 300,\n \"dataset_field_picks\": [\n \"<string>\"\n ],\n \"free_form_tags\": {},\n \"max_events_per_hour\": 2,\n \"max_events_per_day\": 2,\n \"require_signed_token\": false,\n \"config\": {\n \"thresholds\": {\n \"block\": 0.55,\n \"redact\": 0.35,\n \"output_block\": 0.55,\n \"output_redact\": 0.35\n },\n \"detectors\": {\n \"injection\": true,\n \"pii\": true,\n \"ner\": true,\n \"embedding_anomaly\": false,\n \"perplexity\": false,\n \"harm\": true,\n \"topic_drift\": false,\n \"agentic_guardrails\": true\n },\n \"ner\": {\n \"threshold\": 0.55,\n \"entities\": [\n \"<string>\"\n ]\n },\n \"custom_phrases\": [\n \"<string>\"\n ],\n \"pii_rules\": [\n {\n \"name\": \"<string>\",\n \"pattern\": \"<string>\",\n \"category\": \"custom\",\n \"score\": 0.7,\n \"description\": \"<string>\",\n \"flags\": 0,\n \"priority\": 0\n }\n ],\n \"tool_policy\": {\n \"allowlist\": [\n \"<string>\"\n ],\n \"denylist\": [\n \"<string>\"\n ]\n },\n \"routing\": {\n \"forbidden_providers\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"upstream_base_url\": \"<string>\"\n },\n \"streaming\": {\n \"strict\": false,\n \"attachment_notice_enabled\": true,\n \"attachment_notice_message\": \"🔒 Blindsight: analyzing attached file for security risks…\"\n },\n \"egress\": {\n \"host_allowlist\": [\n \"<string>\"\n ]\n },\n \"canaries\": {\n \"enabled\": false,\n \"phrases\": [\n \"<string>\"\n ]\n },\n \"redaction\": {\n \"style\": \"bracket\"\n },\n \"request_signing\": {\n \"enabled\": false,\n \"timestamp_skew_seconds\": 300\n },\n \"mcp\": {\n \"min_trust_score\": 0.4,\n \"tools\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"trust_score\": 0,\n \"severity_top\": \"none\",\n \"findings_count\": 0,\n \"registered_at\": \"2023-11-07T05:31:56Z\",\n \"last_scanned_at\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"enforcement\": \"block_high\",\n \"pin_on_first_use\": true,\n \"scan_results\": true\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.your-blindsight.com/api/runtime-security/apps")
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 \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"template_key\": \"<string>\",\n \"privacy_mode\": \"redacted_only\",\n \"batch_interval_seconds\": 300,\n \"dataset_field_picks\": [\n \"<string>\"\n ],\n \"free_form_tags\": {},\n \"max_events_per_hour\": 2,\n \"max_events_per_day\": 2,\n \"require_signed_token\": false,\n \"config\": {\n \"thresholds\": {\n \"block\": 0.55,\n \"redact\": 0.35,\n \"output_block\": 0.55,\n \"output_redact\": 0.35\n },\n \"detectors\": {\n \"injection\": true,\n \"pii\": true,\n \"ner\": true,\n \"embedding_anomaly\": false,\n \"perplexity\": false,\n \"harm\": true,\n \"topic_drift\": false,\n \"agentic_guardrails\": true\n },\n \"ner\": {\n \"threshold\": 0.55,\n \"entities\": [\n \"<string>\"\n ]\n },\n \"custom_phrases\": [\n \"<string>\"\n ],\n \"pii_rules\": [\n {\n \"name\": \"<string>\",\n \"pattern\": \"<string>\",\n \"category\": \"custom\",\n \"score\": 0.7,\n \"description\": \"<string>\",\n \"flags\": 0,\n \"priority\": 0\n }\n ],\n \"tool_policy\": {\n \"allowlist\": [\n \"<string>\"\n ],\n \"denylist\": [\n \"<string>\"\n ]\n },\n \"routing\": {\n \"forbidden_providers\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"upstream_base_url\": \"<string>\"\n },\n \"streaming\": {\n \"strict\": false,\n \"attachment_notice_enabled\": true,\n \"attachment_notice_message\": \"🔒 Blindsight: analyzing attached file for security risks…\"\n },\n \"egress\": {\n \"host_allowlist\": [\n \"<string>\"\n ]\n },\n \"canaries\": {\n \"enabled\": false,\n \"phrases\": [\n \"<string>\"\n ]\n },\n \"redaction\": {\n \"style\": \"bracket\"\n },\n \"request_signing\": {\n \"enabled\": false,\n \"timestamp_skew_seconds\": 300\n },\n \"mcp\": {\n \"min_trust_score\": 0.4,\n \"tools\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"trust_score\": 0,\n \"severity_top\": \"none\",\n \"findings_count\": 0,\n \"registered_at\": \"2023-11-07T05:31:56Z\",\n \"last_scanned_at\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"enforcement\": \"block_high\",\n \"pin_on_first_use\": true,\n \"scan_results\": true\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"workspace_id": "<string>",
"key": "<string>",
"name": "<string>",
"status": "active",
"privacy_mode": "redacted_only",
"batch_interval_seconds": 123,
"require_signed_token": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"accent_color": "<string>",
"template_key": "<string>",
"template_version": 123,
"dataset_field_picks": [
"<string>"
],
"free_form_tags": {},
"max_events_per_hour": 123,
"max_events_per_day": 123,
"current_config_version": {
"id": "<string>",
"version_number": 123,
"config": {
"thresholds": {
"block": 0.55,
"redact": 0.35,
"output_block": 0.55,
"output_redact": 0.35
},
"detectors": {
"injection": true,
"pii": true,
"ner": true,
"embedding_anomaly": false,
"perplexity": false,
"harm": true,
"topic_drift": false,
"agentic_guardrails": true
},
"ner": {
"mode": "flag",
"threshold": 0.55,
"entities": [
"<string>"
]
},
"custom_phrases": [
"<string>"
],
"pii_rules": [
{
"name": "<string>",
"pattern": "<string>",
"category": "custom",
"score": 0.7,
"description": "<string>",
"flags": 0,
"priority": 0
}
],
"tool_policy": {
"allowlist": [
"<string>"
],
"denylist": [
"<string>"
]
},
"routing": {
"forbidden_providers": [
"<string>"
],
"provider": "<string>",
"upstream_base_url": "<string>"
},
"streaming": {
"strict": false,
"attachment_notice_enabled": true,
"attachment_notice_message": "🔒 Blindsight: analyzing attached file for security risks…"
},
"egress": {
"host_allowlist": [
"<string>"
]
},
"canaries": {
"enabled": false,
"phrases": [
"<string>"
]
},
"redaction": {
"style": "bracket"
},
"request_signing": {
"enabled": false,
"timestamp_skew_seconds": 300
},
"mcp": {
"min_trust_score": 0.4,
"tools": [
{
"name": "<string>",
"description": "",
"trust_score": 0,
"severity_top": "none",
"findings_count": 0,
"registered_at": "<string>",
"last_scanned_at": "<string>"
}
],
"enforcement": "block_high",
"pin_on_first_use": true,
"scan_results": true
}
},
"created_at": "2023-11-07T05:31:56Z",
"change_summary": "<string>",
"created_by_user_id": 123
},
"custom_param_count": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}runtime-security-apps
Create Runtime App
POST
/
api
/
runtime-security
/
apps
Create Runtime App
curl --request POST \
--url https://api.your-blindsight.com/api/runtime-security/apps \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"accent_color": "<string>",
"template_key": "<string>",
"privacy_mode": "redacted_only",
"batch_interval_seconds": 300,
"dataset_field_picks": [
"<string>"
],
"free_form_tags": {},
"max_events_per_hour": 2,
"max_events_per_day": 2,
"require_signed_token": false,
"config": {
"thresholds": {
"block": 0.55,
"redact": 0.35,
"output_block": 0.55,
"output_redact": 0.35
},
"detectors": {
"injection": true,
"pii": true,
"ner": true,
"embedding_anomaly": false,
"perplexity": false,
"harm": true,
"topic_drift": false,
"agentic_guardrails": true
},
"ner": {
"threshold": 0.55,
"entities": [
"<string>"
]
},
"custom_phrases": [
"<string>"
],
"pii_rules": [
{
"name": "<string>",
"pattern": "<string>",
"category": "custom",
"score": 0.7,
"description": "<string>",
"flags": 0,
"priority": 0
}
],
"tool_policy": {
"allowlist": [
"<string>"
],
"denylist": [
"<string>"
]
},
"routing": {
"forbidden_providers": [
"<string>"
],
"provider": "<string>",
"upstream_base_url": "<string>"
},
"streaming": {
"strict": false,
"attachment_notice_enabled": true,
"attachment_notice_message": "🔒 Blindsight: analyzing attached file for security risks…"
},
"egress": {
"host_allowlist": [
"<string>"
]
},
"canaries": {
"enabled": false,
"phrases": [
"<string>"
]
},
"redaction": {
"style": "bracket"
},
"request_signing": {
"enabled": false,
"timestamp_skew_seconds": 300
},
"mcp": {
"min_trust_score": 0.4,
"tools": [
{
"name": "<string>",
"description": "",
"trust_score": 0,
"severity_top": "none",
"findings_count": 0,
"registered_at": "2023-11-07T05:31:56Z",
"last_scanned_at": "2023-11-07T05:31:56Z"
}
],
"enforcement": "block_high",
"pin_on_first_use": true,
"scan_results": true
}
}
}
'import requests
url = "https://api.your-blindsight.com/api/runtime-security/apps"
payload = {
"key": "<string>",
"name": "<string>",
"description": "<string>",
"accent_color": "<string>",
"template_key": "<string>",
"privacy_mode": "redacted_only",
"batch_interval_seconds": 300,
"dataset_field_picks": ["<string>"],
"free_form_tags": {},
"max_events_per_hour": 2,
"max_events_per_day": 2,
"require_signed_token": False,
"config": {
"thresholds": {
"block": 0.55,
"redact": 0.35,
"output_block": 0.55,
"output_redact": 0.35
},
"detectors": {
"injection": True,
"pii": True,
"ner": True,
"embedding_anomaly": False,
"perplexity": False,
"harm": True,
"topic_drift": False,
"agentic_guardrails": True
},
"ner": {
"threshold": 0.55,
"entities": ["<string>"]
},
"custom_phrases": ["<string>"],
"pii_rules": [
{
"name": "<string>",
"pattern": "<string>",
"category": "custom",
"score": 0.7,
"description": "<string>",
"flags": 0,
"priority": 0
}
],
"tool_policy": {
"allowlist": ["<string>"],
"denylist": ["<string>"]
},
"routing": {
"forbidden_providers": ["<string>"],
"provider": "<string>",
"upstream_base_url": "<string>"
},
"streaming": {
"strict": False,
"attachment_notice_enabled": True,
"attachment_notice_message": "🔒 Blindsight: analyzing attached file for security risks…"
},
"egress": { "host_allowlist": ["<string>"] },
"canaries": {
"enabled": False,
"phrases": ["<string>"]
},
"redaction": { "style": "bracket" },
"request_signing": {
"enabled": False,
"timestamp_skew_seconds": 300
},
"mcp": {
"min_trust_score": 0.4,
"tools": [
{
"name": "<string>",
"description": "",
"trust_score": 0,
"severity_top": "none",
"findings_count": 0,
"registered_at": "2023-11-07T05:31:56Z",
"last_scanned_at": "2023-11-07T05:31:56Z"
}
],
"enforcement": "block_high",
"pin_on_first_use": True,
"scan_results": True
}
}
}
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({
key: '<string>',
name: '<string>',
description: '<string>',
accent_color: '<string>',
template_key: '<string>',
privacy_mode: 'redacted_only',
batch_interval_seconds: 300,
dataset_field_picks: ['<string>'],
free_form_tags: {},
max_events_per_hour: 2,
max_events_per_day: 2,
require_signed_token: false,
config: {
thresholds: {block: 0.55, redact: 0.35, output_block: 0.55, output_redact: 0.35},
detectors: {
injection: true,
pii: true,
ner: true,
embedding_anomaly: false,
perplexity: false,
harm: true,
topic_drift: false,
agentic_guardrails: true
},
ner: {threshold: 0.55, entities: ['<string>']},
custom_phrases: ['<string>'],
pii_rules: [
{
name: '<string>',
pattern: '<string>',
category: 'custom',
score: 0.7,
description: '<string>',
flags: 0,
priority: 0
}
],
tool_policy: {allowlist: ['<string>'], denylist: ['<string>']},
routing: {
forbidden_providers: ['<string>'],
provider: '<string>',
upstream_base_url: '<string>'
},
streaming: {
strict: false,
attachment_notice_enabled: true,
attachment_notice_message: '🔒 Blindsight: analyzing attached file for security risks…'
},
egress: {host_allowlist: ['<string>']},
canaries: {enabled: false, phrases: ['<string>']},
redaction: {style: 'bracket'},
request_signing: {enabled: false, timestamp_skew_seconds: 300},
mcp: {
min_trust_score: 0.4,
tools: [
{
name: '<string>',
description: '',
trust_score: 0,
severity_top: 'none',
findings_count: 0,
registered_at: '2023-11-07T05:31:56Z',
last_scanned_at: '2023-11-07T05:31:56Z'
}
],
enforcement: 'block_high',
pin_on_first_use: true,
scan_results: true
}
}
})
};
fetch('https://api.your-blindsight.com/api/runtime-security/apps', 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.your-blindsight.com/api/runtime-security/apps",
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([
'key' => '<string>',
'name' => '<string>',
'description' => '<string>',
'accent_color' => '<string>',
'template_key' => '<string>',
'privacy_mode' => 'redacted_only',
'batch_interval_seconds' => 300,
'dataset_field_picks' => [
'<string>'
],
'free_form_tags' => [
],
'max_events_per_hour' => 2,
'max_events_per_day' => 2,
'require_signed_token' => false,
'config' => [
'thresholds' => [
'block' => 0.55,
'redact' => 0.35,
'output_block' => 0.55,
'output_redact' => 0.35
],
'detectors' => [
'injection' => true,
'pii' => true,
'ner' => true,
'embedding_anomaly' => false,
'perplexity' => false,
'harm' => true,
'topic_drift' => false,
'agentic_guardrails' => true
],
'ner' => [
'threshold' => 0.55,
'entities' => [
'<string>'
]
],
'custom_phrases' => [
'<string>'
],
'pii_rules' => [
[
'name' => '<string>',
'pattern' => '<string>',
'category' => 'custom',
'score' => 0.7,
'description' => '<string>',
'flags' => 0,
'priority' => 0
]
],
'tool_policy' => [
'allowlist' => [
'<string>'
],
'denylist' => [
'<string>'
]
],
'routing' => [
'forbidden_providers' => [
'<string>'
],
'provider' => '<string>',
'upstream_base_url' => '<string>'
],
'streaming' => [
'strict' => false,
'attachment_notice_enabled' => true,
'attachment_notice_message' => '🔒 Blindsight: analyzing attached file for security risks…'
],
'egress' => [
'host_allowlist' => [
'<string>'
]
],
'canaries' => [
'enabled' => false,
'phrases' => [
'<string>'
]
],
'redaction' => [
'style' => 'bracket'
],
'request_signing' => [
'enabled' => false,
'timestamp_skew_seconds' => 300
],
'mcp' => [
'min_trust_score' => 0.4,
'tools' => [
[
'name' => '<string>',
'description' => '',
'trust_score' => 0,
'severity_top' => 'none',
'findings_count' => 0,
'registered_at' => '2023-11-07T05:31:56Z',
'last_scanned_at' => '2023-11-07T05:31:56Z'
]
],
'enforcement' => 'block_high',
'pin_on_first_use' => true,
'scan_results' => true
]
]
]),
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.your-blindsight.com/api/runtime-security/apps"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"template_key\": \"<string>\",\n \"privacy_mode\": \"redacted_only\",\n \"batch_interval_seconds\": 300,\n \"dataset_field_picks\": [\n \"<string>\"\n ],\n \"free_form_tags\": {},\n \"max_events_per_hour\": 2,\n \"max_events_per_day\": 2,\n \"require_signed_token\": false,\n \"config\": {\n \"thresholds\": {\n \"block\": 0.55,\n \"redact\": 0.35,\n \"output_block\": 0.55,\n \"output_redact\": 0.35\n },\n \"detectors\": {\n \"injection\": true,\n \"pii\": true,\n \"ner\": true,\n \"embedding_anomaly\": false,\n \"perplexity\": false,\n \"harm\": true,\n \"topic_drift\": false,\n \"agentic_guardrails\": true\n },\n \"ner\": {\n \"threshold\": 0.55,\n \"entities\": [\n \"<string>\"\n ]\n },\n \"custom_phrases\": [\n \"<string>\"\n ],\n \"pii_rules\": [\n {\n \"name\": \"<string>\",\n \"pattern\": \"<string>\",\n \"category\": \"custom\",\n \"score\": 0.7,\n \"description\": \"<string>\",\n \"flags\": 0,\n \"priority\": 0\n }\n ],\n \"tool_policy\": {\n \"allowlist\": [\n \"<string>\"\n ],\n \"denylist\": [\n \"<string>\"\n ]\n },\n \"routing\": {\n \"forbidden_providers\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"upstream_base_url\": \"<string>\"\n },\n \"streaming\": {\n \"strict\": false,\n \"attachment_notice_enabled\": true,\n \"attachment_notice_message\": \"🔒 Blindsight: analyzing attached file for security risks…\"\n },\n \"egress\": {\n \"host_allowlist\": [\n \"<string>\"\n ]\n },\n \"canaries\": {\n \"enabled\": false,\n \"phrases\": [\n \"<string>\"\n ]\n },\n \"redaction\": {\n \"style\": \"bracket\"\n },\n \"request_signing\": {\n \"enabled\": false,\n \"timestamp_skew_seconds\": 300\n },\n \"mcp\": {\n \"min_trust_score\": 0.4,\n \"tools\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"trust_score\": 0,\n \"severity_top\": \"none\",\n \"findings_count\": 0,\n \"registered_at\": \"2023-11-07T05:31:56Z\",\n \"last_scanned_at\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"enforcement\": \"block_high\",\n \"pin_on_first_use\": true,\n \"scan_results\": true\n }\n }\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.your-blindsight.com/api/runtime-security/apps")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"template_key\": \"<string>\",\n \"privacy_mode\": \"redacted_only\",\n \"batch_interval_seconds\": 300,\n \"dataset_field_picks\": [\n \"<string>\"\n ],\n \"free_form_tags\": {},\n \"max_events_per_hour\": 2,\n \"max_events_per_day\": 2,\n \"require_signed_token\": false,\n \"config\": {\n \"thresholds\": {\n \"block\": 0.55,\n \"redact\": 0.35,\n \"output_block\": 0.55,\n \"output_redact\": 0.35\n },\n \"detectors\": {\n \"injection\": true,\n \"pii\": true,\n \"ner\": true,\n \"embedding_anomaly\": false,\n \"perplexity\": false,\n \"harm\": true,\n \"topic_drift\": false,\n \"agentic_guardrails\": true\n },\n \"ner\": {\n \"threshold\": 0.55,\n \"entities\": [\n \"<string>\"\n ]\n },\n \"custom_phrases\": [\n \"<string>\"\n ],\n \"pii_rules\": [\n {\n \"name\": \"<string>\",\n \"pattern\": \"<string>\",\n \"category\": \"custom\",\n \"score\": 0.7,\n \"description\": \"<string>\",\n \"flags\": 0,\n \"priority\": 0\n }\n ],\n \"tool_policy\": {\n \"allowlist\": [\n \"<string>\"\n ],\n \"denylist\": [\n \"<string>\"\n ]\n },\n \"routing\": {\n \"forbidden_providers\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"upstream_base_url\": \"<string>\"\n },\n \"streaming\": {\n \"strict\": false,\n \"attachment_notice_enabled\": true,\n \"attachment_notice_message\": \"🔒 Blindsight: analyzing attached file for security risks…\"\n },\n \"egress\": {\n \"host_allowlist\": [\n \"<string>\"\n ]\n },\n \"canaries\": {\n \"enabled\": false,\n \"phrases\": [\n \"<string>\"\n ]\n },\n \"redaction\": {\n \"style\": \"bracket\"\n },\n \"request_signing\": {\n \"enabled\": false,\n \"timestamp_skew_seconds\": 300\n },\n \"mcp\": {\n \"min_trust_score\": 0.4,\n \"tools\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"trust_score\": 0,\n \"severity_top\": \"none\",\n \"findings_count\": 0,\n \"registered_at\": \"2023-11-07T05:31:56Z\",\n \"last_scanned_at\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"enforcement\": \"block_high\",\n \"pin_on_first_use\": true,\n \"scan_results\": true\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.your-blindsight.com/api/runtime-security/apps")
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 \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"template_key\": \"<string>\",\n \"privacy_mode\": \"redacted_only\",\n \"batch_interval_seconds\": 300,\n \"dataset_field_picks\": [\n \"<string>\"\n ],\n \"free_form_tags\": {},\n \"max_events_per_hour\": 2,\n \"max_events_per_day\": 2,\n \"require_signed_token\": false,\n \"config\": {\n \"thresholds\": {\n \"block\": 0.55,\n \"redact\": 0.35,\n \"output_block\": 0.55,\n \"output_redact\": 0.35\n },\n \"detectors\": {\n \"injection\": true,\n \"pii\": true,\n \"ner\": true,\n \"embedding_anomaly\": false,\n \"perplexity\": false,\n \"harm\": true,\n \"topic_drift\": false,\n \"agentic_guardrails\": true\n },\n \"ner\": {\n \"threshold\": 0.55,\n \"entities\": [\n \"<string>\"\n ]\n },\n \"custom_phrases\": [\n \"<string>\"\n ],\n \"pii_rules\": [\n {\n \"name\": \"<string>\",\n \"pattern\": \"<string>\",\n \"category\": \"custom\",\n \"score\": 0.7,\n \"description\": \"<string>\",\n \"flags\": 0,\n \"priority\": 0\n }\n ],\n \"tool_policy\": {\n \"allowlist\": [\n \"<string>\"\n ],\n \"denylist\": [\n \"<string>\"\n ]\n },\n \"routing\": {\n \"forbidden_providers\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"upstream_base_url\": \"<string>\"\n },\n \"streaming\": {\n \"strict\": false,\n \"attachment_notice_enabled\": true,\n \"attachment_notice_message\": \"🔒 Blindsight: analyzing attached file for security risks…\"\n },\n \"egress\": {\n \"host_allowlist\": [\n \"<string>\"\n ]\n },\n \"canaries\": {\n \"enabled\": false,\n \"phrases\": [\n \"<string>\"\n ]\n },\n \"redaction\": {\n \"style\": \"bracket\"\n },\n \"request_signing\": {\n \"enabled\": false,\n \"timestamp_skew_seconds\": 300\n },\n \"mcp\": {\n \"min_trust_score\": 0.4,\n \"tools\": [\n {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"trust_score\": 0,\n \"severity_top\": \"none\",\n \"findings_count\": 0,\n \"registered_at\": \"2023-11-07T05:31:56Z\",\n \"last_scanned_at\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"enforcement\": \"block_high\",\n \"pin_on_first_use\": true,\n \"scan_results\": true\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"workspace_id": "<string>",
"key": "<string>",
"name": "<string>",
"status": "active",
"privacy_mode": "redacted_only",
"batch_interval_seconds": 123,
"require_signed_token": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"accent_color": "<string>",
"template_key": "<string>",
"template_version": 123,
"dataset_field_picks": [
"<string>"
],
"free_form_tags": {},
"max_events_per_hour": 123,
"max_events_per_day": 123,
"current_config_version": {
"id": "<string>",
"version_number": 123,
"config": {
"thresholds": {
"block": 0.55,
"redact": 0.35,
"output_block": 0.55,
"output_redact": 0.35
},
"detectors": {
"injection": true,
"pii": true,
"ner": true,
"embedding_anomaly": false,
"perplexity": false,
"harm": true,
"topic_drift": false,
"agentic_guardrails": true
},
"ner": {
"mode": "flag",
"threshold": 0.55,
"entities": [
"<string>"
]
},
"custom_phrases": [
"<string>"
],
"pii_rules": [
{
"name": "<string>",
"pattern": "<string>",
"category": "custom",
"score": 0.7,
"description": "<string>",
"flags": 0,
"priority": 0
}
],
"tool_policy": {
"allowlist": [
"<string>"
],
"denylist": [
"<string>"
]
},
"routing": {
"forbidden_providers": [
"<string>"
],
"provider": "<string>",
"upstream_base_url": "<string>"
},
"streaming": {
"strict": false,
"attachment_notice_enabled": true,
"attachment_notice_message": "🔒 Blindsight: analyzing attached file for security risks…"
},
"egress": {
"host_allowlist": [
"<string>"
]
},
"canaries": {
"enabled": false,
"phrases": [
"<string>"
]
},
"redaction": {
"style": "bracket"
},
"request_signing": {
"enabled": false,
"timestamp_skew_seconds": 300
},
"mcp": {
"min_trust_score": 0.4,
"tools": [
{
"name": "<string>",
"description": "",
"trust_score": 0,
"severity_top": "none",
"findings_count": 0,
"registered_at": "<string>",
"last_scanned_at": "<string>"
}
],
"enforcement": "block_high",
"pin_on_first_use": true,
"scan_results": true
}
},
"created_at": "2023-11-07T05:31:56Z",
"change_summary": "<string>",
"created_by_user_id": 123
},
"custom_param_count": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Required string length:
1 - 64Pattern:
^[a-z][a-z0-9_]*$Required string length:
1 - 128Maximum string length:
2048Maximum string length:
16Maximum string length:
64Available options:
redacted_only, both_role_gated, hashed_pii, user_choice Required range:
30 <= x <= 3600Show child attributes
Show child attributes
Required range:
x >= 1Required range:
x >= 1Show child attributes
Show child attributes
Response
Successful Response
Available options:
active, disabled, archived Available options:
redacted_only, both_role_gated, hashed_pii, user_choice Show child attributes
Show child attributes
Show child attributes
Show child attributes

