Skip to main content
POST
/
api
/
v1
/
sca
/
ai-inventory
/
repositories
/
search
List repositories with AI components
curl --request POST \
  --url https://zeropath.com/api/v1/sca/ai-inventory/repositories/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>",
  "repositoryIds": [
    "<string>"
  ],
  "cursor": "<string>",
  "limit": 10,
  "kinds": [],
  "usages": [],
  "tiers": [],
  "providers": [
    "<string>"
  ],
  "detectionSources": [],
  "searchQuery": "<string>"
}
'
{
  "repositories": [
    {
      "repositoryId": "<string>",
      "repositoryName": "<string>",
      "scanId": "<string>",
      "scanFinishedAt": "2023-11-07T05:31:56Z",
      "totalCount": 123,
      "kindCounts": [
        {
          "count": 123
        }
      ],
      "monorepoName": "<string>"
    }
  ],
  "nextCursor": "<string>"
}

Authorizations

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

Body

application/json
organizationId
string
required
repositoryIds
string[]
cursor
string

Opaque keyset cursor returned by a previous page

limit
integer
default:10
Required range: 1 <= x <= 50
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

repositories
object[]
required
nextCursor
string