OpenapiSecurity
Is the org's scan history, newest first, each as the same summary the…
Is the org's scan history, newest first, each as the same summary the submission answered — files read, findings fired, tally by severity.
GET /v1/security/scans
| Address | https://api.hanzo.ai/v1/security/scans |
| Method | GET |
| Operation | get_security_scans |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Is the org's scan history, newest first, each as the same summary the submission answered — files read, findings fired, tally by severity.
Strictly org-scoped: a caller only ever sees its own scans, and one with no validated org is refused.
Request
1 field.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | — | Limit caps the page. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | scanList | ok |
200 body — 10 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
data | body | scanView[] | — | Data is the caller org's scans, newest first. |
data[].createdAt | body | integer | — | CreatedAt is when the scan ran, in Unix milliseconds. |
data[].critical | body | integer | — | Critical is how many findings carry the highest severity. |
data[].files | body | integer | — | Files is how many files the scan read. |
data[].findings | body | integer | — | Findings is how many secrets fired across them. |
data[].high | body | integer | — | High is how many findings rank high. |
data[].id | body | string | — | ID addresses this scan and every finding on it. |
data[].low | body | integer | — | Low is how many findings rank low. |
data[].medium | body | integer | — | Medium is how many findings rank medium. |
data[].project | body | string | — | Project is the sub-scope the scan was filed under. |
Failure carries the platform error shape — see Errors.
Examples
hanzo security scans listimport { Configuration, SecurityApi } from 'hanzoai';
const api = new SecurityApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getSecurityScans();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import SecurityApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = SecurityApi(client).get_security_scans()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.SecurityAPI.GetSecurityScans(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, security_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = security_api::get_security_scans(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.SecurityApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new SecurityApi(client).getSecurityScans();curl https://api.hanzo.ai/v1/security/scans \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches security through the security tool, which names its 7 operations with its own verbs — this one among them, under a name only the door declares. describe explains any of them:
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "describe",
"arguments": {
"op": "list_security_findings"
}
}
}'How is this guide?