Create Policy
curl --request POST \
--url https://api.your-blindsight.com/api/runtime-security/dlp/policies \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"bundle": {
"fail_mode": "<string>",
"host_rule_overrides": [
{}
],
"agentic": {
"tool_allowlist": [
"<string>"
],
"tool_denylist": [
"<string>"
],
"max_arg_bytes": 500128,
"allow_private_network": true
},
"privacy_mode": "<string>"
}
}
'import requests
url = "https://api.your-blindsight.com/api/runtime-security/dlp/policies"
payload = {
"name": "<string>",
"description": "<string>",
"bundle": {
"fail_mode": "<string>",
"host_rule_overrides": [{}],
"agentic": {
"tool_allowlist": ["<string>"],
"tool_denylist": ["<string>"],
"max_arg_bytes": 500128,
"allow_private_network": True
},
"privacy_mode": "<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({
name: '<string>',
description: '<string>',
bundle: {
fail_mode: '<string>',
host_rule_overrides: [{}],
agentic: {
tool_allowlist: ['<string>'],
tool_denylist: ['<string>'],
max_arg_bytes: 500128,
allow_private_network: true
},
privacy_mode: '<string>'
}
})
};
fetch('https://api.your-blindsight.com/api/runtime-security/dlp/policies', 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/dlp/policies",
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([
'name' => '<string>',
'description' => '<string>',
'bundle' => [
'fail_mode' => '<string>',
'host_rule_overrides' => [
[
]
],
'agentic' => [
'tool_allowlist' => [
'<string>'
],
'tool_denylist' => [
'<string>'
],
'max_arg_bytes' => 500128,
'allow_private_network' => true
],
'privacy_mode' => '<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.your-blindsight.com/api/runtime-security/dlp/policies"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"bundle\": {\n \"fail_mode\": \"<string>\",\n \"host_rule_overrides\": [\n {}\n ],\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 500128,\n \"allow_private_network\": true\n },\n \"privacy_mode\": \"<string>\"\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/dlp/policies")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"bundle\": {\n \"fail_mode\": \"<string>\",\n \"host_rule_overrides\": [\n {}\n ],\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 500128,\n \"allow_private_network\": true\n },\n \"privacy_mode\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.your-blindsight.com/api/runtime-security/dlp/policies")
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 \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"bundle\": {\n \"fail_mode\": \"<string>\",\n \"host_rule_overrides\": [\n {}\n ],\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 500128,\n \"allow_private_network\": true\n },\n \"privacy_mode\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}dlp-admin
Create Policy
POST
/
api
/
runtime-security
/
dlp
/
policies
Create Policy
curl --request POST \
--url https://api.your-blindsight.com/api/runtime-security/dlp/policies \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"bundle": {
"fail_mode": "<string>",
"host_rule_overrides": [
{}
],
"agentic": {
"tool_allowlist": [
"<string>"
],
"tool_denylist": [
"<string>"
],
"max_arg_bytes": 500128,
"allow_private_network": true
},
"privacy_mode": "<string>"
}
}
'import requests
url = "https://api.your-blindsight.com/api/runtime-security/dlp/policies"
payload = {
"name": "<string>",
"description": "<string>",
"bundle": {
"fail_mode": "<string>",
"host_rule_overrides": [{}],
"agentic": {
"tool_allowlist": ["<string>"],
"tool_denylist": ["<string>"],
"max_arg_bytes": 500128,
"allow_private_network": True
},
"privacy_mode": "<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({
name: '<string>',
description: '<string>',
bundle: {
fail_mode: '<string>',
host_rule_overrides: [{}],
agentic: {
tool_allowlist: ['<string>'],
tool_denylist: ['<string>'],
max_arg_bytes: 500128,
allow_private_network: true
},
privacy_mode: '<string>'
}
})
};
fetch('https://api.your-blindsight.com/api/runtime-security/dlp/policies', 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/dlp/policies",
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([
'name' => '<string>',
'description' => '<string>',
'bundle' => [
'fail_mode' => '<string>',
'host_rule_overrides' => [
[
]
],
'agentic' => [
'tool_allowlist' => [
'<string>'
],
'tool_denylist' => [
'<string>'
],
'max_arg_bytes' => 500128,
'allow_private_network' => true
],
'privacy_mode' => '<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.your-blindsight.com/api/runtime-security/dlp/policies"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"bundle\": {\n \"fail_mode\": \"<string>\",\n \"host_rule_overrides\": [\n {}\n ],\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 500128,\n \"allow_private_network\": true\n },\n \"privacy_mode\": \"<string>\"\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/dlp/policies")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"bundle\": {\n \"fail_mode\": \"<string>\",\n \"host_rule_overrides\": [\n {}\n ],\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 500128,\n \"allow_private_network\": true\n },\n \"privacy_mode\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.your-blindsight.com/api/runtime-security/dlp/policies")
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 \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"bundle\": {\n \"fail_mode\": \"<string>\",\n \"host_rule_overrides\": [\n {}\n ],\n \"agentic\": {\n \"tool_allowlist\": [\n \"<string>\"\n ],\n \"tool_denylist\": [\n \"<string>\"\n ],\n \"max_arg_bytes\": 500128,\n \"allow_private_network\": true\n },\n \"privacy_mode\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Required string length:
1 - 128Maximum string length:
500The settings bundle a policy carries. Every field optional → inherit.
Mirrors the override-able subset of RuntimeSecurityConfig. None
means "no opinion"; the resolver only merges keys that are set.
Show child attributes
Show child attributes
Response
Successful Response

