Documentation Index
Fetch the complete documentation index at: https://bilanc.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Metrics Endpoint Structure
All metrics endpoints follow the same base structure: Endpoint:POST /metrics/{metric_type}
Authentication Required: Yes — API key passed directly in the Authorization header (no Bearer prefix).
metric_type(string, required): The type of metric to retrieve. See available metric types below.
Common Request Parameters
Most metric endpoints accept the following request parameters:Parameter Details
Object containing all filter criteria.
start_date is required for most metrics.| Filter | Type | Description |
|---|---|---|
start_date | string | Start of the date range (ISO 8601, e.g. 2024-01-01) |
end_date | string | End of the date range. Defaults to today if omitted |
member | string[] | Filter by author/contributor user IDs |
team | string[] | Filter by team IDs |
squad_ids | string[] | Filter by squad IDs |
squad_levels | integer[] | Filter by squad hierarchy level |
repositories | object[] | Array of {"repository_name": "..."} objects |
departments | string[] | Filter by department names |
manager_ids | string[] | Filter by manager user IDs |
manager_email | string | Filter by a single manager’s email |
pr_states | string[] | PR states: open, closed, merged |
pr_categories | string[] | PR category classifications |
pull_requests_search_term | string | Full-text search across PR title, description, body, summary, and category |
sources | string[] | VCS source: github, gitlab, bitbucket |
branches | string[] | Filter by git branch names |
ticket_status | string[] | Issue states: completed, started, backlog, etc. |
issue_ids | string[] | Filter by specific issue IDs |
project_ids | string[] | Filter by project IDs |
workflow_run_ids | string[] | Filter by GitHub Actions workflow run IDs |
workflow_names | string[] | Filter by workflow names |
run_conclusions | string[] | Workflow conclusions: success, failure, cancelled, etc. |
ai_copilot_sources | string[] | Filter by AI copilot source |
locations | string[] | Filter by employee location |
levels | string[] | Filter by employee level |
Fields to group results by. Default:
[]Common values: team_name, team_id, repository_name, name (author), manager_name, department, squad_name, squad_level, roleTime granularity for aggregation. Options:
day, week, month, quarter, year. Omit to return a single aggregate row.Aggregation method. Required for non-count metrics. Options:
SUM, AVG, MIN, MAX. Count-based metrics (e.g. pull-requests-count, issues-count) do not require this field.Exclude rows where the metric value is below this threshold. Default:
0.Which date column to use for time-based filtering and grouping. Available values depend on the metric — see each metric page for valid options.
When
true, returns data formatted for chart libraries (series + categories). Default: false.When
true, includes the equivalent previous period for comparison. Results include a previous_* field alongside the current value. Default: false.Field name to sort results by.
Sort direction:
ASC or DESC. Default: ASC.Maximum number of rows to return (1–200).
Response Format
The response format depends on the requested metric and parameters. By default, the API returns a JSON object with the requested metric data:time_series_data is set to true, the response will be formatted for line chart visualization:
Available Metric Types
The API provides a wide range of metric types across several categories:- Development Metrics
- Pull Request Metrics
- Issue Metrics
- AI Copilot Metrics
- Workflow Metrics
- Other Metrics
coding-time: Time spent codingpickup-time: Time between commit and PR opencommit-to-open: Time from commit to PR openopen-to-review: Time between PR open and first reviewreview-to-merge: Time between first review and mergereview-time: Total time spent in reviewrework-time: Time spent on rework after reviewcycle-time: Full cycle time from commit to mergetime-to-first-comment: Time to the first comment on a PRrework-rate: Rate of rework after reviewcomplexity-score: Code complexity scorecontributors-count: Number of unique contributors

