# Machine Shop – Deduplicate Documents

> Machine Shop – Deduplicate Documents is a paid API for AI agents from api.pay-forge.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-20).

Identifies and removes duplicate string items from a list, returning unique entries and a map of which items are duplicates of which.

## Facts

- Endpoint: POST https://api.pay-forge.online/v1/deduplicate-documents?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/machine-shop-deduplicate-documents-7a7b3eb9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9Dd6S3MywfBJqKLza0lnl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability machine-shop-deduplicate-documents-7a7b3eb9 -d '<json body>'
```

Example prompt: I have a list of document snippets and I think there are duplicates in there — can you run them through the Machine Shop deduplication tool and tell me which ones are repeated and which are unique?

## When to prefer this

Use this endpoint when you need a straightforward, low-cost deduplication of a string array (up to 100 items) with an explicit index map showing which items are duplicates of which originals. Prefer it over manual logic when you need structured output identifying both the unique set and the duplicate relationships by index.

## Known failure modes

- More than 100 items submitted — input array exceeds maxItems limit
- Non-string items in the array may not be compared correctly
- Empty array returns empty unique list with no duplicates
- Payment not included or insufficient — returns 402 Payment Required
- Malformed request body returns validation error

## How this service works

Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.

## Output

Returns a JSON object containing a 'unique' array of deduplicated string items and a 'duplicates' array listing the index of each duplicate along with the index of the original item it duplicates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "Items",
   "maxItems": 100
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "unique": [
   "Hello",
   "World"
  ],
  "duplicates": [
   {
    "index": 1,
    "duplicate_of": 0
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/machine-shop-deduplicate-documents-7a7b3eb9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.pay-forge.online](https://www.zero.xyz/host/api.pay-forge.online/llms.txt)
