---
title: "List Code Scan Inventory"
method: GET
path: "/v1/projects/{project_id}/code-scan/inventory"
tags: ["code-scan"]
---

# List Code Scan Inventory

`GET /v1/projects/{project_id}/code-scan/inventory`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/projects/{project_id}/code-scan/inventory`
- Auth: none declared

Discovered (component, prop) pairs carrying a string literal (Viewer+).

Read-only source of the translatable-props discovery screen. Written by
PIGGYBACK on the ingest (`component_prop_inventory`), one row per pair, sorted
by (component, prop). Empty = the last scan sent an empty inventory (or none
ever did).

## Path parameters

- `project_id` string, required

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- CodeScanInventoryPage
  - `items` CodeScanInventoryRow[], required
    - `component` string, required
    - `prop` string, required
    - `is_component` boolean
    - `count` integer
    - `samples` string[]
    - `first_file` string, nullable
    - `first_line` integer, nullable
    - `import_source` string, nullable: Module the component is imported from; null when unknown.
    - `defined_at` string, nullable: Project file where the component is defined (local); null if external.
  - `total` integer, required: Distinct (component, prop) pairs discovered on this project.
  - `limit` integer, required
  - `offset` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
