---
title: "documents.resolve-duplicates"
method: POST
path: "/capabilities/documents.resolve-duplicates"
tags: ["Capabilities"]
---

# documents.resolve-duplicates

`POST /capabilities/documents.resolve-duplicates`

Analyze a selected set of documents as possible duplicates. Use dryRun=true (default) to preview which document should be kept first. Use dryRun=false with masterId set to the document ID the user chose to keep.

## Request body

- object
  - `documentIds` string[], required — Document IDs to analyze as a possible duplicate set
  - `masterId` string — The document ID to keep. Required only when dryRun=false and must be one of documentIds.
  - `dryRun` boolean — If true, preview duplicate resolution. If false, keep the chosen document and archive the duplicates.

## Response `200`

Successful response

- object
  - `success` boolean
  - `code` integer
  - `data` object
    - `result` object — Capability-specific result

## Other responses

- `400` — Invalid input
- `401` — Authentication required
- `404` — Resource not found

---

[API](https://skmtc.net/receiptor/apis/receiptor-ai-api.md) · [All operations](https://skmtc.net/receiptor/apis/receiptor-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/receiptor/receiptor-ai-api/versions/da17f0eb65a2/schema)
