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

  • Base URL
    https://api.codeant.ai
  • URL
    https://api.codeant.ai/api/analysis/scan-history
  • Auth
    HTTP bearer

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

Changes

No recorded changes to this operation across all 2 revisions of this API.