curl --request POST \
--url https://platform.blindsight.io/api/runtime-security/proxy/anthropic/v1/messages \
--header 'Content-Type: application/json' \
--header 'X-Blindsight-Key: <api-key>' \
--data '
{
"model": "claude-opus-4-6",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}
'import requests
url = "https://platform.blindsight.io/api/runtime-security/proxy/anthropic/v1/messages"
payload = {
"model": "claude-opus-4-6",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}
headers = {
"X-Blindsight-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Blindsight-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'claude-opus-4-6',
max_tokens: 1024,
messages: [{role: 'user', content: 'Hello'}]
})
};
fetch('https://platform.blindsight.io/api/runtime-security/proxy/anthropic/v1/messages', 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/proxy/anthropic/v1/messages",
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([
'model' => 'claude-opus-4-6',
'max_tokens' => 1024,
'messages' => [
[
'role' => 'user',
'content' => 'Hello'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Blindsight-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/proxy/anthropic/v1/messages"
payload := strings.NewReader("{\n \"model\": \"claude-opus-4-6\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Blindsight-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/proxy/anthropic/v1/messages")
.header("X-Blindsight-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"claude-opus-4-6\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.blindsight.io/api/runtime-security/proxy/anthropic/v1/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Blindsight-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"claude-opus-4-6\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}{
"detail": "<string>"
}Wire-compatible Anthropic Messages proxy
Body and response match POST https://api.anthropic.com/v1/messages.
Blindsight scans both directions.
Streaming: stream=true is supported. A block ends the stream with
a terminal event.
Headers: x-api-key is for Anthropic and is forwarded upstream.
Authenticate to Blindsight with X-Blindsight-Key (permission
runtime:scan).
curl --request POST \
--url https://platform.blindsight.io/api/runtime-security/proxy/anthropic/v1/messages \
--header 'Content-Type: application/json' \
--header 'X-Blindsight-Key: <api-key>' \
--data '
{
"model": "claude-opus-4-6",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}
'import requests
url = "https://platform.blindsight.io/api/runtime-security/proxy/anthropic/v1/messages"
payload = {
"model": "claude-opus-4-6",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}
headers = {
"X-Blindsight-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Blindsight-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'claude-opus-4-6',
max_tokens: 1024,
messages: [{role: 'user', content: 'Hello'}]
})
};
fetch('https://platform.blindsight.io/api/runtime-security/proxy/anthropic/v1/messages', 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/proxy/anthropic/v1/messages",
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([
'model' => 'claude-opus-4-6',
'max_tokens' => 1024,
'messages' => [
[
'role' => 'user',
'content' => 'Hello'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Blindsight-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/proxy/anthropic/v1/messages"
payload := strings.NewReader("{\n \"model\": \"claude-opus-4-6\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Blindsight-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/proxy/anthropic/v1/messages")
.header("X-Blindsight-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"claude-opus-4-6\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.blindsight.io/api/runtime-security/proxy/anthropic/v1/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Blindsight-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"claude-opus-4-6\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}{
"detail": "<string>"
}Authorizations
Alternative header for proxy callers whose client already uses
x-api-key for the upstream provider, such as the Anthropic SDK.
Accepts a Blindsight API key with the runtime:scan permission.
Headers
UUID of the App the traffic belongs to. Optional: a key limited to one App, or a workspace with exactly one App, uses that App. A key limited to several Apps must send it.
Body
The body is of type object.
Response
Non-streaming returns an Anthropic Message; streaming returns SSE events.
The response is of type object.

