---
title: "List AI components for a repository scan"
method: POST
path: "/api/v1/sca/ai-inventory/components/search"
tags: ["SCA"]
---

# List AI components for a repository scan

`POST /api/v1/sca/ai-inventory/components/search`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v1/sca/ai-inventory/components/search`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Retrieve AI component rows from one repository's resolved AI-bearing scan, ordered by kind.

## Request body

- ListAIComponentsInput
  - `organizationId` string, required
  - `repositoryId` string, required
  - `scanType` 'sca' | 'code', required: Which scan table the resolved AI-bearing scan lives in
  - `scanId` string, required
  - `offset` integer
  - `limit` integer
  - `kinds` string[]
  - `usages` string[]
  - `tiers` string[]
  - `providers` string[]
  - `detectionSources` string[]
  - `searchQuery` string: Matches component name, provider, manifest path, or file path

## Response `200`

Successful response

- AIComponentListResponse
  - `components` AIComponent[], required
    - `id` string, required
    - `kind` 'MCP_SERVER' | 'LLM_SDK' | 'AGENT_FRAMEWORK' | 'ML_FRAMEWORK' | 'ML_RUNTIME' | 'VECTOR_DB' | 'GUARDRAILS' | 'AI_OBSERVABILITY' | 'SPEECH_AUDIO' | 'TOKENIZER' | 'MODEL_FILE' | 'DATASET' | 'AGENT_CONFIG' | 'AGENT_INSTRUCTIONS' | 'SKILL' | 'PROMPT_TEMPLATE' | 'LOCAL_MODEL_CONFIG', required
    - `usage` 'RUNTIME' | 'DEV_TOOLING' | 'AMBIGUOUS', required
    - `tier` 'GENAI' | 'CLASSIC_ML' | 'null', nullable
    - `detectionSource` 'SCA_PACKAGE' | 'FILE_PATH' | 'FILE_CONTENT' | 'CONFIG_FILE', required
    - `name` string, required
    - `provider` string, nullable
    - `version` string, nullable
    - `ecosystem` string, nullable
    - `manifestPath` string, nullable
    - `manifestStartLine` integer, nullable
    - `isTransitive` boolean, nullable
    - `filePath` string, nullable
    - `modelFormat` 'GGUF' | 'SAFETENSORS' | 'PYTORCH' | 'HDF5' | 'TFLITE' | 'ONNX' | 'TF_SAVEDMODEL' | 'COREML' | 'PICKLE' | 'null', nullable
    - `applicationId` string, nullable
    - `reachability` AIComponentReachability: Reachability inherited from the linked SCA package. Absent (null on the component) when no package link exists.
      - `isReachable` boolean, nullable, required: true = reachable, false = not reachable, null = not tested
      - `reachableSummary` string, nullable, required
  - `totalCount` integer, required
  - `hasMore` boolean, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found

---

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