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
| Name | Type | Required | Description |
|---|---|---|---|
commitId | integer (int64) | yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
force | boolean | no | — |
Response 200
application/json · ApiResponseCommitIntelligenceResponseDto
| Field | Type | Description |
|---|---|---|
success | boolean | — |
message | string | — |
data | CommitIntelligenceResponseDto | AI-generated intelligence analysis for a single commit |
Status codes
200— Cached or newly generated intelligence score returned401— Authentication required403— Insufficient permissions for Code Intelligence pillar404— Commit not found in the organization429— —
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.