Start a repository AI audit or return its active operation

Poll GET /v1/operations/{operationUuid} with the same gitRepo.

Request

POST

https://appsec.sourcecraft.tech/v1/ai/audit

Query parameters

Name

Description

gitRepo

Type: string

Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid).

Pattern: \S

Example: ``

Responses

202 Accepted

Operation accepted

Body

application/json
{
  "operationUuid": "example"
}

Name

Description

operationUuid

Type: string

Example: example

400 Bad Request

Missing or invalid repository identifier or request

401 Unauthorized

Missing or invalid authorization header

403 Forbidden

AppSec write permission denied

404 Not Found

Repository, organization or requested defect group not found

409 Conflict

Required neurocolleague or latest-scan findings missing