{
  "info": {
    "name": "Leanmote API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Generated from docs/openapi.json. Set the `token` variable to your Leanmote API token."
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.leanmote.com/v1"
    },
    {
      "key": "token",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Executive summary",
      "item": [
        {
          "name": "POST /metrics-summary",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics-summary",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics-summary"
              ],
              "variable": []
            },
            "description": "Measures the requested metrics for each segment over the period and, unless `compare` is `false`, over the same number of days right before it, returning per segment and metric its value, unit, previous value, relative change and where it came from.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"metrics\": [\n    \"deployment_frequency\",\n    \"lead_time_for_changes\",\n    \"change_failure_rate\",\n    \"mean_time_to_recover\",\n    \"mean_time_to_recover_by_severity\",\n    \"time_to_market\",\n    \"ai_assisted_prs\",\n    \"availability\",\n    \"observability_coverage\",\n    \"traffic_outside_monolith\"\n  ],\n  \"segments\": [\n    {\n      \"name\": \"Global\",\n      \"severities\": [\n        \"SEV-1\"\n      ],\n      \"monolith\": [\n        \"core-monolith\"\n      ]\n    },\n    {\n      \"name\": \"Colombia\",\n      \"teams\": [\n        220,\n        299\n      ],\n      \"repositories\": [\n        1201,\n        1202\n      ]\n    },\n    {\n      \"name\": \"M\\u00e9xico\",\n      \"teams\": [\n        602\n      ],\n      \"slos\": [\n        \"Checkout MX\"\n      ],\n      \"services\": [\n        \"pagos-mx\"\n      ],\n      \"countries\": [\n        \"mx\"\n      ],\n      \"monolith\": [\n        \"core-monolith\"\n      ]\n    }\n  ]\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Bottleneck insights",
      "item": [
        {
          "name": "GET /insights",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/insights",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "insights"
              ],
              "variable": []
            },
            "description": "Open Bottleneck Insights of the views offered to the caller, highest drag cost first, each with its evidence."
          }
        },
        {
          "name": "GET /insights/{id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/insights/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "insights",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "One insight, with up to 500 affected items, top tasks and contributors. It is for a caller that got `evidence.items_truncated` from the list. The scope is the list's: open rows of the offered views and the caller's General, with the AI Return gate and the dismiss verdicts applied. Any other id is a 404. The endpoint does not say whether the row exists in another view."
          }
        }
      ]
    },
    {
      "name": "Cell runs",
      "item": [
        {
          "name": "GET /cells/attribution",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/cells/attribution",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "cells",
                "attribution"
              ],
              "variable": []
            },
            "description": "Recovered by attribution (T7): Detected, Recovered by agents and Resolved without agent, in USD **per day**, per cell, per row (`by_cluster`) and for the organization. It ports `CellAttributionService::forScope() ?? emptyPayload()`:"
          }
        },
        {
          "name": "GET /cells/items",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/cells/items",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "cells",
                "items"
              ],
              "variable": []
            },
            "description": "The items each problem **claims** in a view: `claimed = 1` items of the latest **active** run of each cell of the view. This is the engine's `store.item_map` narrowed to one view. An item is claimed by a single problem across the whole organization. Hygiene touches items but never claims them, and a retired cell claims nothing."
          }
        },
        {
          "name": "GET /cells/{view}/{row}/latest",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/cells/:view/:row/latest",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "cells",
                ":view",
                ":row",
                "latest"
              ],
              "variable": [
                {
                  "key": "view",
                  "value": ""
                },
                {
                  "key": "row",
                  "value": ""
                }
              ]
            },
            "description": "The latest run of the cell, whatever its state: the active run, or the retirement that closed the cell (`state = retired`). This mirrors the engine's `store.latest_run`. By default only the **born** problems are returned (`status = problem`). `?status=all` adds the candidates and the discarded ones."
          }
        },
        {
          "name": "GET /cells/{view}/{row}/report",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/cells/:view/:row/report",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "cells",
                ":view",
                ":row",
                "report"
              ],
              "variable": [
                {
                  "key": "view",
                  "value": ""
                },
                {
                  "key": "row",
                  "value": ""
                }
              ]
            },
            "description": "The cell report (T5) as the app's cell window reads it (`BottleneckInsightsController::ajaxGetCellReport`, leanmote-app 1f84e2d21), as data. The SPA renders `report` itself, so there is no `html`. RD-4081: the cell's live public link travels as `share` to who acts on the view, as PHP; sharing, revoking and restoring a version are the three POSTs below. The answer is pinned to PHP by `tests/fixtures/cell_report_parity.json` (written by `cell_report_parity_regenerate.php` from the app's own controller and services)."
          }
        },
        {
          "name": "POST /cells/{view}/{row}/report/generate",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/cells/:view/:row/report/generate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "cells",
                ":view",
                ":row",
                "report",
                "generate"
              ],
              "variable": [
                {
                  "key": "view",
                  "value": ""
                },
                {
                  "key": "row",
                  "value": ""
                }
              ]
            },
            "description": "Asks for the cell's report (`ajaxGenerateCellReport`). The cell window calls it by itself when a cell has no report (or none in the reader's language), Readers included. **It writes.**"
          }
        }
      ]
    },
    {
      "name": "Dashboard views",
      "item": [
        {
          "name": "GET /dashboard-views",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/dashboard-views",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "dashboard-views"
              ],
              "variable": []
            },
            "description": "Lists the base view (always present) and all custom dashboards owned by the authenticated user. The endpoint honours `fields=` and the optional `timestamps` override, and supports the same pagination contract defined in `AGENTS.md`. Responses always include the full summary payload; provide `fields=` to project only specific attributes when needed."
          }
        },
        {
          "name": "GET /dashboard-views/catalog",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/dashboard-views/catalog",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "dashboard-views",
                "catalog"
              ],
              "variable": []
            },
            "description": "Returns the static widget catalogue together with the default classic filters. The payload does not depend on query parameters beyond the organization header."
          }
        },
        {
          "name": "GET /dashboard-views/custom-filters",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/dashboard-views/custom-filters",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "dashboard-views",
                "custom-filters"
              ],
              "variable": []
            },
            "description": "Lists custom dashboard filters configured for the organization/app combination. `app_id` is required and `active=` filters by status. The endpoint follows the list contract with pagination support."
          }
        },
        {
          "name": "GET /dashboard-views/{view_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/dashboard-views/:view_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "dashboard-views",
                ":view_id"
              ],
              "variable": [
                {
                  "key": "view_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the detailed payload for the authenticated user's base view (`view_id_or_base=base`) or for a specific custom dashboard id. Responses always include metadata, catalogue information, saved preferences, and the effective configuration. Use `fields=` to project selected paths. The `app_id` query parameter narrows custom filter discovery for the `available.filters.custom` array."
          }
        }
      ]
    },
    {
      "name": "Organizations",
      "item": [
        {
          "name": "GET /organizations",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/organizations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "organizations"
              ],
              "variable": []
            },
            "description": "Returns organizations visible to the authenticated user."
          }
        },
        {
          "name": "GET /organizations/{organization_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/organizations/:organization_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "organizations",
                ":organization_id"
              ],
              "variable": [
                {
                  "key": "organization_id",
                  "value": ""
                }
              ]
            },
            "description": "Fetches organization metadata by numeric identifier."
          }
        },
        {
          "name": "GET /organizations/{organization_id}/apps",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/organizations/:organization_id/apps",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "organizations",
                ":organization_id",
                "apps"
              ],
              "variable": [
                {
                  "key": "organization_id",
                  "value": ""
                }
              ]
            },
            "description": "Aggregates app mappings for users in the organization. Optional `user_id` filters the dataset to a single member."
          }
        },
        {
          "name": "GET /organizations/{organization_id}/members",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/organizations/:organization_id/members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "organizations",
                ":organization_id",
                "members"
              ],
              "variable": [
                {
                  "key": "organization_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns paginated members associated with the organization."
          }
        },
        {
          "name": "GET /organizations/{organization_id}/teams",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/organizations/:organization_id/teams",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "organizations",
                ":organization_id",
                "teams"
              ],
              "variable": [
                {
                  "key": "organization_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists teams within the organization."
          }
        }
      ]
    },
    {
      "name": "Teams",
      "item": [
        {
          "name": "GET /teams",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams"
              ],
              "variable": []
            },
            "description": "Lists teams for the organization identified by the `Organization` header."
          }
        },
        {
          "name": "GET /teams/{team_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams/:team_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams",
                ":team_id"
              ],
              "variable": [
                {
                  "key": "team_id",
                  "value": ""
                }
              ]
            },
            "description": "Retrieves full details for a team."
          }
        },
        {
          "name": "GET /teams/{team_id}/interactions",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams/:team_id/interactions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams",
                ":team_id",
                "interactions"
              ],
              "variable": [
                {
                  "key": "team_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns interactions where either the sender or the receivers belong to the specified team. Membership resolution uses `team_users` combined with integration mappings. Date filters support the same operator syntax (`eq`, `gt`, `gte`, `lt`, `lte`) accepted by the interactions domain."
          }
        },
        {
          "name": "GET /teams/{team_id}/managers",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams/:team_id/managers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams",
                ":team_id",
                "managers"
              ],
              "variable": [
                {
                  "key": "team_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists managers assigned to the team."
          }
        },
        {
          "name": "GET /teams/{team_id}/members",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams/:team_id/members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams",
                ":team_id",
                "members"
              ],
              "variable": [
                {
                  "key": "team_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns paginated members of the team. Supports filtering by `role`."
          }
        },
        {
          "name": "GET /teams/{team_id}/members/{user_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams/:team_id/members/:user_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams",
                ":team_id",
                "members",
                ":user_id"
              ],
              "variable": [
                {
                  "key": "team_id",
                  "value": ""
                },
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "Fetches a single team membership."
          }
        },
        {
          "name": "GET /teams/{team_id}/tasks",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams/:team_id/tasks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams",
                ":team_id",
                "tasks"
              ],
              "variable": [
                {
                  "key": "team_id",
                  "value": ""
                }
              ]
            },
            "description": "Retrieves the tasks associated with the team. Tasks are resolved through the board mappings configured for the team and honour pagination, sorting, and the optional `timestamps` override for alternate timestamp formats. Use `GET /tasks` from the Tasks domain when an organization-wide listing is required."
          }
        }
      ]
    },
    {
      "name": "Users",
      "item": [
        {
          "name": "GET /users",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users"
              ],
              "variable": []
            },
            "description": "Returns users for the organization defined by the `Organization` header."
          }
        },
        {
          "name": "GET /users/me",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users",
                "me"
              ],
              "variable": []
            },
            "description": "Returns the identity, role label and read scope of the caller behind the token — one round trip, so a consumer can tell what it may ask for before asking. The Leanmote MCP exposes it as the `current_user()` tool and passes the payload through untouched."
          }
        },
        {
          "name": "GET /users/{user_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users/:user_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users",
                ":user_id"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns full details for a single user."
          }
        },
        {
          "name": "GET /users/{user_id}/apps",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users/:user_id/apps",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users",
                ":user_id",
                "apps"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists app mappings for the user. Supports optional `app_id` filter."
          }
        },
        {
          "name": "GET /users/{user_id}/apps/{app_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users/:user_id/apps/:app_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users",
                ":user_id",
                "apps",
                ":app_id"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                },
                {
                  "key": "app_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns a single app mapping for the user. The `{app_id}` path parameter refers to the mapping identifier (`user_app_mapping_id`) returned by `GET /users/{user_id}/apps`."
          }
        },
        {
          "name": "GET /users/{user_id}/dashboard-views",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users/:user_id/dashboard-views",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users",
                ":user_id",
                "dashboard-views"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the base view and custom dashboards stored for `{user_id}`. Regular users can only retrieve their own views (or other members that share an organization according to visibility rules); administrators can request any member."
          }
        },
        {
          "name": "GET /users/{user_id}/dashboard-views/{view_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users/:user_id/dashboard-views/:view_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users",
                ":user_id",
                "dashboard-views",
                ":view_id"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                },
                {
                  "key": "view_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the detailed payload for `{user_id}`. `view_id` accepts the keyword `base` (or `default`/`main`) to retrieve the base view or a numeric dashboard identifier for custom views."
          }
        },
        {
          "name": "GET /users/{user_id}/git/apps",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users/:user_id/git/apps",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users",
                ":user_id",
                "git",
                "apps"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists Git apps where the user has recorded contributions (commits or pull requests). Results are aggregated per app and already scoped to the organization derived from the `Organization` header."
          }
        },
        {
          "name": "GET /users/{user_id}/interactions",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users/:user_id/interactions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users",
                ":user_id",
                "interactions"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists interactions centred on the user. Either the sender or one of the receivers must match `{user_id}` after resolving integration identifiers through the user-app mappings."
          }
        },
        {
          "name": "GET /users/{user_id}/organizations",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users/:user_id/organizations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users",
                ":user_id",
                "organizations"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists organizations associated with the user."
          }
        },
        {
          "name": "GET /users/{user_id}/teams",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users/:user_id/teams",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users",
                ":user_id",
                "teams"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists teams for the user. Supports optional `organization_id` filter."
          }
        },
        {
          "name": "GET /users/{user_id}/teams/{team_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/users/:user_id/teams/:team_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "users",
                ":user_id",
                "teams",
                ":team_id"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                },
                {
                  "key": "team_id",
                  "value": ""
                }
              ]
            },
            "description": "Validates a specific team membership."
          }
        }
      ]
    },
    {
      "name": "Org chart",
      "item": [
        {
          "name": "GET /org-chart",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/org-chart",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "org-chart"
              ],
              "variable": []
            },
            "description": "The organization's team tree, ready to draw, as a flat list in display order."
          }
        },
        {
          "name": "POST /org-chart/import/apply",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/org-chart/import/apply",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "org-chart",
                "import",
                "apply"
              ],
              "variable": []
            },
            "description": "Writes the proposal the person confirmed, all or nothing, in one transaction: creates the new teams, reuses (and renames, when the name changed) the existing ones, sets parents, and adds leaders and members. Every change is recorded with its previous value so `POST /org-chart/import/{import_id}/undo` can revert it. The body is re-validated from scratch against the organization; any error refuses the whole plan. Only owners and administrators (`manage:teams`) and Leanmote staff may call it.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"filename\": \"org-chart.png\",\n  \"teams\": [\n    {\n      \"key\": \"b1\",\n      \"name\": \"Engineering\",\n      \"parent_key\": null,\n      \"id_team\": 1254,\n      \"leader_id_user\": 2147,\n      \"member_ids\": []\n    },\n    {\n      \"key\": \"b2\",\n      \"name\": \"Platform\",\n      \"parent_key\": \"b1\",\n      \"id_team\": null,\n      \"leader_id_user\": 2148,\n      \"member_ids\": [\n        2150,\n        2151\n      ]\n    }\n  ]\n}"
            }
          }
        },
        {
          "name": "GET /org-chart/import/last",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/org-chart/import/last",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "org-chart",
                "import",
                "last"
              ],
              "variable": []
            },
            "description": "Returns the organization's most recent import that can still be undone (status `applied`), with who made it and what it changed, so the screen can offer \"undo\" after the import modal was closed. It does not undo anything. `data.import` is `null` when there is none. The last import of the organization may have been made by someone else; `imported_by` says who. Same permission as the undo: owners and administrators (`manage:teams`) and Leanmote staff."
          }
        },
        {
          "name": "POST /org-chart/import/read",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/org-chart/import/read",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "org-chart",
                "import",
                "read"
              ],
              "variable": []
            },
            "description": "Reads an image or a PDF of the organization's chart with a vision model and returns a proposal: the teams the drawing implies, who leads them, who their members are, and the conflicts that block applying it. Nothing is written. Only owners and administrators (`manage:teams`) and Leanmote staff may call it. This is the one endpoint here that leaves the VPC; what the environment must provide for it is in [Reading a chart image](#reading-a-chart-image-what-the-environment-must-provide).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"content_base64\": \"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==\",\n  \"media_type\": \"image/png\",\n  \"filename\": \"org-chart.png\"\n}"
            }
          }
        },
        {
          "name": "POST /org-chart/import/{import_id}/undo",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/org-chart/import/:import_id/undo",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "org-chart",
                "import",
                ":import_id",
                "undo"
              ],
              "variable": [
                {
                  "key": "import_id",
                  "value": ""
                }
              ]
            },
            "description": "Reverts a whole import, walking its recorded changes backwards in one transaction: removes the leaders and members it added, moves teams back to their previous parent, restores previous names, and deletes the teams it created (their children first move up to the grandparent). It refuses outright when anyone edited on top of the import; there is no partial undo. Only owners and administrators (`manage:teams`) and Leanmote staff may call it. No request body is read."
          }
        },
        {
          "name": "GET /org-chart/suggestions",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/org-chart/suggestions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "org-chart",
                "suggestions"
              ],
              "variable": []
            },
            "description": "51 of 53 organizations are flat, and the structure is usually not missing — it was written into the team names, or into who ended up in which team, because until now there was nowhere else to put it. This reads it back."
          }
        },
        {
          "name": "POST /teams",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams"
              ],
              "variable": []
            },
            "description": "`parent_team_id` is optional (absent or `null` creates a first-level team) and is validated with the same rules as a move. A team being created has nothing below it and cannot be its own ancestor, so the only thing left to refuse it is a parent that is not in this organization's chart (RD-2771 took the depth cap out; there is no limit on how deep the structure goes)."
          }
        },
        {
          "name": "PATCH /teams/{team_id}",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams/:team_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams",
                ":team_id"
              ],
              "variable": [
                {
                  "key": "team_id",
                  "value": ""
                }
              ]
            },
            "description": "Accepts `team_name`, `team_description`, `objectives`, `parent_team_id`, `members` and `managers`. Send `\"parent_team_id\": null` to promote a team to first level. A refused move returns `422` with the refusal `code`, and nothing is written."
          }
        },
        {
          "name": "DELETE /teams/{team_id}",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams/:team_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams",
                ":team_id"
              ],
              "variable": [
                {
                  "key": "team_id",
                  "value": ""
                }
              ]
            },
            "description": "The children move up to the grandparent — or to first level when there is none — **before** the row is removed, since the FK's `ON DELETE SET NULL` would otherwise promote them all the way to the top. No person and no history is deleted: the children keep their own rosters."
          }
        },
        {
          "name": "GET /teams/{team_id}/branch-members",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams/:team_id/branch-members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams",
                ":team_id",
                "branch-members"
              ],
              "variable": [
                {
                  "key": "team_id",
                  "value": ""
                }
              ]
            },
            "description": "The people of the branch, deduplicated: someone in two sub-teams appears once. 30% of people belong to two or more teams, so this differs from the sum of the children's rosters by design."
          }
        },
        {
          "name": "POST /teams/{team_id}/members",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams/:team_id/members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams",
                ":team_id",
                "members"
              ],
              "variable": [
                {
                  "key": "team_id",
                  "value": ""
                }
              ]
            },
            "description": "Puts one person into one team. The body names them; the path names the team."
          }
        },
        {
          "name": "DELETE /teams/{team_id}/members/{user_id}",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/teams/:team_id/members/:user_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "teams",
                ":team_id",
                "members",
                ":user_id"
              ],
              "variable": [
                {
                  "key": "team_id",
                  "value": ""
                },
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "Takes one person out of one team. Responds with the pair it removed and the size the team is left at:"
          }
        }
      ]
    },
    {
      "name": "API credentials (Admin)",
      "item": [
        {
          "name": "GET /admin/users/{user_id}/api-credentials",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/admin/users/:user_id/api-credentials",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "admin",
                "users",
                ":user_id",
                "api-credentials"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns credentials stored in `api_tokens`. Only administrators may access this endpoint."
          }
        },
        {
          "name": "POST /admin/users/{user_id}/api-credentials",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/admin/users/:user_id/api-credentials",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "admin",
                "users",
                ":user_id",
                "api-credentials"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                }
              ]
            },
            "description": "Issues a new credential and returns the plaintext key once. Only administrators may call this endpoint."
          }
        },
        {
          "name": "DELETE /admin/users/{user_id}/api-credentials/{credential_id}",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/admin/users/:user_id/api-credentials/:credential_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "admin",
                "users",
                ":user_id",
                "api-credentials",
                ":credential_id"
              ],
              "variable": [
                {
                  "key": "user_id",
                  "value": ""
                },
                {
                  "key": "credential_id",
                  "value": ""
                }
              ]
            },
            "description": "Revokes one of the user's credentials: `is_active = 0` and `revoked_at` set, so the gateway stops accepting it at once. The row stays, so it still lists as `revoked`. Same gate as the other two endpoints: Leanmote staff only. Revoking a credential that is already revoked answers the same and writes nothing."
          }
        }
      ]
    },
    {
      "name": "Boards",
      "item": [
        {
          "name": "GET /boards",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/boards",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "boards"
              ],
              "variable": []
            },
            "description": "Lists agile boards that have been synchronized for the organization."
          }
        },
        {
          "name": "GET /boards/{board_id}/tasks",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/boards/:board_id/tasks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "boards",
                ":board_id",
                "tasks"
              ],
              "variable": [
                {
                  "key": "board_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the tasks that belong to the specified board, reusing the task payload structure exposed by the organization-wide tasks endpoint. Tasks without a mapped Leanmote owner are omitted."
          }
        },
        {
          "name": "GET /boards/{board_id}/tasks/{task_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/boards/:board_id/tasks/:task_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "boards",
                ":board_id",
                "tasks",
                ":task_id"
              ],
              "variable": [
                {
                  "key": "board_id",
                  "value": ""
                },
                {
                  "key": "task_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the detailed payload for a task while ensuring it is linked to the requested board."
          }
        }
      ]
    },
    {
      "name": "Tasks",
      "item": [
        {
          "name": "GET /sprints",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sprints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sprints"
              ],
              "variable": []
            },
            "description": "Lists the organization's sprints (Jira sprints; Azure iterations are mapped onto the same states) with their board, ordered active first, then future, then closed, and by start date descending within each state. It carries no tasks: use a `sprint_id` from here with `GET /tasks?sprint_id=` or `GET /tasks/summary?sprint_id=`, which apply the caller's task visibility. Anyone in the organization may call it; a caller with no team scope gets an empty list."
          }
        },
        {
          "name": "GET /tasks",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/tasks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "tasks"
              ],
              "variable": []
            },
            "description": "Returns tasks across the organization with optional filters on status, assignee, board, time range, and specific status transitions. Tasks are returned only when their assignee can be mapped to a Leanmote user. Each task includes its full status history so consumers can analyse lifecycle changes without an additional request."
          }
        },
        {
          "name": "GET /tasks/summary",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/tasks/summary",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "tasks",
                "summary"
              ],
              "variable": []
            },
            "description": "Counts the tasks the requester sees, grouped by `group_by` (default `board,status`), with the oldest creation date of each group. The current status of a task is the last row of its status log. It applies the same visibility as `GET /tasks`: owners, admins, staff and holders of the \"all team metrics\" grant count every task of the organization; a team leader counts the tasks of the people in the teams they see plus their own; a collaborator only their own; a caller with no scope gets nothing. Soft-deleted tasks are excluded. Groups are ordered by count, descending, and capped at 100."
          }
        },
        {
          "name": "GET /tasks/{task_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/tasks/:task_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "tasks",
                ":task_id"
              ],
              "variable": [
                {
                  "key": "task_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the task detail, including recent status history, custom parameters, and subtasks."
          }
        }
      ]
    },
    {
      "name": "Git",
      "item": [
        {
          "name": "GET /commits",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/commits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "commits"
              ],
              "variable": []
            },
            "description": "Searches commits across the whole organization — every connected app and repository — by text, repository, author, team and date, newest first. It keeps the platform's visibility: owners, admins, staff and holders of the \"all team metrics\" grant see everything; a team leader sees the work of the people in the teams they see plus their own; a collaborator only their own; a caller with no scope sees nothing. Work whose author is mapped to no Leanmote user is visible only to the unrestricted."
          }
        },
        {
          "name": "GET /deployments",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/deployments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "deployments"
              ],
              "variable": []
            },
            "description": "Lists the organization's deployments, newest first: GitHub deployment events, GitLab releases (one per pipeline that reached production, derived by the GitLab extractor while GitLab is the DORA source, RD-4206), Bitbucket deployments (one per successful Bitbucket Pipelines deployment to a Production environment, derived by the Bitbucket extractor while Bitbucket is the DORA source, RD-4296), Jenkins deployments (one per Jenkins build that deployed to production, derived by the Jenkins extractor while the organization adds Jenkins to DORA, RD-4356) and, when Datadog is connected, Datadog deployments next to them, each row saying its `source`. Deployments have no author, so they are not filtered by person: anyone with a team scope in the organization sees them all; a caller with no scope gets an empty list. The response also says what DORA's Deployment Frequency counts for this organization (`dora_source`), because without the `dora_metrics_from_deployments` flag DORA counts merged pull requests, which this list does not hold."
          }
        },
        {
          "name": "GET /git/apps",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/git/apps",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "git",
                "apps"
              ],
              "variable": []
            },
            "description": "Returns the Git-enabled apps discovered from `repositories`. The endpoint is not paginated but still uses the success envelope."
          }
        },
        {
          "name": "GET /git/apps/{app_id}/repositories",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/git/apps/:app_id/repositories",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "git",
                "apps",
                ":app_id",
                "repositories"
              ],
              "variable": [
                {
                  "key": "app_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists repositories for the selected app with optional filters for name and activity."
          }
        },
        {
          "name": "GET /git/apps/{app_id}/repositories/all/commits",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/git/apps/:app_id/repositories/all/commits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "git",
                "apps",
                ":app_id",
                "repositories",
                "all",
                "commits"
              ],
              "variable": [
                {
                  "key": "app_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists commits across every repository synchronized for the selected app within the organization scope. It supports the same filtering, sorting, and date comparison contract as the repository-specific commits endpoint and also caps `per_page` at `2000`."
          }
        },
        {
          "name": "GET /git/apps/{app_id}/repositories/all/pull-requests",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/git/apps/:app_id/repositories/all/pull-requests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "git",
                "apps",
                ":app_id",
                "repositories",
                "all",
                "pull-requests"
              ],
              "variable": [
                {
                  "key": "app_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists pull requests across every repository synchronized for the selected app within the organization scope. It supports the same state/date filters and sorting contract as the repository-specific pull request endpoint and includes repository context in every item. The endpoint caps `per_page` at `2000`."
          }
        },
        {
          "name": "GET /git/apps/{app_id}/repositories/{repository_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/git/apps/:app_id/repositories/:repository_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "git",
                "apps",
                ":app_id",
                "repositories",
                ":repository_id"
              ],
              "variable": [
                {
                  "key": "app_id",
                  "value": ""
                },
                {
                  "key": "repository_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns metadata for a repository scoped to the organization."
          }
        },
        {
          "name": "GET /git/apps/{app_id}/repositories/{repository_id}/commits",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/git/apps/:app_id/repositories/:repository_id/commits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "git",
                "apps",
                ":app_id",
                "repositories",
                ":repository_id",
                "commits"
              ],
              "variable": [
                {
                  "key": "app_id",
                  "value": ""
                },
                {
                  "key": "repository_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists commits for the repository with pagination and optional author filtering. The endpoint also supports ISO-8601 comparisons on `commit_creation_date`, `created_at`, and `updated_at` using the bracket syntax. Append operators as `commit_creation_date[gte]=2024-09-01` or `created_at[lte]=2024-09-30T23:59:59Z`. Accepted operators are `eq`, `gt`, `gte`, `lt`, and `lte`. Commit listings cap `per_page` at `2000`."
          }
        },
        {
          "name": "GET /git/apps/{app_id}/repositories/{repository_id}/pull-requests",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/git/apps/:app_id/repositories/:repository_id/pull-requests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "git",
                "apps",
                ":app_id",
                "repositories",
                ":repository_id",
                "pull-requests"
              ],
              "variable": [
                {
                  "key": "app_id",
                  "value": ""
                },
                {
                  "key": "repository_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists pull requests with optional state filtering. Date comparisons can be applied to `creation_date`, `merged_at`, `closed_at`, `first_approval_at`, `created_at`, and `updated_at` using the same `field[operator]=value` syntax described above. Operators `eq`, `gt`, `gte`, `lt`, and `lte` are accepted with ISO-8601 values."
          }
        },
        {
          "name": "GET /git/apps/{app_id}/repositories/{repository_id}/pull-requests/{pull_request_id}/notes",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/git/apps/:app_id/repositories/:repository_id/pull-requests/:pull_request_id/notes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "git",
                "apps",
                ":app_id",
                "repositories",
                ":repository_id",
                "pull-requests",
                ":pull_request_id",
                "notes"
              ],
              "variable": [
                {
                  "key": "app_id",
                  "value": ""
                },
                {
                  "key": "repository_id",
                  "value": ""
                },
                {
                  "key": "pull_request_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists pull request notes tied to a specific merge request. Notes are returned only when the author can be mapped to a Leanmote user. Filters support author matching and date comparisons over `creation_date`, `created_at`, and `updated_at` using the `field[operator]`, `field__operator`, or `field_operator` syntax."
          }
        },
        {
          "name": "GET /git/apps/{app_id}/repositories/{repository_id}/pull-requests/{pull_request_id}/notes/{note_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/git/apps/:app_id/repositories/:repository_id/pull-requests/:pull_request_id/notes/:note_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "git",
                "apps",
                ":app_id",
                "repositories",
                ":repository_id",
                "pull-requests",
                ":pull_request_id",
                "notes",
                ":note_id"
              ],
              "variable": [
                {
                  "key": "app_id",
                  "value": ""
                },
                {
                  "key": "repository_id",
                  "value": ""
                },
                {
                  "key": "pull_request_id",
                  "value": ""
                },
                {
                  "key": "note_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns a single note ensuring it belongs to the pull request and the organization."
          }
        },
        {
          "name": "GET /pull-requests",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/pull-requests",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pull-requests"
              ],
              "variable": []
            },
            "description": "Searches pull requests across the whole organization — every connected app and repository — by text, state, repository, author, team and dates, newest first. It keeps the platform's visibility: owners, admins, staff and holders of the \"all team metrics\" grant see everything; a team leader sees the work of the people in the teams they see plus their own; a collaborator only their own; a caller with no scope sees nothing. Work whose author is mapped to no Leanmote user is visible only to the unrestricted."
          }
        },
        {
          "name": "GET /pull-requests/task-links",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/pull-requests/task-links",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pull-requests",
                "task-links"
              ],
              "variable": []
            },
            "description": "Crosses a person's (or a team's) pull requests with their work items for a period, in one call: which of their pull requests name a work item and which name none, and which of their work items have a pull request and which do not."
          }
        }
      ]
    },
    {
      "name": "Interactions",
      "item": [
        {
          "name": "GET /interactions",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/interactions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "interactions"
              ],
              "variable": []
            },
            "description": "Returns interactions with optional filtering by integration (`app_id`), data source type, date range, and user involvement. Date filters support `field[operator]=value`, `field__operator=value`, or `field_operator=value` comparisons (`eq`, `gt`, `gte`, `lt`, `lte`) on `interaction_timestamp` or `created_at`."
          }
        },
        {
          "name": "GET /interactions/{interaction_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/interactions/:interaction_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "interactions",
                ":interaction_id"
              ],
              "variable": [
                {
                  "key": "interaction_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns a single interaction."
          }
        }
      ]
    },
    {
      "name": "Calendar",
      "item": [
        {
          "name": "GET /calendar-events",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/calendar-events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calendar-events"
              ],
              "variable": []
            },
            "description": "Returns events for the organization with optional filters for calendar, creator, and time range using the `field[operator]=value` comparison format (`eq`, `gt`, `gte`, `lt`, `lte`)."
          }
        },
        {
          "name": "GET /calendar-events/{event_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/calendar-events/:event_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calendar-events",
                ":event_id"
              ],
              "variable": [
                {
                  "key": "event_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the full payload for an event."
          }
        },
        {
          "name": "GET /calendars",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/calendars",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calendars"
              ],
              "variable": []
            },
            "description": "Returns the calendars synchronized for the authenticated organization. Supports filtering by calendar name, application, owner, and activity status."
          }
        },
        {
          "name": "GET /calendars/{calendar_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/calendars/:calendar_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calendars",
                ":calendar_id"
              ],
              "variable": [
                {
                  "key": "calendar_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns a single calendar by identifier, including metadata about the integration and owner."
          }
        },
        {
          "name": "GET /calendars/{calendar_id}/events",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/calendars/:calendar_id/events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calendars",
                ":calendar_id",
                "events"
              ],
              "variable": [
                {
                  "key": "calendar_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the meetings belonging to the specified calendar. Supports the same filters as the legacy listing endpoint, including creator and the range comparisons on event timestamps (`eq`, `gt`, `gte`, `lt`, `lte`). Each attendee and the organizer are resolved against `user_apps_mapping` to expose the Leanmote `user_id` and profile name whenever a match exists; unmatched profiles keep the best available identifier with `event_attendees[].user_id`/`event_organizer.user_id` set to `false`. Participant telemetry from `participants_data` is surfaced under `attendee_participation` and `organizer_participation` together with the raw metadata for productivity insights."
          }
        },
        {
          "name": "GET /calendars/{calendar_id}/events/{event_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/calendars/:calendar_id/events/:event_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "calendars",
                ":calendar_id",
                "events",
                ":event_id"
              ],
              "variable": [
                {
                  "key": "calendar_id",
                  "value": ""
                },
                {
                  "key": "event_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns the details for a single meeting ensuring it belongs to the provided calendar."
          }
        }
      ]
    },
    {
      "name": "Connected apps",
      "item": [
        {
          "name": "GET /apps",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/apps",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "apps"
              ],
              "variable": []
            },
            "description": "Lists the organization's applications: those someone of the organization is mapped to (`user_apps_mapping`) or holds a credential for (`user_apps_credentials`). Before, only mapped ones counted, so Freshdesk with unmapped agents and Outlook Calendar (which maps nobody) did not show. `GET /apps/{app_id}` and `GET /apps/{app_id}/interactions` read the same rule."
          }
        },
        {
          "name": "GET /apps/{app_id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/apps/:app_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "apps",
                ":app_id"
              ],
              "variable": [
                {
                  "key": "app_id",
                  "value": ""
                }
              ]
            },
            "description": "Returns a single application entry."
          }
        },
        {
          "name": "GET /apps/{app_id}/interactions",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/apps/:app_id/interactions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "apps",
                ":app_id",
                "interactions"
              ],
              "variable": [
                {
                  "key": "app_id",
                  "value": ""
                }
              ]
            },
            "description": "Lists the interactions that belong to the specified application. The `app_id` path parameter must reference an application visible to the tenant; when provided, optional query parameters behave identically to the organization-wide `GET /interactions` endpoint."
          }
        }
      ]
    },
    {
      "name": "Alert rules",
      "item": [
        {
          "name": "GET /alert-rules",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/alert-rules",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "alert-rules"
              ],
              "variable": []
            },
            "description": "Lists the alert rules the caller created in the active organization, newest first (`id` descending), paginated. Only rules whose owner (`id_user`) is the caller are returned, whoever they notify. Any authenticated member of the organization may call it; no module role gate applies. The organization is resolved as on every read: Leanmote staff may point it at another organization with the `Organization` header, everyone else always gets their own."
          }
        },
        {
          "name": "POST /alert-rules",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/alert-rules",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "alert-rules"
              ],
              "variable": []
            },
            "description": "Creates an alert rule owned by the caller in the caller's own organization (the staff `Organization` header is ignored for writes). The caller's effective role must be allowed to use the rule's module (see [Permission model](#permission-model)), and so must the recipient when `notify_user_id` is someone else. The body goes through the checks in [Validation](#validation), an omitted channel is chosen for the recipient, and the final channel must reach them. With `suggestion_token` it activates an emailed suggestion (see [below](#post-alert-rules-with-suggestion_token-rd-2403-piece-12)). Nothing is sent: the evaluator is the only sender. Answers `200`, not `201`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"module\": \"performance-delivery\",\n  \"metric_key\": \"cycle_time\",\n  \"condition_type\": \"absolute\",\n  \"comparator\": \"gt\",\n  \"threshold\": 12.5,\n  \"scope_type\": \"dashboard\",\n  \"scope_id\": 34,\n  \"channel\": \"email\",\n  \"notify_user_id\": 784,\n  \"enabled\": true\n}"
            }
          }
        },
        {
          "name": "PATCH /alert-rules/{alert_rule_id}",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/alert-rules/:alert_rule_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "alert-rules",
                ":alert_rule_id"
              ],
              "variable": [
                {
                  "key": "alert_rule_id",
                  "value": ""
                }
              ]
            },
            "description": "Partially updates a rule the caller owns in the caller's own organization: only the fields present in the body are merged onto the stored rule, and the merged rule is validated again as on create, including the module role gate for the caller and the recipient (see [PATCH semantics](#patch-semantics-partial-update)). A rule of another user or organization answers `404`. Nothing is sent.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"threshold\": 15,\n  \"channel\": \"slack\"\n}"
            }
          }
        },
        {
          "name": "DELETE /alert-rules/{alert_rule_id}",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/alert-rules/:alert_rule_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "alert-rules",
                ":alert_rule_id"
              ],
              "variable": [
                {
                  "key": "alert_rule_id",
                  "value": ""
                }
              ]
            },
            "description": "Hard-deletes a rule the caller owns in the caller's own organization. Only ownership is checked (no module role gate). The rule's `alert_events` history is left in place. Takes no body."
          }
        },
        {
          "name": "POST /alert-rules/{alert_rule_id}/disable",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/alert-rules/:alert_rule_id/disable",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "alert-rules",
                ":alert_rule_id",
                "disable"
              ],
              "variable": [
                {
                  "key": "alert_rule_id",
                  "value": ""
                }
              ]
            },
            "description": "Soft-disables a rule the caller owns (`enabled = 0`) in the caller's own organization. Only ownership is checked: unlike `enable`, no module role gate applies, so a caller can always switch off a rule they created. The rule and its history are kept. Takes no body."
          }
        },
        {
          "name": "POST /alert-rules/{alert_rule_id}/enable",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/alert-rules/:alert_rule_id/enable",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "alert-rules",
                ":alert_rule_id",
                "enable"
              ],
              "variable": [
                {
                  "key": "alert_rule_id",
                  "value": ""
                }
              ]
            },
            "description": "Owned rule (triple-pinned) or `404 alert_rule_not_found`; the rule's module must pass the caller's role gate (`403 module_forbidden`). Sets `enabled = 1`."
          }
        },
        {
          "name": "GET /alert-suggestions/{token}/proposal",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/alert-suggestions/:token/proposal",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "alert-suggestions",
                ":token",
                "proposal"
              ],
              "variable": [
                {
                  "key": "token",
                  "value": ""
                }
              ]
            },
            "description": "Port of `AlertSuggestionsController::proposal`. Read-only. A non-`ok` verdict is a **200** with only the verdict (`forbidden`/`not_found` say nothing about the row):"
          }
        }
      ]
    },
    {
      "name": "Agents",
      "item": [
        {
          "name": "GET /agents",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/agents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "agents"
              ],
              "variable": []
            },
            "description": "Lists the agents the caller manages: each activation's state, autonomy and the proposals waiting for them."
          }
        },
        {
          "name": "POST /agents/pause",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/agents/pause",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "agents",
                "pause"
              ],
              "variable": []
            },
            "description": "Pauses or resumes one agent on one view column. Owners and admins only."
          }
        }
      ]
    },
    {
      "name": "Agent proposals",
      "item": [
        {
          "name": "GET /agents/proposals",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/agents/proposals",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "agents",
                "proposals"
              ],
              "variable": []
            },
            "description": "Returns the brief of the Agents screen for the caller: the pending proposals of the cells they reach (oldest first, up to 60), the last 6 decided, the counts by display status and the executions of the last 30 days. Callers need the `view:bottleneck-insights` permission; see [Who sees what](#who-sees-what). Read-only: nothing is expired or refreshed here (see [Read-only](#read-only)). Takes no query parameters."
          }
        },
        {
          "name": "GET /agents/proposals/{id}",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/agents/proposals/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "agents",
                "proposals",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Returns one proposal of the caller's cells, in any status, with the same card as the list plus the agent's full `reasoning` and `agents_url` (RD-3940). The same visibility rules as `GET /agents/proposals` apply (see [Who sees what](#who-sees-what)): a proposal outside the caller's cells, or a notice addressed to the caller, answers `404`. A pending proposal whose PR is already closed or merged reads `expired`, as PHP shows it; nothing is written."
          }
        }
      ]
    },
    {
      "name": "Health",
      "item": [
        {
          "name": "GET /health",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/health",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "health"
              ],
              "variable": []
            },
            "description": "Headers must include a valid token that exists in the `api_tokens` table and an `Organization` value equal to the numeric `id_organization`. Header names are case-insensitive, but API Gateway treats missing or blank values as absent and returns `missing_organization_header`."
          }
        }
      ]
    },
    {
      "name": "Delivery",
      "item": [
        {
          "name": "POST /metrics/query/capacity-metrics",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/capacity-metrics",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "capacity-metrics"
              ],
              "variable": []
            },
            "description": "The team's available hours against its assigned load.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/dora-metrics",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/dora-metrics",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "dora-metrics"
              ],
              "variable": []
            },
            "description": "The four DORA delivery metrics: deployment frequency, lead time, change failure rate and time to recover.\n\n**Metrics**\n\n- **Deployment frequency** (`deployment_frequency`) — DORA metric: merged PRs per day. If the organization measures with deployments (GitHub, GitLab, Bitbucket or Datadog), production deployments per day. (per day, higher is better)\n- **Lead time for changes** (`lead_time_for_changes`) — DORA metric: time from a change until it reaches production. By default each pull request of a change is measured from its first commit (or the branch's creation, if the organization chose it) until the change reaches the repository's production branch (its default branch, or the prod/production branch it is promoted into): its own merge, or that of the pull request that brings it there along the chain dev → testing → main. Promotion and back-merge pull requests do not count, and a change that has not arrived yet counts when it does. With GitLab deployments, a view can measure it to the deployment that took it to production, with the wait from the merge and the certification in QA. (hours, lower is better)\n- **Change failure rate** (`change_failure_rate`) — DORA metric: share of merged PRs whose title points to a fix (fix, hotfix, bug, glitch…). If the organization measures with deployments, share of deployments flagged as a failure. (percentage points (0-100), lower is better)\n- **Mean time to recover** (`mean_time_to_recover`) — DORA metric: average time from the previous merge in the repository to the merge of a hotfix or revert PR. If the organization measures with Datadog, GitLab or Bitbucket deployments, average time from a failed deployment to the deployment that recovers it. (hours, lower is better)\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/flow-metrics",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/flow-metrics",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "flow-metrics"
              ],
              "variable": []
            },
            "description": "How work flows through the board: cycle and waiting times, work in progress and deliveries.\n\n**Metrics**\n\n- **Cycle time** (`cycle_time`) — Time from when a work item starts until it is completed. (days, lower is better)\n- **Waiting time** (`waiting_time`) — Time work items spend in waiting statuses, summed over the period's work items. (days, lower is better)\n- **Active time** (`active_time`) — Time work items spend in active work statuses, summed over the period's work items. (days, higher is better)\n- **Flow efficiency** (`flow_efficiency`) — Share of cycle time spent in active work, as a percentage. (percentage points (0-100), higher is better)\n- **Time to market** (`time_to_market`) — Median time from when a work item is created until it is delivered. (days, lower is better)\n- **Work in progress** (`work_in_progress`) — Number of work items in progress. (count, lower is better)\n- **Age of work in progress** (`avg_age_wip`) — Average age of the work items still in progress. (days, lower is better)\n- **Throughput** (`throughput`) — Number of work items completed in the period. (count, higher is better)\n- **Straight to done** (`direct_to_done_rate`) — Share of work items moved to done without going through in progress; high means the board does not reflect the real work. (percentage points (0-100), lower is better)\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/flow/partial_progress",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/flow/partial_progress",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "flow",
                "partial_progress"
              ],
              "variable": []
            },
            "description": "Progress of unfinished work items, from their subtasks.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/flow/progress_by_front",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/flow/progress_by_front",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "flow",
                "progress_by_front"
              ],
              "variable": []
            },
            "description": "Work progress grouped by front or initiative.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/flow/sprint_report",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/flow/sprint_report",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "flow",
                "sprint_report"
              ],
              "variable": []
            },
            "description": "What was planned, unplanned, discarded and completed in each sprint.\n\n**Metrics**\n\n- **Commitment met** (`sprint_commitment_met`) — Of what the sprints planned at their start, how much was completed: completed ÷ planned. It also counts unplanned work that was completed, so it can pass 100%. (percentage points (0-100), higher is better)\n- **Total completion** (`sprint_total_completion`) — What was completed over everything the sprints held: completed ÷ (planned + unplanned). Never above 100%. (percentage points (0-100), higher is better)\n- **Velocity** (`sprint_velocity`) — Average of what each sprint closed in the period completed, in the view’s unit (story points, work items or hours). (count, higher is better)\n- **Scope changes** (`sprint_scope_changes`) — Unplanned work: what came into the sprints after they started, as a percentage of what was planned. Discarded work (taken out before closing) is reported apart. (percentage points (0-100), lower is better)\n- **Carry-over** (`sprint_carry_over`) — What was in the sprints when they closed and was not completed, as a percentage of what was planned. It also counts unplanned work that was not completed. (percentage points (0-100), lower is better)\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/flow/story_lifecycle",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/flow/story_lifecycle",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "flow",
                "story_lifecycle"
              ],
              "variable": []
            },
            "description": "How each story or task moves through the repository rather than the board's statuses: waiting until its first commit, development until its PR opens, review until it merges into the development branch, then on to QA and production. Each PR is linked to its task by the key in its title, branch or description; QA and production are detected through promotion PRs between environment branches (dev → qa → main), so those stages are an approximation. Gives each stage's median and p85, the times per assignee and every item with its current stage.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/flow/storypoints",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/flow/storypoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "flow",
                "storypoints"
              ],
              "variable": []
            },
            "description": "The story points of the work items completed in the period: the total and the average per estimated work item.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Teams and collaboration",
      "item": [
        {
          "name": "POST /metrics/query/team-activity",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/team-activity",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "team-activity"
              ],
              "variable": []
            },
            "description": "Each person's activity: commits, PRs, work items and active days.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/team-collaboration",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/team-collaboration",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "team-collaboration"
              ],
              "variable": []
            },
            "description": "How the team collaborates in code reviews and meetings.\n\n**Metrics**\n\n- **Pickup time** (`pickup_time`) — Time from when a PR is opened until someone other than the author first acts on it: a comment, a commit or an approval. (hours, lower is better)\n- **Reviewer reaction time** (`reaction_time`) — Time a reviewer takes to react, with a comment or a commit, to the PR author's latest action: a commit or a comment. (hours, lower is better)\n- **Time to first approval** (`review_time_to_first_approval`) — Time from when a PR is opened until its first approval. (hours, lower is better)\n- **Author responsiveness** (`responsiveness`) — Time a PR's author takes to answer review comments. (hours, lower is better)\n- **Time to merge** (`time_to_merge`) — Time from when a PR is opened until it is merged. (hours, lower is better)\n- **Iterated PRs** (`iterated_prs`) — Share of PRs that got commits after they were opened, that is, that kept changing once open. (percentage points (0-100), lower is better)\n- **PR iteration time** (`pr_iteration_time`) — For PRs that got commits after the first comment by someone other than the author, average time from that comment to the last commit. (hours, lower is better)\n- **Review sharing index** (`sharing_index`) — How evenly PR reviews are spread across reviewers; low means a few people review almost everything. (percentage points (0-100), higher is better)\n- **Meeting hours** (`total_meeting_hours`) — Total hours in meetings. (hours, lower is better)\n- **Focus time availability** (`avg_focus_time_availability`) — Average meeting-free time available for focus work. (hours, higher is better)\n- **Meeting duration** (`avg_meeting_duration`) — Average duration of a meeting. (hours, lower is better)\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Quality and operations",
      "item": [
        {
          "name": "POST /metrics/query/databricks-metrics",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/databricks-metrics",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "databricks-metrics"
              ],
              "variable": []
            },
            "description": "Databricks usage and cost: jobs, clusters and consumption.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/noc-metrics",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/noc-metrics",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "noc-metrics"
              ],
              "variable": []
            },
            "description": "Support tickets: volume, response and resolution times.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/qa-metrics",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/qa-metrics",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "qa-metrics"
              ],
              "variable": []
            },
            "description": "Bugs found, where they come from and how long they take to fix.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/sre-metrics",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/sre-metrics",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "sre-metrics"
              ],
              "variable": []
            },
            "description": "Incidents and their impact: count, severity and resolution times.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/zephyr-metrics",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/zephyr-metrics",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "zephyr-metrics"
              ],
              "variable": []
            },
            "description": "Test execution in Zephyr: cases, cycles and results.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        }
      ]
    },
    {
      "name": "AI adoption",
      "item": [
        {
          "name": "POST /metrics/query/ai-tools/agents",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/ai-tools/agents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "ai-tools",
                "agents"
              ],
              "variable": []
            },
            "description": "The organization's AI agents and their activity.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/ai-tools/harness",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/ai-tools/harness",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "ai-tools",
                "harness"
              ],
              "variable": []
            },
            "description": "Maturity of each AI agent's harness.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/ai-tools/impact",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/ai-tools/impact",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "ai-tools",
                "impact"
              ],
              "variable": []
            },
            "description": "Delivery differences between work done with and without AI.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/ai-tools/overview",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/ai-tools/overview",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "ai-tools",
                "overview"
              ],
              "variable": []
            },
            "description": "Summary of AI usage, cost and impact.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/ai-tools/roi",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/ai-tools/roi",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "ai-tools",
                "roi"
              ],
              "variable": []
            },
            "description": "What AI costs against the time it saves.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/ai-tools/sessions",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/ai-tools/sessions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "ai-tools",
                "sessions"
              ],
              "variable": []
            },
            "description": "Work sessions with AI agents and their outcome.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/ai-tools/usage",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/ai-tools/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "ai-tools",
                "usage"
              ],
              "variable": []
            },
            "description": "Who uses AI tools, how much and which ones.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Cost and investment",
      "item": [
        {
          "name": "POST /metrics/query/investment/allocation",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/investment/allocation",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "investment",
                "allocation"
              ],
              "variable": []
            },
            "description": "Which kinds of work the team's effort goes to.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/investment/capitalization",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/investment/capitalization",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "investment",
                "capitalization"
              ],
              "variable": []
            },
            "description": "Which part of the effort can be capitalized.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        },
        {
          "name": "POST /metrics/query/project-financials",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/project-financials",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "project-financials"
              ],
              "variable": []
            },
            "description": "Each project's or team's cost from hours and role costs.\n\n**Metrics**\n\n- **Team size** (`team_size`) — Active people on the team at the end of the period. (count, higher is better)\n- **Average team size** (`avg_team_size`) — How many people the team had on average over the period, counting joiners and leavers. (count, higher is better)\n- **Throughput per person** (`avg_throughput_per_person`) — Completed items divided by the team's average size. (count, higher is better)\n- **Epics done** (`epics_done`) — Epics completed in the period. (count, higher is better)\n- **Roadmap efficiency** (`roadmap_efficiency`) — Of the completed epics that had a due date, the share delivered on time. (percentage points (0-100), higher is better)\n- **Support done** (`support_done`) — Support tasks completed in the period: work that is not product work. (count, lower is better)\n- **Bug percentage** (`bug_percentage`) — The share of completed items that are bugs. (percentage points (0-100), lower is better)\n- **Sprint efficiency** (`sprint_efficiency`) — Of the work planned when the sprints started, how much was done when they closed. (percentage points (0-100), higher is better)\n- **Invested hours** (`invested_hours`) — Hours recorded on the period's tasks. (hours, lower is better)\n- **Working time** (`working_time`) — Active working hours, measured from each person's activity in their tools. (hours, higher is better)\n- **Active days** (`active_days`) — Days with activity in the work tools, on average per person. (days, higher is better)\n- **Cycle time (sum)** (`cycle_time_sum`) — The sum of the cycle times of the completed items. (hours, lower is better)\n- **Cycle time (average)** (`cycle_time_avg`) — The average cycle time of a completed item. (hours, lower is better)\n- **Estimated vs executed** (`estimated_vs_executed`) — The estimated effort of the completed items relative to what they took. (percentage points (0-100), higher is better)\n- **Cost** (`cost`) — The period's hours multiplied by each person's hourly rate. (usd, lower is better)\n- **Pull request activity** (`pull_request_activity`) — Pull requests created, merged and open in the period. (count, higher is better)\n- **LOC delegated to AI** (`delegated_loc_percentage`) — The share of the classified lines of code that AI wrote in agent mode. (percentage points (0-100), higher is better)\n- **AI cost** (`ai_cost`) — Consumption cost of AI coding tools (tokens times each model's price), per person, summed over the period. Not the same as seats or billing. (usd, lower is better)\n- **AI cost by model** (`ai_cost_by_model`) — How AI cost splits across model families (Opus, Sonnet, Haiku, GPT, Gemini…). (share)\n- **AI cost by tool** (`ai_cost_by_tool`) — How AI cost splits across tools (Claude Code, Cursor…). (share)\n- **AI cost by skill** (`ai_cost_by_skill`) — How AI cost splits across Claude Code skills; cost from tools without skills is grouped by tool. (share)\n- **AI cost by product** (`ai_cost_by_product`) — How AI cost splits across Anthropic products: Claude Code at its estimated cost, the rest at reported spend. (share)\n- **Cost per accepted change** (`cost_per_accepted_change`) — AI cost divided by the pull requests merged to the main branch. Read it with what was delivered, not as something to minimise on its own. (usd, lower is better)\n- **AI cost per deployment** (`ai_cost_per_deployment`) — AI cost divided by the period's deployments, with the same branch filter as deployment frequency. (usd, lower is better)\n- **Investment allocation** (`investment_allocation`) — How the period's tasks split across kinds of work (new work, maintenance, bugs…). (share)\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Strategy",
      "item": [
        {
          "name": "POST /metrics/query/strategic-overview",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "{{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/metrics/query/strategic-overview",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "metrics",
                "query",
                "strategic-overview"
              ],
              "variable": []
            },
            "description": "Executive summary of the organization's delivery.\n\nMeasured with your own scope: filters narrow what you can see, never widen it. Nothing is saved. Unlike the REST API, an error answers `{\"error\": \"...\"}`, without the envelope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"from\": \"2026-10-01\",\n  \"to\": \"2026-10-31\",\n  \"teams\": [\n    15\n  ],\n  \"include_subteams\": true\n}"
            }
          }
        }
      ]
    }
  ]
}
