---
title: "Trigger Merge Check"
method: POST
path: "/api/v1/service/merge-checks"
tags: ["merge-checks"]
---

# Trigger Merge Check

`POST /api/v1/service/merge-checks`

## 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/api/v1/service/merge-checks`
- Auth: one of:
  - HTTP bearer
  - OpenID Connect (`https://account.qualityclouds.com//realms/ai-production/.well-known/openid-configuration`)

Trigger a merge-check (DIFF) scan end-to-end. Returns 202 {scan_id}.

## Request body

- MergeCheckTriggerBody: Internal trigger to run a merge-check (DIFF) scan end-to-end.
  - `repository_id` string, required
  - `source_branch` string, required
  - `target_branch` string, required
  - `head_commit` string, required
  - `base_commit` string, nullable
  - `pr_reference` string, nullable
  - `provider` string, nullable

## Response `202`

Successful Response

- object

## 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)
