API Reference / Code - Commit Intelligence
Batch calculate commit scores (async)
post
https://api.intelig.ai/api/v1/intelig/code/commits/batch-score
Auth: Authorization: ApiKey <key> (an API key sent as
Bearer is rejected) or Authorization: Bearer <jwt>
for a dashboard session. operationId: batchCalculate
Submits an async job to AI-score all commits in the date range that don't yet have a score. Returns 202 + jobId immediately; poll GET /batch-score/status?jobId=... for completion. Idempotent: a duplicate request for the same date range returns the in-flight jobId.
Example request
curl -X POST "https://api.intelig.ai/api/v1/intelig/code/commits/batch-score" \
-H "Authorization: ApiKey $INTELIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "2024-01-01",
"to": "2024-01-31"
}' Request body
application/json
| Field | Type | Required | Description |
|---|---|---|---|
from | string | yes | Start date in YYYY-MM-DD format Example: 2024-01-01 |
to | string | yes | End date in YYYY-MM-DD format Example: 2024-01-31 |
Response 202
application/json · ApiResponseAiGenerationJobResponseDto
| Field | Type | Description |
|---|---|---|
success | boolean | — |
message | string | — |
data | AiGenerationJobResponseDto | — |
Status codes
202— Job accepted; jobId returned for polling400— Invalid date format in from/to fields401— Authentication required403— Insufficient permissions for Code Intelligence pillar429— —
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.