API Reference / Code - Branch Statistics
Get branch summary statistics
get
https://api.intelig.ai/api/v1/intelig/code/branches/summary
Auth: Authorization: ApiKey <key> (an API key sent as
Bearer is rejected) or Authorization: Bearer <jwt>
for a dashboard session. operationId: getBranchSummaryStats
Returns aggregate branch statistics for the organization including total branches, active count, merged count, and stale count. Organization ID is derived from JWT context.
Example request
curl -X GET "https://api.intelig.ai/api/v1/intelig/code/branches/summary" \
-H "Authorization: ApiKey $INTELIG_API_KEY" Response 200
application/json · ApiResponseBranchSummaryStatsDto
| Field | Type | Description |
|---|---|---|
success | boolean | — |
message | string | — |
data | BranchSummaryStatsDto | High-level branch health statistics for dashboard summary cards |
Status codes
200— Branch summary statistics returned successfully401— Unauthorized - invalid or missing JWT token429— —
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.