API Reference / Code - Commit Intelligence

Get cached commit score

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

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

Returns a previously cached AI-generated intelligence score for the specified commit. Includes overall score (0-100), classification, complexity analysis, and AI attribution details. Returns null data if no cached score exists for this commit.

Example request

curl -X GET "https://api.intelig.ai/api/v1/intelig/code/commits/1/score" \
  -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 — Cached intelligence score returned, or null if none exists
  • 401 — Authentication required
  • 403 — Insufficient permissions for Code Intelligence pillar
  • 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.