> ## 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 repositories with AI components

> List repositories whose latest AI-bearing scan detected AI components, with per-kind counts.



## OpenAPI

````yaml https://zeropath.com/openapi/v1.yaml post /api/v1/sca/ai-inventory/repositories/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/repositories/search:
    post:
      tags:
        - SCA
      summary: List repositories with AI components
      description: >-
        List repositories whose latest AI-bearing scan detected AI components,
        with per-kind counts.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListAIInventoryRepositoriesInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AIInventoryRepositoriesResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ListAIInventoryRepositoriesInput:
      type: object
      properties:
        organizationId:
          type: string
        repositoryIds:
          type: array
          items:
            type: string
        cursor:
          type: string
          description: Opaque keyset cursor returned by a previous page
        limit:
          type: integer
          minimum: 1
          maximum: 50
          default: 10
        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
    AIInventoryRepositoriesResponse:
      type: object
      properties:
        repositories:
          type: array
          items:
            $ref: '#/components/schemas/AIInventoryRepositoryItem'
        nextCursor:
          type: string
      required:
        - repositories
    AIInventoryRepositoryItem:
      type: object
      properties:
        repositoryId:
          type: string
        repositoryName:
          type: string
        monorepoName:
          type:
            - string
            - 'null'
        scanType:
          type: string
          enum:
            - sca
            - code
        scanId:
          type: string
        scanFinishedAt:
          type: string
          format: date-time
        totalCount:
          type: integer
        kindCounts:
          type: array
          items:
            $ref: '#/components/schemas/AIInventoryKindCount'
          description: Per-kind component counts, ordered by count descending
      required:
        - repositoryId
        - repositoryName
        - scanType
        - scanId
        - scanFinishedAt
        - totalCount
        - kindCounts
    AIInventoryKindCount:
      type: object
      properties:
        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
        count:
          type: integer
      required:
        - kind
        - count
  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
  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

````