---
title: "Get Analysis Results"
method: POST
path: "/api/analysis/results"
tags: ["Analysis"]
---

# Get Analysis Results

`POST /api/analysis/results`

Retrieves the analysis results for a specific repository and commit

## Request body

- AnalysisResultsRequest
  - `repo` string, required — Repository identifier (format varies by service)
  - `commit_id` string — Git commit SHA or identifier. Either commit_id or branch is required. If both are provided, commit_id takes precedence.
  - `branch` string — Git branch name. When provided without commit_id, the service resolves the latest commit from scan history for this branch. Either commit_id or branch is required.
  - `access_token` string, required — Authentication token for the service
  - `service` 'github' | 'azuredevops' | 'gitlab' | 'bitbucket', required — Version control service provider

## Response `200`

Analysis results retrieved successfully

- AnalysisResults — Analysis results containing security issues and summary
  - `security_issues` object[] — List of security issues found
    - `type` string — Type of security issue
    - `severity` 'critical' | 'high' | 'medium' | 'low' | 'info' — Severity level of the issue
    - `file` string — File path where issue was found
    - `line` integer — Line number where issue was found
    - `description` string — Detailed description of the issue
  - `summary` object — Summary statistics of the analysis
    - `total_issues` integer — Total number of issues found
    - `critical_severity` integer — Number of critical severity issues
    - `high_severity` integer — Number of high severity issues
    - `medium_severity` integer — Number of medium severity issues
    - `low_severity` integer — Number of low severity issues
    - `info_severity` integer — Number of informational issues

## Other responses

- `401` — Invalid access token
- `404` — No scan results found for the provided branch

---

[API](https://skmtc.dev/codeant/apis/codeant-ai-api.md) · [All operations](https://skmtc.dev/codeant/apis/codeant-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codeant/codeant-ai-api/revisions/d1eb7c083a39/schema)
