> ## Documentation Index
> Fetch the complete documentation index at: https://zeropath.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List AI components for a repository scan

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



## OpenAPI

````yaml https://zeropath.com/openapi/v1.yaml post /api/v1/sca/ai-inventory/components/search
openapi: 3.1.0
info:
  title: ZeroPath API
  version: 1.0.0
  description: Public API for ZeroPath
servers:
  - url: https://zeropath.com
    description: Production server
    x-fern-server-name: Production
  - url: https://dev.branch.zeropath.com
    description: Development server
    x-fern-server-name: Development
security:
  - apiTokenId: []
    apiTokenSecret: []
tags:
  - name: Organizations
    description: Operations related to organizations
  - name: Stats
    description: Operations related to stats
  - name: Repositories
    description: Operations related to repositories
  - name: Installations
    description: Operations related to installations
  - name: Issues
    description: Operations related to issues
  - name: SCA
    description: Software Composition Analysis
  - name: Scans
    description: Operations related to scans
  - name: Rules
    description: Operations related to custom security rules
  - name: Referrals
    description: Operations related to referrals
paths:
  /api/v1/sca/ai-inventory/components/search:
    post:
      tags:
        - SCA
      summary: List AI components for a repository scan
      description: >-
        Retrieve AI component rows from one repository's resolved AI-bearing
        scan, ordered by kind.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListAIComponentsInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AIComponentListResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    ListAIComponentsInput:
      type: object
      properties:
        organizationId:
          type: string
        repositoryId:
          type: string
        scanType:
          type: string
          enum:
            - sca
            - code
          description: Which scan table the resolved AI-bearing scan lives in
        scanId:
          type: string
        offset:
          type: integer
          minimum: 0
          default: 0
        limit:
          type: integer
          minimum: 1
          maximum: 100
          default: 50
        kinds:
          type: array
          items:
            type: string
            enum:
              - 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
        usages:
          type: array
          items:
            type: string
            enum:
              - RUNTIME
              - DEV_TOOLING
              - AMBIGUOUS
        tiers:
          type: array
          items:
            type: string
            enum:
              - GENAI
              - CLASSIC_ML
        providers:
          type: array
          items:
            type: string
        detectionSources:
          type: array
          items:
            type: string
            enum:
              - SCA_PACKAGE
              - FILE_PATH
              - FILE_CONTENT
              - CONFIG_FILE
        searchQuery:
          type: string
          description: Matches component name, provider, manifest path, or file path
      required:
        - organizationId
        - repositoryId
        - scanType
        - scanId
    AIComponentListResponse:
      type: object
      properties:
        components:
          type: array
          items:
            $ref: '#/components/schemas/AIComponent'
        totalCount:
          type: integer
        hasMore:
          type: boolean
      required:
        - components
        - totalCount
        - hasMore
    AIComponent:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - 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
        usage:
          type: string
          enum:
            - RUNTIME
            - DEV_TOOLING
            - AMBIGUOUS
        tier:
          type:
            - string
            - 'null'
          enum:
            - GENAI
            - CLASSIC_ML
            - null
        detectionSource:
          type: string
          enum:
            - SCA_PACKAGE
            - FILE_PATH
            - FILE_CONTENT
            - CONFIG_FILE
        name:
          type: string
        provider:
          type:
            - string
            - 'null'
        version:
          type:
            - string
            - 'null'
        ecosystem:
          type:
            - string
            - 'null'
        manifestPath:
          type:
            - string
            - 'null'
        manifestStartLine:
          type:
            - integer
            - 'null'
        isTransitive:
          type:
            - boolean
            - 'null'
        filePath:
          type:
            - string
            - 'null'
        modelFormat:
          type:
            - string
            - 'null'
          enum:
            - GGUF
            - SAFETENSORS
            - PYTORCH
            - HDF5
            - TFLITE
            - ONNX
            - TF_SAVEDMODEL
            - COREML
            - PICKLE
            - null
        applicationId:
          type:
            - string
            - 'null'
        reachability:
          oneOf:
            - $ref: '#/components/schemas/AIComponentReachability'
            - type: 'null'
      required:
        - id
        - kind
        - usage
        - detectionSource
        - name
    AIComponentReachability:
      type: object
      description: >-
        Reachability inherited from the linked SCA package. Absent (null on the
        component) when no package link exists.
      properties:
        isReachable:
          type:
            - boolean
            - 'null'
          description: true = reachable, false = not reachable, null = not tested
        reachableSummary:
          type:
            - string
            - 'null'
      required:
        - isReachable
        - reachableSummary
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
  securitySchemes:
    apiTokenId:
      type: apiKey
      in: header
      name: X-ZeroPath-API-Token-Id
      x-fern-header:
        name: apiTokenId
        env: ZEROPATH_API_TOKEN_ID
    apiTokenSecret:
      type: apiKey
      in: header
      name: X-ZeroPath-API-Token-Secret
      x-fern-header:
        name: apiTokenSecret
        env: ZEROPATH_API_TOKEN_SECRET

````