---
title: "Pre-merge check adoption: merged and checked files per ISO week"
method: GET
path: "/analytics/v1/merge/weekly"
tags: ["analytics"]
---

# Pre-merge check adoption: merged and checked files per ISO week

`GET /analytics/v1/merge/weekly`

## Request

- Base URL: `https://api.qualityclouds.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.qualityclouds.ai/analytics/v1/merge/weekly`
- Auth: one of:
  - HTTP bearer
  - OpenID Connect (`https://account.qualityclouds.com//realms/ai-production/.well-known/openid-configuration`)

One item per ISO week (UTC) of the period, weeks without a merged file included; the last one is the week in progress (partial). The bars sum to card 2.

## Query parameters

- `weeks` integer: Length of the period in ISO weeks. One of [4, 8, 12, 26].
- `repository_id` string, nullable: Narrow to one repository.
- `user_id` string, nullable: Narrow to one developer: the commit author, by email.

## Response `200`

Successful Response

- MergeWeeklyResponse: `GET /merge/weekly` — every week of the period, empty ones included.
  - `items` MergeWeekResponse[], required
    - `week` string, required: ISO week label, e.g. 2026-W37
    - `week_start` string, required: Monday 00:00 UTC, ISO-8601
    - `partial` boolean, required: The week in progress
    - `merged` integer, required
    - `checked` integer, required
    - `not_checked` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Validation Error

---

[API](https://skmtc.dev/qualityclouds/apis/qai-orchestrator-api.md) · [All operations](https://skmtc.dev/qualityclouds/apis/qai-orchestrator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/qualityclouds/apis/qai-orchestrator-api/revisions/250c849925af?raw)
