API Reference / Code - Commit Intelligence

Auto-get or generate commit score

get https://api.intelig.ai/api/v1/intelig/code/commits/{commitId}/score/auto

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

Returns a cached intelligence score if available, otherwise generates a new one via AI. Use force=true query parameter to bypass cache and always regenerate. Includes score, classification, complexity, and AI attribution details.

Example request

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

Path parameters

NameTypeRequiredDescription
commitId integer (int64) yes

Query parameters

NameTypeRequiredDescription
force boolean no

Response 200

application/json · ApiResponseCommitIntelligenceResponseDto

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

Status codes

  • 200 — Cached or newly generated intelligence score returned
  • 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.