# List scans

URL: https://docs.hanzo.ai/docs/openapi/security/get-security-scans

> 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`

> [Security →](https://docs.hanzo.ai/docs/openapi/security) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                          |
| ------------- | ---------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/security/scans` |
| **Method**    | `GET`                                    |
| **Operation** | `get_security_scans`                     |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY`   |

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`     | security.scanList | ok      |
| `default` | problem-details   | refused |

`200` body — 10 fields.

| Field              | In   | Type                 | Always | Description                                               |
| ------------------ | ---- | -------------------- | ------ | --------------------------------------------------------- |
| `data`             | body | security.scanView\[] | —      | Data is the caller org's scans, newest first.             |
| `data[].createdAt` | body | integer (int64)      | —      | CreatedAt is when the scan ran, in Unix milliseconds.     |
| `data[].critical`  | body | integer (int64)      | —      | Critical is how many findings carry the highest severity. |
| `data[].files`     | body | integer (int64)      | —      | Files is how many files the scan read.                    |
| `data[].findings`  | body | integer (int64)      | —      | Findings is how many secrets fired across them.           |
| `data[].high`      | body | integer (int64)      | —      | High is how many findings rank high.                      |
| `data[].id`        | body | string               | —      | ID addresses this scan and every finding on it.           |
| `data[].low`       | body | integer (int64)      | —      | Low is how many findings rank low.                        |
| `data[].medium`    | body | integer (int64)      | —      | 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](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo security scans list
```

**SDK**

**.ts**

```ts
import { Configuration, SecurityApi } from 'hanzoai';

const api = new SecurityApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getSecurityScans();
```

**.py**

```python
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()
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.SecurityAPI.GetSecurityScans(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::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?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.SecurityApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new SecurityApi(client).getSecurityScans();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/security/scans \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

MCP reaches **security** through the `security` tool, which names its 7 operations with its own verbs — this one among them, under a name only MCP declares. `describe` explains any of them:

```bash
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"
         }
       }
     }'
```

---

[Security API](https://docs.hanzo.ai/docs/openapi/security) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
