# List SBOMs

List every SBOM in the organization.

`GET /sscs/sboms`

Scope `sbom:read` | Plan **Growth+**

List every SBOM in the organization. `q` does a case-insensitive substring match on the SBOM name. Results are not paginated. Requires the sbom:read scope.

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `q` | string | no | Case-insensitive substring match on the SBOM name. |

## Returns

The `data` field of the standard `{ data, error, meta }` envelope:

An array of object:
- `sbomId`: optional string
- `orgId`: string
- `name`: string Product or repository name.
- `version`: optional string
- `assetId`: optional string Linked asset id, when the SBOM belongs to a known asset.
- `source`: string How the SBOM was ingested.
  - `go.sum`
  - `pom.xml`
  - `build.gradle`
  - `package.json`
  - `requirements.txt`
  - `csproj`
  - `Cargo.lock`
  - `Gemfile.lock`
  - `composer.lock`
  - `Podfile.lock`
  - `Package.resolved`
  - `pubspec.lock`
  - `cyclonedx`
  - `spdx`
  - `manual`
- `sourceRef`: optional string Git SHA, CI build id or filename.
- `repoUrl`: optional string
- `branch`: optional string
- `commitSha`: optional string
- `componentCount`: integer minimum 0
- `findingsCritical`: integer minimum 0
- `findingsHigh`: integer minimum 0
- `findingsMedium`: integer minimum 0
- `findingsLow`: integer minimum 0
- `lastMatchedAt`: optional string (date-time) Time of the last CVE matching run; absent before the first run.
- `createdAt`: string (date-time)
- `updatedAt`: string (date-time)

## Errors

| Status | Code | Retry | Meaning |
|---|---|---|---|
| 401 | `INVALID_TOKEN` | no | Missing (UNAUTHORIZED) or invalid, expired or revoked (INVALID_TOKEN) token. |
| 402 | `FEATURE_GATED` | no | The tenant plan does not include supply chain security. code FEATURE_GATED; args.feature, args.minTier, args.minTierName. |
| 403 | `INSUFFICIENT_SCOPE` | no | The token lacks the required scope (INSUFFICIENT_SCOPE) or the request is refused (FORBIDDEN). |
| 429 | `RATE_LIMITED` | yes | Too many failed authentication attempts from this address. code RATE_LIMITED; wait Retry-After seconds. |
| 500 | `DB_ERROR` | no | Unexpected server error. code DB_ERROR (or VALIDATION_ERROR when the request could not be validated); quote error.id to support. |
| 503 | `BILLING_UNAVAILABLE` | yes | Billing is temporarily unavailable, so the plan could not be checked. code BILLING_UNAVAILABLE. Retry later. |

## Example

### curl

```bash
curl "https://api.autociso.io/api/v1/sscs/sboms" \
  -H "Authorization: Bearer <your-api-token>"
```

### Python

```python
import requests

response = requests.get(
    "https://api.autociso.io/api/v1/sscs/sboms",
    headers={"Authorization": "Bearer <your-api-token>"},
)
print(response.json())
```

### JavaScript

```javascript
const response = await fetch("https://api.autociso.io/api/v1/sscs/sboms", {
  method: "GET",
  headers: { "Authorization": "Bearer <your-api-token>" },
});
console.log(await response.json());
```

## Response (200)

```json
{
  "data": [
    {
      "sbomId": "sbom_example000001",
      "orgId": "org_example000001",
      "name": "example-service",
      "version": "2026.9.1",
      "assetId": "ast_example000001",
      "source": "go.sum",
      "sourceRef": "go.sum",
      "repoUrl": "https://git.example.com/example-org/example-service",
      "branch": "main",
      "componentCount": 184,
      "findingsCritical": 1,
      "findingsHigh": 4,
      "findingsMedium": 11,
      "findingsLow": 6,
      "lastMatchedAt": "2026-09-08T02:14:00Z",
      "createdAt": "2026-09-01T09:32:41Z",
      "updatedAt": "2026-09-08T02:14:00Z"
    }
  ]
}
```
