Structured environment assessment (LLM-free)
curl --request POST \
--url https://api.example.com/v2/environment-assessments \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"environment_context": {
"crown_jewel_asset_count": 25000,
"detection_coverage": 0.5,
"eol_asset_count": 25000,
"externally_exposed_service_count": 100000,
"mfa_enforced": true,
"patch_latency_days": 182,
"regions": [
"<string>"
],
"sector": "<string>"
},
"agent_context": {
"objective": "<string>",
"requested_outcome": "<string>",
"run_id": "<string>",
"step_id": "<string>",
"client": {
"agent_name": "<string>",
"agent_version": "<string>",
"framework": "<string>"
},
"constraints": {
"latency_budget_ms": 15025,
"max_results_budget": 100,
"min_resolution_confidence": 0.5,
"strict_mode": true
},
"parent_step_id": "<string>",
"tags": [
"<string>"
]
},
"context": {
"affected_cpes": [
"<string>"
],
"campaign_status": "<string>",
"evidence_refs": [
{
"id": "<string>",
"type": "<string>"
}
],
"intel_confidence": "<string>",
"known_exploited": true,
"known_targets": [
"<string>"
],
"targeted_industries": [
"<string>"
],
"targeted_regions": [
"<string>"
]
},
"environment": "<string>",
"expected_types": [
"<string>"
],
"options": {},
"query": "<string>",
"resolution": {
"include_aliases": false,
"include_metadata": false,
"max_results": 5
},
"subject": {
"canonical_id": "<string>",
"entity_type": "<string>",
"canonical_name": "<string>"
},
"time_range": {}
}
'import requests
url = "https://api.example.com/v2/environment-assessments"
payload = {
"environment_context": {
"crown_jewel_asset_count": 25000,
"detection_coverage": 0.5,
"eol_asset_count": 25000,
"externally_exposed_service_count": 100000,
"mfa_enforced": True,
"patch_latency_days": 182,
"regions": ["<string>"],
"sector": "<string>"
},
"agent_context": {
"objective": "<string>",
"requested_outcome": "<string>",
"run_id": "<string>",
"step_id": "<string>",
"client": {
"agent_name": "<string>",
"agent_version": "<string>",
"framework": "<string>"
},
"constraints": {
"latency_budget_ms": 15025,
"max_results_budget": 100,
"min_resolution_confidence": 0.5,
"strict_mode": True
},
"parent_step_id": "<string>",
"tags": ["<string>"]
},
"context": {
"affected_cpes": ["<string>"],
"campaign_status": "<string>",
"evidence_refs": [
{
"id": "<string>",
"type": "<string>"
}
],
"intel_confidence": "<string>",
"known_exploited": True,
"known_targets": ["<string>"],
"targeted_industries": ["<string>"],
"targeted_regions": ["<string>"]
},
"environment": "<string>",
"expected_types": ["<string>"],
"options": {},
"query": "<string>",
"resolution": {
"include_aliases": False,
"include_metadata": False,
"max_results": 5
},
"subject": {
"canonical_id": "<string>",
"entity_type": "<string>",
"canonical_name": "<string>"
},
"time_range": {}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
environment_context: {
crown_jewel_asset_count: 25000,
detection_coverage: 0.5,
eol_asset_count: 25000,
externally_exposed_service_count: 100000,
mfa_enforced: true,
patch_latency_days: 182,
regions: ['<string>'],
sector: '<string>'
},
agent_context: {
objective: '<string>',
requested_outcome: '<string>',
run_id: '<string>',
step_id: '<string>',
client: {agent_name: '<string>', agent_version: '<string>', framework: '<string>'},
constraints: {
latency_budget_ms: 15025,
max_results_budget: 100,
min_resolution_confidence: 0.5,
strict_mode: true
},
parent_step_id: '<string>',
tags: ['<string>']
},
context: {
affected_cpes: ['<string>'],
campaign_status: '<string>',
evidence_refs: [{id: '<string>', type: '<string>'}],
intel_confidence: '<string>',
known_exploited: true,
known_targets: ['<string>'],
targeted_industries: ['<string>'],
targeted_regions: ['<string>']
},
environment: '<string>',
expected_types: ['<string>'],
options: {},
query: '<string>',
resolution: {include_aliases: false, include_metadata: false, max_results: 5},
subject: {canonical_id: '<string>', entity_type: '<string>', canonical_name: '<string>'},
time_range: {}
})
};
fetch('https://api.example.com/v2/environment-assessments', 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.example.com/v2/environment-assessments",
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([
'environment_context' => [
'crown_jewel_asset_count' => 25000,
'detection_coverage' => 0.5,
'eol_asset_count' => 25000,
'externally_exposed_service_count' => 100000,
'mfa_enforced' => true,
'patch_latency_days' => 182,
'regions' => [
'<string>'
],
'sector' => '<string>'
],
'agent_context' => [
'objective' => '<string>',
'requested_outcome' => '<string>',
'run_id' => '<string>',
'step_id' => '<string>',
'client' => [
'agent_name' => '<string>',
'agent_version' => '<string>',
'framework' => '<string>'
],
'constraints' => [
'latency_budget_ms' => 15025,
'max_results_budget' => 100,
'min_resolution_confidence' => 0.5,
'strict_mode' => true
],
'parent_step_id' => '<string>',
'tags' => [
'<string>'
]
],
'context' => [
'affected_cpes' => [
'<string>'
],
'campaign_status' => '<string>',
'evidence_refs' => [
[
'id' => '<string>',
'type' => '<string>'
]
],
'intel_confidence' => '<string>',
'known_exploited' => true,
'known_targets' => [
'<string>'
],
'targeted_industries' => [
'<string>'
],
'targeted_regions' => [
'<string>'
]
],
'environment' => '<string>',
'expected_types' => [
'<string>'
],
'options' => [
],
'query' => '<string>',
'resolution' => [
'include_aliases' => false,
'include_metadata' => false,
'max_results' => 5
],
'subject' => [
'canonical_id' => '<string>',
'entity_type' => '<string>',
'canonical_name' => '<string>'
],
'time_range' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.example.com/v2/environment-assessments"
payload := strings.NewReader("{\n \"environment_context\": {\n \"crown_jewel_asset_count\": 25000,\n \"detection_coverage\": 0.5,\n \"eol_asset_count\": 25000,\n \"externally_exposed_service_count\": 100000,\n \"mfa_enforced\": true,\n \"patch_latency_days\": 182,\n \"regions\": [\n \"<string>\"\n ],\n \"sector\": \"<string>\"\n },\n \"agent_context\": {\n \"objective\": \"<string>\",\n \"requested_outcome\": \"<string>\",\n \"run_id\": \"<string>\",\n \"step_id\": \"<string>\",\n \"client\": {\n \"agent_name\": \"<string>\",\n \"agent_version\": \"<string>\",\n \"framework\": \"<string>\"\n },\n \"constraints\": {\n \"latency_budget_ms\": 15025,\n \"max_results_budget\": 100,\n \"min_resolution_confidence\": 0.5,\n \"strict_mode\": true\n },\n \"parent_step_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"context\": {\n \"affected_cpes\": [\n \"<string>\"\n ],\n \"campaign_status\": \"<string>\",\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"intel_confidence\": \"<string>\",\n \"known_exploited\": true,\n \"known_targets\": [\n \"<string>\"\n ],\n \"targeted_industries\": [\n \"<string>\"\n ],\n \"targeted_regions\": [\n \"<string>\"\n ]\n },\n \"environment\": \"<string>\",\n \"expected_types\": [\n \"<string>\"\n ],\n \"options\": {},\n \"query\": \"<string>\",\n \"resolution\": {\n \"include_aliases\": false,\n \"include_metadata\": false,\n \"max_results\": 5\n },\n \"subject\": {\n \"canonical_id\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"canonical_name\": \"<string>\"\n },\n \"time_range\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://api.example.com/v2/environment-assessments")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"environment_context\": {\n \"crown_jewel_asset_count\": 25000,\n \"detection_coverage\": 0.5,\n \"eol_asset_count\": 25000,\n \"externally_exposed_service_count\": 100000,\n \"mfa_enforced\": true,\n \"patch_latency_days\": 182,\n \"regions\": [\n \"<string>\"\n ],\n \"sector\": \"<string>\"\n },\n \"agent_context\": {\n \"objective\": \"<string>\",\n \"requested_outcome\": \"<string>\",\n \"run_id\": \"<string>\",\n \"step_id\": \"<string>\",\n \"client\": {\n \"agent_name\": \"<string>\",\n \"agent_version\": \"<string>\",\n \"framework\": \"<string>\"\n },\n \"constraints\": {\n \"latency_budget_ms\": 15025,\n \"max_results_budget\": 100,\n \"min_resolution_confidence\": 0.5,\n \"strict_mode\": true\n },\n \"parent_step_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"context\": {\n \"affected_cpes\": [\n \"<string>\"\n ],\n \"campaign_status\": \"<string>\",\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"intel_confidence\": \"<string>\",\n \"known_exploited\": true,\n \"known_targets\": [\n \"<string>\"\n ],\n \"targeted_industries\": [\n \"<string>\"\n ],\n \"targeted_regions\": [\n \"<string>\"\n ]\n },\n \"environment\": \"<string>\",\n \"expected_types\": [\n \"<string>\"\n ],\n \"options\": {},\n \"query\": \"<string>\",\n \"resolution\": {\n \"include_aliases\": false,\n \"include_metadata\": false,\n \"max_results\": 5\n },\n \"subject\": {\n \"canonical_id\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"canonical_name\": \"<string>\"\n },\n \"time_range\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v2/environment-assessments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"environment_context\": {\n \"crown_jewel_asset_count\": 25000,\n \"detection_coverage\": 0.5,\n \"eol_asset_count\": 25000,\n \"externally_exposed_service_count\": 100000,\n \"mfa_enforced\": true,\n \"patch_latency_days\": 182,\n \"regions\": [\n \"<string>\"\n ],\n \"sector\": \"<string>\"\n },\n \"agent_context\": {\n \"objective\": \"<string>\",\n \"requested_outcome\": \"<string>\",\n \"run_id\": \"<string>\",\n \"step_id\": \"<string>\",\n \"client\": {\n \"agent_name\": \"<string>\",\n \"agent_version\": \"<string>\",\n \"framework\": \"<string>\"\n },\n \"constraints\": {\n \"latency_budget_ms\": 15025,\n \"max_results_budget\": 100,\n \"min_resolution_confidence\": 0.5,\n \"strict_mode\": true\n },\n \"parent_step_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"context\": {\n \"affected_cpes\": [\n \"<string>\"\n ],\n \"campaign_status\": \"<string>\",\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"intel_confidence\": \"<string>\",\n \"known_exploited\": true,\n \"known_targets\": [\n \"<string>\"\n ],\n \"targeted_industries\": [\n \"<string>\"\n ],\n \"targeted_regions\": [\n \"<string>\"\n ]\n },\n \"environment\": \"<string>\",\n \"expected_types\": [\n \"<string>\"\n ],\n \"options\": {},\n \"query\": \"<string>\",\n \"resolution\": {\n \"include_aliases\": false,\n \"include_metadata\": false,\n \"max_results\": 5\n },\n \"subject\": {\n \"canonical_id\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"canonical_name\": \"<string>\"\n },\n \"time_range\": {}\n}"
response = http.request(request)
puts response.read_body{
"assessment_type": "<string>",
"caveats": [
"<string>"
],
"confidence": 123,
"evidence_refs": [
{}
],
"input": {},
"metadata": {},
"priority": {},
"rationale_codes": [
"<string>"
],
"recommended_actions": [
"<string>"
],
"resolution": {
"candidates": [
{
"canonical_id": "<string>",
"canonical_name": "<string>",
"entity_type": "<string>",
"match_type": "<string>",
"score": 123,
"aliases": [
"<string>"
],
"matched_on": "<string>",
"metadata": {}
}
],
"canonical_id": "<string>",
"canonical_name": "<string>",
"entity_type": "<string>",
"resolution_confidence": 123
},
"signals": {},
"timestamp": 123,
"trace_id": "<string>",
"debug": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Assessments
Assess environment
POST
/
v2
/
environment-assessments
Structured environment assessment (LLM-free)
curl --request POST \
--url https://api.example.com/v2/environment-assessments \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"environment_context": {
"crown_jewel_asset_count": 25000,
"detection_coverage": 0.5,
"eol_asset_count": 25000,
"externally_exposed_service_count": 100000,
"mfa_enforced": true,
"patch_latency_days": 182,
"regions": [
"<string>"
],
"sector": "<string>"
},
"agent_context": {
"objective": "<string>",
"requested_outcome": "<string>",
"run_id": "<string>",
"step_id": "<string>",
"client": {
"agent_name": "<string>",
"agent_version": "<string>",
"framework": "<string>"
},
"constraints": {
"latency_budget_ms": 15025,
"max_results_budget": 100,
"min_resolution_confidence": 0.5,
"strict_mode": true
},
"parent_step_id": "<string>",
"tags": [
"<string>"
]
},
"context": {
"affected_cpes": [
"<string>"
],
"campaign_status": "<string>",
"evidence_refs": [
{
"id": "<string>",
"type": "<string>"
}
],
"intel_confidence": "<string>",
"known_exploited": true,
"known_targets": [
"<string>"
],
"targeted_industries": [
"<string>"
],
"targeted_regions": [
"<string>"
]
},
"environment": "<string>",
"expected_types": [
"<string>"
],
"options": {},
"query": "<string>",
"resolution": {
"include_aliases": false,
"include_metadata": false,
"max_results": 5
},
"subject": {
"canonical_id": "<string>",
"entity_type": "<string>",
"canonical_name": "<string>"
},
"time_range": {}
}
'import requests
url = "https://api.example.com/v2/environment-assessments"
payload = {
"environment_context": {
"crown_jewel_asset_count": 25000,
"detection_coverage": 0.5,
"eol_asset_count": 25000,
"externally_exposed_service_count": 100000,
"mfa_enforced": True,
"patch_latency_days": 182,
"regions": ["<string>"],
"sector": "<string>"
},
"agent_context": {
"objective": "<string>",
"requested_outcome": "<string>",
"run_id": "<string>",
"step_id": "<string>",
"client": {
"agent_name": "<string>",
"agent_version": "<string>",
"framework": "<string>"
},
"constraints": {
"latency_budget_ms": 15025,
"max_results_budget": 100,
"min_resolution_confidence": 0.5,
"strict_mode": True
},
"parent_step_id": "<string>",
"tags": ["<string>"]
},
"context": {
"affected_cpes": ["<string>"],
"campaign_status": "<string>",
"evidence_refs": [
{
"id": "<string>",
"type": "<string>"
}
],
"intel_confidence": "<string>",
"known_exploited": True,
"known_targets": ["<string>"],
"targeted_industries": ["<string>"],
"targeted_regions": ["<string>"]
},
"environment": "<string>",
"expected_types": ["<string>"],
"options": {},
"query": "<string>",
"resolution": {
"include_aliases": False,
"include_metadata": False,
"max_results": 5
},
"subject": {
"canonical_id": "<string>",
"entity_type": "<string>",
"canonical_name": "<string>"
},
"time_range": {}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
environment_context: {
crown_jewel_asset_count: 25000,
detection_coverage: 0.5,
eol_asset_count: 25000,
externally_exposed_service_count: 100000,
mfa_enforced: true,
patch_latency_days: 182,
regions: ['<string>'],
sector: '<string>'
},
agent_context: {
objective: '<string>',
requested_outcome: '<string>',
run_id: '<string>',
step_id: '<string>',
client: {agent_name: '<string>', agent_version: '<string>', framework: '<string>'},
constraints: {
latency_budget_ms: 15025,
max_results_budget: 100,
min_resolution_confidence: 0.5,
strict_mode: true
},
parent_step_id: '<string>',
tags: ['<string>']
},
context: {
affected_cpes: ['<string>'],
campaign_status: '<string>',
evidence_refs: [{id: '<string>', type: '<string>'}],
intel_confidence: '<string>',
known_exploited: true,
known_targets: ['<string>'],
targeted_industries: ['<string>'],
targeted_regions: ['<string>']
},
environment: '<string>',
expected_types: ['<string>'],
options: {},
query: '<string>',
resolution: {include_aliases: false, include_metadata: false, max_results: 5},
subject: {canonical_id: '<string>', entity_type: '<string>', canonical_name: '<string>'},
time_range: {}
})
};
fetch('https://api.example.com/v2/environment-assessments', 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.example.com/v2/environment-assessments",
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([
'environment_context' => [
'crown_jewel_asset_count' => 25000,
'detection_coverage' => 0.5,
'eol_asset_count' => 25000,
'externally_exposed_service_count' => 100000,
'mfa_enforced' => true,
'patch_latency_days' => 182,
'regions' => [
'<string>'
],
'sector' => '<string>'
],
'agent_context' => [
'objective' => '<string>',
'requested_outcome' => '<string>',
'run_id' => '<string>',
'step_id' => '<string>',
'client' => [
'agent_name' => '<string>',
'agent_version' => '<string>',
'framework' => '<string>'
],
'constraints' => [
'latency_budget_ms' => 15025,
'max_results_budget' => 100,
'min_resolution_confidence' => 0.5,
'strict_mode' => true
],
'parent_step_id' => '<string>',
'tags' => [
'<string>'
]
],
'context' => [
'affected_cpes' => [
'<string>'
],
'campaign_status' => '<string>',
'evidence_refs' => [
[
'id' => '<string>',
'type' => '<string>'
]
],
'intel_confidence' => '<string>',
'known_exploited' => true,
'known_targets' => [
'<string>'
],
'targeted_industries' => [
'<string>'
],
'targeted_regions' => [
'<string>'
]
],
'environment' => '<string>',
'expected_types' => [
'<string>'
],
'options' => [
],
'query' => '<string>',
'resolution' => [
'include_aliases' => false,
'include_metadata' => false,
'max_results' => 5
],
'subject' => [
'canonical_id' => '<string>',
'entity_type' => '<string>',
'canonical_name' => '<string>'
],
'time_range' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.example.com/v2/environment-assessments"
payload := strings.NewReader("{\n \"environment_context\": {\n \"crown_jewel_asset_count\": 25000,\n \"detection_coverage\": 0.5,\n \"eol_asset_count\": 25000,\n \"externally_exposed_service_count\": 100000,\n \"mfa_enforced\": true,\n \"patch_latency_days\": 182,\n \"regions\": [\n \"<string>\"\n ],\n \"sector\": \"<string>\"\n },\n \"agent_context\": {\n \"objective\": \"<string>\",\n \"requested_outcome\": \"<string>\",\n \"run_id\": \"<string>\",\n \"step_id\": \"<string>\",\n \"client\": {\n \"agent_name\": \"<string>\",\n \"agent_version\": \"<string>\",\n \"framework\": \"<string>\"\n },\n \"constraints\": {\n \"latency_budget_ms\": 15025,\n \"max_results_budget\": 100,\n \"min_resolution_confidence\": 0.5,\n \"strict_mode\": true\n },\n \"parent_step_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"context\": {\n \"affected_cpes\": [\n \"<string>\"\n ],\n \"campaign_status\": \"<string>\",\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"intel_confidence\": \"<string>\",\n \"known_exploited\": true,\n \"known_targets\": [\n \"<string>\"\n ],\n \"targeted_industries\": [\n \"<string>\"\n ],\n \"targeted_regions\": [\n \"<string>\"\n ]\n },\n \"environment\": \"<string>\",\n \"expected_types\": [\n \"<string>\"\n ],\n \"options\": {},\n \"query\": \"<string>\",\n \"resolution\": {\n \"include_aliases\": false,\n \"include_metadata\": false,\n \"max_results\": 5\n },\n \"subject\": {\n \"canonical_id\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"canonical_name\": \"<string>\"\n },\n \"time_range\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://api.example.com/v2/environment-assessments")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"environment_context\": {\n \"crown_jewel_asset_count\": 25000,\n \"detection_coverage\": 0.5,\n \"eol_asset_count\": 25000,\n \"externally_exposed_service_count\": 100000,\n \"mfa_enforced\": true,\n \"patch_latency_days\": 182,\n \"regions\": [\n \"<string>\"\n ],\n \"sector\": \"<string>\"\n },\n \"agent_context\": {\n \"objective\": \"<string>\",\n \"requested_outcome\": \"<string>\",\n \"run_id\": \"<string>\",\n \"step_id\": \"<string>\",\n \"client\": {\n \"agent_name\": \"<string>\",\n \"agent_version\": \"<string>\",\n \"framework\": \"<string>\"\n },\n \"constraints\": {\n \"latency_budget_ms\": 15025,\n \"max_results_budget\": 100,\n \"min_resolution_confidence\": 0.5,\n \"strict_mode\": true\n },\n \"parent_step_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"context\": {\n \"affected_cpes\": [\n \"<string>\"\n ],\n \"campaign_status\": \"<string>\",\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"intel_confidence\": \"<string>\",\n \"known_exploited\": true,\n \"known_targets\": [\n \"<string>\"\n ],\n \"targeted_industries\": [\n \"<string>\"\n ],\n \"targeted_regions\": [\n \"<string>\"\n ]\n },\n \"environment\": \"<string>\",\n \"expected_types\": [\n \"<string>\"\n ],\n \"options\": {},\n \"query\": \"<string>\",\n \"resolution\": {\n \"include_aliases\": false,\n \"include_metadata\": false,\n \"max_results\": 5\n },\n \"subject\": {\n \"canonical_id\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"canonical_name\": \"<string>\"\n },\n \"time_range\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v2/environment-assessments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"environment_context\": {\n \"crown_jewel_asset_count\": 25000,\n \"detection_coverage\": 0.5,\n \"eol_asset_count\": 25000,\n \"externally_exposed_service_count\": 100000,\n \"mfa_enforced\": true,\n \"patch_latency_days\": 182,\n \"regions\": [\n \"<string>\"\n ],\n \"sector\": \"<string>\"\n },\n \"agent_context\": {\n \"objective\": \"<string>\",\n \"requested_outcome\": \"<string>\",\n \"run_id\": \"<string>\",\n \"step_id\": \"<string>\",\n \"client\": {\n \"agent_name\": \"<string>\",\n \"agent_version\": \"<string>\",\n \"framework\": \"<string>\"\n },\n \"constraints\": {\n \"latency_budget_ms\": 15025,\n \"max_results_budget\": 100,\n \"min_resolution_confidence\": 0.5,\n \"strict_mode\": true\n },\n \"parent_step_id\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"context\": {\n \"affected_cpes\": [\n \"<string>\"\n ],\n \"campaign_status\": \"<string>\",\n \"evidence_refs\": [\n {\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"intel_confidence\": \"<string>\",\n \"known_exploited\": true,\n \"known_targets\": [\n \"<string>\"\n ],\n \"targeted_industries\": [\n \"<string>\"\n ],\n \"targeted_regions\": [\n \"<string>\"\n ]\n },\n \"environment\": \"<string>\",\n \"expected_types\": [\n \"<string>\"\n ],\n \"options\": {},\n \"query\": \"<string>\",\n \"resolution\": {\n \"include_aliases\": false,\n \"include_metadata\": false,\n \"max_results\": 5\n },\n \"subject\": {\n \"canonical_id\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"canonical_name\": \"<string>\"\n },\n \"time_range\": {}\n}"
response = http.request(request)
puts response.read_body{
"assessment_type": "<string>",
"caveats": [
"<string>"
],
"confidence": 123,
"evidence_refs": [
{}
],
"input": {},
"metadata": {},
"priority": {},
"rationale_codes": [
"<string>"
],
"recommended_actions": [
"<string>"
],
"resolution": {
"candidates": [
{
"canonical_id": "<string>",
"canonical_name": "<string>",
"entity_type": "<string>",
"match_type": "<string>",
"score": 123,
"aliases": [
"<string>"
],
"matched_on": "<string>",
"metadata": {}
}
],
"canonical_id": "<string>",
"canonical_name": "<string>",
"entity_type": "<string>",
"resolution_confidence": 123
},
"signals": {},
"timestamp": 123,
"trace_id": "<string>",
"debug": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Scope and credits
| Requirement | Value |
|---|---|
| Required scopes | read:assessments |
| Credits | 10 credits per request |
Authorizations
ApiKey <key_id>:
Body
application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Maximum string length:
1024Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Successful Response
Show child attributes
Show child attributes
Was this page helpful?
⌘I
.png?fit=max&auto=format&n=u7saXgSwhIjXsY7P&q=85&s=66da6f97e851defcb12af05b800a8a27)
.png?fit=max&auto=format&n=u7saXgSwhIjXsY7P&q=85&s=37df025ce7a3cc54dd90f8edad1cf54f)