Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: "Flaky Tests: Monitors, labels and flaky marks in the v2 API"
description: "Manage monitors, mute them per test, mark tests flaky, label tests and read detection events through the v2 API, with new API key permissions."
date: 2026-11-16
category: Flaky Tests
type: new-feature
---

**You can now manage monitors and flag tests from the v2 API, not only from the web app.**

### New features

- **Monitors.** [List](/api/monitors/list-monitors), [get](/api/monitors/get-a-monitor), [create](/api/testcollections/create-a-monitor) and [edit](/api/monitors/edit-a-monitor) a test collection's monitors. Turning a monitor off through the API deactivates it on every test, as it does in the web app.
- **Mute a monitor for some tests.** [Mute](/api/monitortests/mute-a-monitor-for-one-test) or [unmute](/api/monitortests/unmute-a-monitor-for-one-test) a monitor for one test, or [mute](/api/monitortests/mute-a-monitor-for-many-tests) and [unmute](/api/monitortests/unmute-a-monitor-for-many-tests) it for many at once. A mute lasts up to 30 days or has no end. [List a monitor's tests](/api/monitortests/list-a-monitors-tests) to see where it is active.
- **Mark tests flaky.** [Mark a test flaky](/api/tests/mark-a-test-flaky) or [clear the mark](/api/tests/clear-a-tests-flaky-mark), as **Flag as Flaky** does in the web app.
- **Label tests.** [Add](/api/tests/add-labels-to-a-test) or [remove](/api/tests/remove-labels-from-a-test) a test's labels. A new label name creates the label.
- **Detection events.** [List detection events](/api/detectionevents/list-detection-events) to see each verdict your monitors recorded on a test, over a window of up to 30 days.

### Updates

- **New API key permissions.** Flaky Tests writes now need a matching permission on the API key: **Quarantine tests**, **Flag tests**, **Manage monitors**, **Mute monitors**, **Link tickets** and **Create tickets**. A key without permissions can still read collections, tests, monitors and detection events. If a key lacks a permission, the API returns `403 INSUFFICIENT_PERMISSIONS`. See [Permissions](/api/authentication#permissions).
- **Read a pull request's impacted targets.** A new v2 endpoint returns the impacted targets uploaded for a pull request.

See the [API reference](/api) for all v2 endpoints.
6 changes: 6 additions & 0 deletions changelog/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ rss: true

### November 2026

<Update label="November 16, 2026" tags={["Flaky Tests"]}>
**[Flaky Tests: Monitors, labels and flaky marks in the v2 API](/changelog/2026-11-16-flaky-tests-api-monitors-labels-and-permissions)**

Manage monitors, mute them per test, mark tests flaky, label tests and read detection events through the v2 API, with new API key permissions.
</Update>

<Update label="November 10, 2026" tags={["Merge Queue"]}>
**[Browser Extension 1.12.0: GitHub's new pull request Overview page](/changelog/2026-11-10-browser-extension-1-12-0)**

Expand Down
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,7 @@
{
"group": "November",
"pages": [
"changelog/2026-11-16-flaky-tests-api-monitors-labels-and-permissions",
"changelog/2026-11-10-browser-extension-1-12-0",
"changelog/2026-11-04-dynamic-ci-impacts-and-action-updates",
"changelog/2026-11-03-code-quality-cli-1-29-0"
Expand Down
8 changes: 8 additions & 0 deletions flaky-tests/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ og:title: "Trunk Flaky Tests changelog"

## 2026

### November 2026

<Update label="November 16, 2026" tags={["Flaky Tests"]}>
**[Flaky Tests: Monitors, labels and flaky marks in the v2 API](/changelog/2026-11-16-flaky-tests-api-monitors-labels-and-permissions)**

Manage monitors, mute them per test, mark tests flaky, label tests and read detection events through the v2 API, with new API key permissions.
</Update>

### October 2026

<Update label="October 28, 2026" tags={["Flaky Tests"]}>
Expand Down
Loading