---
title: "Flag Document Compromised Endpoint"
method: POST
path: "/api/v1/documents/{document_id}/flag-compromised"
tags: ["Documents"]
---

# Flag Document Compromised Endpoint

`POST /api/v1/documents/{document_id}/flag-compromised`

## Request

- Base URL: `https://api.withverifa.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.withverifa.com/api/v1/documents/{document_id}/flag-compromised`
- Auth: none declared

Flag a document as compromised — computes its fingerprint and adds to the database.

This is a convenience endpoint that handles fingerprint computation automatically.
The document remains accessible but its fingerprint will match future uploads.

Request body:
    reason: Why this document is compromised.

## Path parameters

- `document_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/withverifa/apis/verifa.md) · [All operations](https://skmtc.dev/withverifa/apis/verifa/llms.txt) · [OpenAPI document](https://skmtc.dev/withverifa/apis/verifa/revisions/7288c82c9e33?raw)
