Threat Model

List applications in a repository with threat-model status

List every application identified in a repository together with whether each one has a threat model yet. Use this to discover which applicationInfoIds to pass to the other threat-model tools, or to find apps that haven't had threat-modeling run yet (their first full scan will generate one).

post/api/v2/threatModel/listForRepo

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

organizationIdstring

Organization that owns the repository.

repositoryIdstring required

cuid of the repository to list applications for.

Response

List of applications in the repository

applicationInfoIdstring required

cuid of the PersistentSastScanApplicationInfo. Pass this to the other threat-model tools.

namestring required

Display name of the application.

directoryPathstring required

Application root directory relative to the repository root.

hasThreatModelboolean required

True when the threat-modeling agent has already run and a ThreatModel exists for this app. False means the next full scan will generate one.

Changes

No recorded changes to this operation across all 1 revision of this API.