All workflows

Structured Record Dedupe

Deduplicate up to 1000 structured records by caller-selected keys with normalized string matching and explicit duplicate evidence.

1 credit per call · $0.003 USDC with x402

Sample input

{
  "records": [
    {
      "id": " A ",
      "v": 1
    },
    {
      "id": "a",
      "v": 2
    },
    {
      "id": "b",
      "v": 3
    }
  ],
  "keys": [
    "id"
  ],
  "strategy": "first"
}

Worked sample output

{
  "ok": true,
  "mode": "record_dedupe",
  "input_count": 3,
  "unique_count": 2,
  "duplicate_count": 1,
  "keys": [
    "id"
  ],
  "strategy": "first",
  "unique_records": [
    {
      "id": " A ",
      "v": 1
    },
    {
      "id": "b",
      "v": 3
    }
  ],
  "duplicates": [
    {
      "duplicate_index": 1,
      "kept_index": 0,
      "key_sha256": "ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb"
    }
  ],
  "duplicates_truncated": false
}

Worked example using published sample data only. Own-data execution is paid.

Connect in curl

Set BOUNTY_API_KEY privately after your payment is verified. Change the retry key for each new logical request.

curl 'https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/record-dedupe' \
  -H "Authorization: Bearer $BOUNTY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: workflow-request-001' \
  -H 'X-Max-Credits: 1' \
  --data '{"records":[{"id":" A ","v":1},{"id":"a","v":2},{"id":"b","v":3}],"keys":["id"],"strategy":"first"}'

Connect in n8n

Download the inactive n8n template. Import it, configure the private Header Auth credential, inspect the sample and run it manually. A new execution creates a new billable request; there is no automatic schedule.

Use an HTTP POST to https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/record-dedupe. Send JSON and these headers; store the Bearer token as a private credential.

{
  "method": "POST",
  "headers": {
    "Authorization": "Bearer YOUR_PRIVATE_API_KEY",
    "Content-Type": "application/json",
    "Idempotency-Key": "UNIQUE_PER_LOGICAL_REQUEST",
    "X-Max-Credits": "1"
  },
  "body": {
    "records": [
      {
        "id": " A ",
        "v": 1
      },
      {
        "id": "a",
        "v": 2
      },
      {
        "id": "b",
        "v": 3
      }
    ],
    "keys": [
      "id"
    ],
    "strategy": "first"
  }
}

Reuse a retry key only for the same input. Failed execution returns reserved credits. Full integration and recovery guide · Machine-readable recipe