---
title: "List Inventory Components Route"
method: GET
path: "/api/v1/inventory/components"
---

# List Inventory Components Route

`GET /api/v1/inventory/components`

## Request

- Base URL: `https://api.stacktrace.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stacktrace.ai/api/v1/inventory/components`
- Auth: none declared

## Query parameters

- `component_type` string, nullable
- `agent_kind` string, nullable
- `q` string, nullable
- `sort` 'reach' | 'component' | 'type' | 'versions' | 'first_seen'
- `direction` 'asc' | 'desc'
- `limit` integer

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- InventoryComponentsResponse: Inventory › Components in one read: the rows and every count the page shows, from one population under the same filters.
  - `items` InventoryComponentGroup[], required
    - `key` string, required
    - `component_type` string, required
    - `identity` string, nullable, required
    - `name` string, required
    - `bom_id` string, nullable, required
    - `component_bom_ref` string, nullable, required
    - `purl` string, nullable, required
    - `versions` InventoryComponentVersion[], required
      - `version` string, nullable, required
      - `agent_count` integer, required
    - `version_count` integer, required
    - `reach` integer, required
    - `agent_kinds` string[], required
    - `occurrence_count` integer, required
    - `inactive_occurrence_count` integer, required
    - `vulnerability_counts` SeverityCounts, required
      - `critical` integer
      - `high` integer
      - `medium` integer
      - `low` integer
    - `posture_counts` SeverityCounts, required
      - `critical` integer
      - `high` integer
      - `medium` integer
      - `low` integer
    - `first_seen_at` string, date-time, nullable
    - `source` string, nullable
  - `total` integer, required
  - `all_count` integer, required
  - `type_counts` object
  - `agent_counts` object
  - `available_agent_kinds` string[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api.md) - [All operations](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api/revisions/0ee5484d1d0b?raw)
