---
title: "POST /api/testing/content-diagnostics/scan"
method: POST
path: "/api/testing/content-diagnostics/scan"
tags: ["/api/testing"]
---

# POST /api/testing/content-diagnostics/scan

`POST /api/testing/content-diagnostics/scan`

## Request

- Base URL: `` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/testing/content-diagnostics/scan`
- Auth: API key in header `X-API-Key`

Run a content diagnostics scan synchronously and return its topline. Findings only reach the UI
  through a scan, and the production trigger is a nightly job, so E2E tests need a way to run one on
  demand. Intended only for E2E tests.

## Response `2XX`

Successful response

- object, nullable
  - `duration_ms` integer, required
  - `finding_count` integer, required
  - `scan_id` string, required

## Other responses

- `4XX`: Client error response
- `5XX`: Server error response

## Changes

- **2026-11-04** `2e178f5a7934`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/testing/content-diagnostics/scan/post.md)

---

[API](https://skmtc.dev/metabase/apis/metabase-api.md) - [All operations](https://skmtc.dev/metabase/apis/metabase-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metabase/apis/metabase-api/revisions/2e178f5a7934?raw)
