Enroll Session
curl --request POST \
--url https://api.your-blindsight.com/api/runtime-security/agent/enroll-session \
--header 'Content-Type: application/json' \
--data '
{
"hardware_id": "<string>",
"hostname": "<string>",
"platform": "<string>",
"os_version": "<string>",
"os_user": "<string>",
"agent_version": "<string>"
}
'import requests
url = "https://api.your-blindsight.com/api/runtime-security/agent/enroll-session"
payload = {
"hardware_id": "<string>",
"hostname": "<string>",
"platform": "<string>",
"os_version": "<string>",
"os_user": "<string>",
"agent_version": "<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({
hardware_id: '<string>',
hostname: '<string>',
platform: '<string>',
os_version: '<string>',
os_user: '<string>',
agent_version: '<string>'
})
};
fetch('https://api.your-blindsight.com/api/runtime-security/agent/enroll-session', 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/agent/enroll-session",
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([
'hardware_id' => '<string>',
'hostname' => '<string>',
'platform' => '<string>',
'os_version' => '<string>',
'os_user' => '<string>',
'agent_version' => '<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/agent/enroll-session"
payload := strings.NewReader("{\n \"hardware_id\": \"<string>\",\n \"hostname\": \"<string>\",\n \"platform\": \"<string>\",\n \"os_version\": \"<string>\",\n \"os_user\": \"<string>\",\n \"agent_version\": \"<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.your-blindsight.com/api/runtime-security/agent/enroll-session")
.header("Content-Type", "application/json")
.body("{\n \"hardware_id\": \"<string>\",\n \"hostname\": \"<string>\",\n \"platform\": \"<string>\",\n \"os_version\": \"<string>\",\n \"os_user\": \"<string>\",\n \"agent_version\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.your-blindsight.com/api/runtime-security/agent/enroll-session")
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 \"hardware_id\": \"<string>\",\n \"hostname\": \"<string>\",\n \"platform\": \"<string>\",\n \"os_version\": \"<string>\",\n \"os_user\": \"<string>\",\n \"agent_version\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"device_uuid": "<string>",
"device_token": "<string>",
"fail_mode": "<string>",
"firewall_enabled": true,
"host_rules": [
{}
],
"host_rules_version": "<string>",
"agentic": {},
"policy_revision": 0,
"privacy_mode": "redacted_only",
"injection_detection": true,
"paused": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}runtime-security-agent
Enroll Session
Enroll the machine using the desktop app’s logged-in account session instead of an MDM-pushed enrollment token.
Creates (or rotates) a per-device token bound to the authenticated user
so the desktop agent is attributed to a real device -> user pair in
DLP reporting without any enrollment token. Idempotent per
(workspace, hardware_id) like /enroll: a machine the installer
already enrolled is ATTACHED to, never duplicated, so one laptop is one
row in the console and a pause applied to it reaches the machine in front
of the admin. What that reconciliation may and may not carry over is
decided below.
POST
/
api
/
runtime-security
/
agent
/
enroll-session
Enroll Session
curl --request POST \
--url https://api.your-blindsight.com/api/runtime-security/agent/enroll-session \
--header 'Content-Type: application/json' \
--data '
{
"hardware_id": "<string>",
"hostname": "<string>",
"platform": "<string>",
"os_version": "<string>",
"os_user": "<string>",
"agent_version": "<string>"
}
'import requests
url = "https://api.your-blindsight.com/api/runtime-security/agent/enroll-session"
payload = {
"hardware_id": "<string>",
"hostname": "<string>",
"platform": "<string>",
"os_version": "<string>",
"os_user": "<string>",
"agent_version": "<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({
hardware_id: '<string>',
hostname: '<string>',
platform: '<string>',
os_version: '<string>',
os_user: '<string>',
agent_version: '<string>'
})
};
fetch('https://api.your-blindsight.com/api/runtime-security/agent/enroll-session', 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/agent/enroll-session",
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([
'hardware_id' => '<string>',
'hostname' => '<string>',
'platform' => '<string>',
'os_version' => '<string>',
'os_user' => '<string>',
'agent_version' => '<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/agent/enroll-session"
payload := strings.NewReader("{\n \"hardware_id\": \"<string>\",\n \"hostname\": \"<string>\",\n \"platform\": \"<string>\",\n \"os_version\": \"<string>\",\n \"os_user\": \"<string>\",\n \"agent_version\": \"<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.your-blindsight.com/api/runtime-security/agent/enroll-session")
.header("Content-Type", "application/json")
.body("{\n \"hardware_id\": \"<string>\",\n \"hostname\": \"<string>\",\n \"platform\": \"<string>\",\n \"os_version\": \"<string>\",\n \"os_user\": \"<string>\",\n \"agent_version\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.your-blindsight.com/api/runtime-security/agent/enroll-session")
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 \"hardware_id\": \"<string>\",\n \"hostname\": \"<string>\",\n \"platform\": \"<string>\",\n \"os_version\": \"<string>\",\n \"os_user\": \"<string>\",\n \"agent_version\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"device_uuid": "<string>",
"device_token": "<string>",
"fail_mode": "<string>",
"firewall_enabled": true,
"host_rules": [
{}
],
"host_rules_version": "<string>",
"agentic": {},
"policy_revision": 0,
"privacy_mode": "redacted_only",
"injection_detection": true,
"paused": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Required string length:
4 - 128Maximum string length:
255Maximum string length:
32Maximum string length:
64Maximum string length:
255Maximum string length:
32Response
Successful Response

