---
title: "Start Analysis"
method: POST
path: "/api/analysis/start"
tags: ["Analysis"]
---

# Start Analysis

`POST /api/analysis/start`

Initiates a background analysis task for a repository

## Request body

- AnalysisStartRequest
  - `repo` string, required — Repository identifier (format varies by service)
  - `commit_id` string, required — Git commit SHA or identifier
  - `access_token` string, required — Authentication token for the service
  - `service` 'github' | 'azuredevops' | 'gitlab' | 'bitbucket', required — Version control service provider
  - `branch` string — Git branch name
  - `include_files` string — Comma-separated file patterns to include in analysis
  - `exclude_files` string — Comma-separated file patterns to exclude from analysis

## Response `200`

Analysis successfully started

- SuccessResponse
  - `message` string — Success message

## Other responses

- `401` — Invalid access token
- `500` — Internal server error

---

[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)
