Skip to main content
POST
/
api
/
v1
/
sca
/
ai-inventory
/
components
/
search
List AI components for a repository scan
curl --request POST \
  --url https://zeropath.com/api/v1/sca/ai-inventory/components/search \
  --header 'Content-Type: application/json' \
  --header 'X-ZeroPath-API-Token-Id: <api-key>' \
  --header 'X-ZeroPath-API-Token-Secret: <api-key>' \
  --data '
{
  "organizationId": "<string>",
  "repositoryId": "<string>",
  "scanId": "<string>",
  "offset": 0,
  "limit": 50,
  "kinds": [],
  "usages": [],
  "tiers": [],
  "providers": [
    "<string>"
  ],
  "detectionSources": [],
  "searchQuery": "<string>"
}
'
{
  "components": [
    {
      "id": "<string>",
      "name": "<string>",
      "provider": "<string>",
      "version": "<string>",
      "ecosystem": "<string>",
      "manifestPath": "<string>",
      "manifestStartLine": 123,
      "isTransitive": true,
      "filePath": "<string>",
      "applicationId": "<string>",
      "reachability": {
        "isReachable": true,
        "reachableSummary": "<string>"
      }
    }
  ],
  "totalCount": 123,
  "hasMore": true
}

Authorizations

X-ZeroPath-API-Token-Id
string
header
required
X-ZeroPath-API-Token-Secret
string
header
required

Body

application/json
organizationId
string
required
repositoryId
string
required
scanType
enum<string>
required

Which scan table the resolved AI-bearing scan lives in

Available options:
sca,
code
scanId
string
required
offset
integer
default:0
Required range: x >= 0
limit
integer
default:50
Required range: 1 <= x <= 100
kinds
enum<string>[]
Available options:
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
enum<string>[]
Available options:
RUNTIME,
DEV_TOOLING,
AMBIGUOUS
tiers
enum<string>[]
Available options:
GENAI,
CLASSIC_ML
providers
string[]
detectionSources
enum<string>[]
Available options:
SCA_PACKAGE,
FILE_PATH,
FILE_CONTENT,
CONFIG_FILE
searchQuery
string

Matches component name, provider, manifest path, or file path

Response

Successful response

components
object[]
required
totalCount
integer
required
hasMore
boolean
required