Put the real values back into text that carries placeholders
curl --request POST \
--url https://platform.blindsight.io/api/runtime-security/scan/restore \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"text": "Write to <PERSON_1> at <EMAIL_ADDRESS_1>.",
"pseudonyms": {
"<PERSON_1>": "Jane Doe",
"<EMAIL_ADDRESS_1>": "jane.doe@example.com"
}
}
'import requests
url = "https://platform.blindsight.io/api/runtime-security/scan/restore"
payload = {
"text": "Write to <PERSON_1> at <EMAIL_ADDRESS_1>.",
"pseudonyms": {
"<PERSON_1>": "Jane Doe",
"<EMAIL_ADDRESS_1>": "jane.doe@example.com"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: 'Write to <PERSON_1> at <EMAIL_ADDRESS_1>.',
pseudonyms: {'<PERSON_1>': 'Jane Doe', '<EMAIL_ADDRESS_1>': 'jane.doe@example.com'}
})
};
fetch('https://platform.blindsight.io/api/runtime-security/scan/restore', 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://platform.blindsight.io/api/runtime-security/scan/restore",
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([
'text' => 'Write to <PERSON_1> at <EMAIL_ADDRESS_1>.',
'pseudonyms' => [
'<PERSON_1>' => 'Jane Doe',
'<EMAIL_ADDRESS_1>' => 'jane.doe@example.com'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.blindsight.io/api/runtime-security/scan/restore"
payload := strings.NewReader("{\n \"text\": \"Write to <PERSON_1> at <EMAIL_ADDRESS_1>.\",\n \"pseudonyms\": {\n \"<PERSON_1>\": \"Jane Doe\",\n \"<EMAIL_ADDRESS_1>\": \"jane.doe@example.com\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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://platform.blindsight.io/api/runtime-security/scan/restore")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"Write to <PERSON_1> at <EMAIL_ADDRESS_1>.\",\n \"pseudonyms\": {\n \"<PERSON_1>\": \"Jane Doe\",\n \"<EMAIL_ADDRESS_1>\": \"jane.doe@example.com\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.blindsight.io/api/runtime-security/scan/restore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"Write to <PERSON_1> at <EMAIL_ADDRESS_1>.\",\n \"pseudonyms\": {\n \"<PERSON_1>\": \"Jane Doe\",\n \"<EMAIL_ADDRESS_1>\": \"jane.doe@example.com\"\n }\n}"
response = http.request(request)
puts response.read_body{
"text": "Write to Jane Doe at jane.doe@example.com.",
"restored": 2
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Scan
Put the real values back into text that carries placeholders
Plain text work on what you send: nothing is looked up, stored or
logged. Use it with the pseudonyms mapping a scan returned for an
App set to pseudonymize and restore. The official SDKs restore
locally and never need this route.
Requires the runtime:scan permission. Rate limit: 200 requests per
second per API key.
POST
/
api
/
runtime-security
/
scan
/
restore
Put the real values back into text that carries placeholders
curl --request POST \
--url https://platform.blindsight.io/api/runtime-security/scan/restore \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"text": "Write to <PERSON_1> at <EMAIL_ADDRESS_1>.",
"pseudonyms": {
"<PERSON_1>": "Jane Doe",
"<EMAIL_ADDRESS_1>": "jane.doe@example.com"
}
}
'import requests
url = "https://platform.blindsight.io/api/runtime-security/scan/restore"
payload = {
"text": "Write to <PERSON_1> at <EMAIL_ADDRESS_1>.",
"pseudonyms": {
"<PERSON_1>": "Jane Doe",
"<EMAIL_ADDRESS_1>": "jane.doe@example.com"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: 'Write to <PERSON_1> at <EMAIL_ADDRESS_1>.',
pseudonyms: {'<PERSON_1>': 'Jane Doe', '<EMAIL_ADDRESS_1>': 'jane.doe@example.com'}
})
};
fetch('https://platform.blindsight.io/api/runtime-security/scan/restore', 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://platform.blindsight.io/api/runtime-security/scan/restore",
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([
'text' => 'Write to <PERSON_1> at <EMAIL_ADDRESS_1>.',
'pseudonyms' => [
'<PERSON_1>' => 'Jane Doe',
'<EMAIL_ADDRESS_1>' => 'jane.doe@example.com'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.blindsight.io/api/runtime-security/scan/restore"
payload := strings.NewReader("{\n \"text\": \"Write to <PERSON_1> at <EMAIL_ADDRESS_1>.\",\n \"pseudonyms\": {\n \"<PERSON_1>\": \"Jane Doe\",\n \"<EMAIL_ADDRESS_1>\": \"jane.doe@example.com\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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://platform.blindsight.io/api/runtime-security/scan/restore")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"Write to <PERSON_1> at <EMAIL_ADDRESS_1>.\",\n \"pseudonyms\": {\n \"<PERSON_1>\": \"Jane Doe\",\n \"<EMAIL_ADDRESS_1>\": \"jane.doe@example.com\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.blindsight.io/api/runtime-security/scan/restore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"Write to <PERSON_1> at <EMAIL_ADDRESS_1>.\",\n \"pseudonyms\": {\n \"<PERSON_1>\": \"Jane Doe\",\n \"<EMAIL_ADDRESS_1>\": \"jane.doe@example.com\"\n }\n}"
response = http.request(request)
puts response.read_body{
"text": "Write to Jane Doe at jane.doe@example.com.",
"restored": 2
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Blindsight API key (ak_...). The permissions it needs are listed in
the API description and on each operation: runtime:scan for scan and
proxy routes, runtime:events:read for events, analytics, drift,
health and service status, runtime:config:read to read the
configuration and runtime:config:write to change it.
Headers
Body
application/json

