API Reference / Code - Commit Intelligence

Generate commit intelligence score

post https://api.intelig.ai/api/v1/intelig/code/commits/{commitId}/score/generate

Auth: Authorization: ApiKey <key> (an API key sent as Bearer is rejected) or Authorization: Bearer <jwt> for a dashboard session. operationId: generateScore

Triggers AI-powered analysis of the specified commit to generate an intelligence score. Evaluates code complexity, change impact, commit message quality, and AI tool attribution. Overwrites any previously cached score for this commit.

Example request

curl -X POST "https://api.intelig.ai/api/v1/intelig/code/commits/1/score/generate" \
  -H "Authorization: ApiKey $INTELIG_API_KEY"

Path parameters

NameTypeRequiredDescription
commitId integer (int64) yes

Response 200

application/json · ApiResponseCommitIntelligenceResponseDto

FieldTypeDescription
success boolean
message string
data CommitIntelligenceResponseDto AI-generated intelligence analysis for a single commit

Status codes

  • 200 — Intelligence score successfully generated
  • 401 — Authentication required
  • 403 — Insufficient permissions for Code Intelligence pillar
  • 404 — Commit not found in the organization
  • 429 — —

Every response is wrapped in { success, message, data }. A 4xx means the request is wrong — do not retry it unchanged. A 429 carries Retry-After in seconds.