API Reference / Code - Team Performance
Get team top KPIs
post
https://api.intelig.ai/api/v1/intelig/code/performance/teams/kpis
Auth: Authorization: ApiKey <key> (an API key sent as
Bearer is rejected) or Authorization: Bearer <jwt>
for a dashboard session. operationId: getTeamsTopKPIs
Returns top team KPI data including velocity, quality, and collaboration metrics. Supports sorting and filtering by specific KPI dimensions. Filtered by team IDs and date range.
Example request
curl -X POST "https://api.intelig.ai/api/v1/intelig/code/performance/teams/kpis" \
-H "Authorization: ApiKey $INTELIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"orgId": 1,
"teamIds": [
3,
4
],
"fromDate": "2024-01-01",
"toDate": "2024-01-31"
}' Request body
application/json
| Field | Type | Required | Description |
|---|---|---|---|
orgId | integer (int64) | yes | Organization ID to query KPIs for Example: 1 |
teamIds | integer[] | no | Optional list of team IDs to filter by Example: [3,4] |
fromDate | string | no | Start date in YYYY-MM-DD format Example: 2024-01-01 |
toDate | string | no | End date in YYYY-MM-DD format Example: 2024-01-31 |
pageNumber | integer (int32) | no | Page number (0-indexed) Example: 0 |
pageSize | integer (int32) | no | Number of results per page (1-100) Example: 20 |
Response 200
application/json · ApiResponseListTeamKpiResponseDto
| Field | Type | Description |
|---|---|---|
success | boolean | — |
message | string | — |
data | TeamKpiResponseDto[] | — |
Status codes
200— Team KPI 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.