API Reference / Code - Repositories
Get repository intelligence
post
https://api.intelig.ai/api/v1/intelig/code/repositories/health
Auth: Authorization: ApiKey <key> (an API key sent as
Bearer is rejected) or Authorization: Bearer <jwt>
for a dashboard session. operationId: getRepositories
Returns core repository intelligence data that powers all Codebase Intelligence tabs. Includes repository health scores, commit activity, branch counts, and PR status for all repositories in the organization. Filterable by repository IDs in the request body.
Example request
curl -X POST "https://api.intelig.ai/api/v1/intelig/code/repositories/health" \
-H "Authorization: ApiKey $INTELIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "2024-01-01",
"to": "2024-01-31",
"repositoryIds": [
10,
11
]
}' 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 |
repositoryIds | integer[] | no | Optional list of repository IDs to filter by; if empty, returns all repos Example: [10,11] |
Response 200
application/json · ApiResponseCodebaseIntelligenceResponseDto
| Field | Type | Description |
|---|---|---|
success | boolean | — |
message | string | — |
data | CodebaseIntelligenceResponseDto | Root codebase intelligence response with portfolio summary and per-repository intelligence |
Status codes
200— Repository intelligence data returned400— Invalid request body401— 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.