v1

latestOpenAPI 3.0.32026-07-26233989.2 KB
Analysis

Get Scan History

Retrieves the scan history for a repository, returning the last analysis results for each commit that has been scanned

post/api/analysis/scan-history

Request body

repostring required

Repository identifier (format varies by platform)

platform'github' | 'azuredevops' | 'gitlab' | 'bitbucket' required

Version control platform

orgstring required

Organization or workspace name

github_base_urlstring

GitHub base URL (for self-hosted instances)

gitlab_base_urlstring

GitLab base URL (for self-hosted instances)

azure_devops_base_urlstring

Azure DevOps base URL

bitbucket_base_urlstring

Bitbucket base URL (for self-hosted instances)

Example request

{
  "repo": "owner/repository",
  "platform": "github",
  "org": "owner"
}

Response

Scan history retrieved successfully

repostring

Repository identifier

last_analysis_resultsobject[]

List of last analysis results for each scanned commit