{"uid":"cap_BZObvbOid1Y7muzNIuz05","slug":"signalharness-document-diff-da181627","name":"SignalHarness Document Diff","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/document_diff/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"string","maxLength":65536,"minLength":0},"before":{"type":"string","maxLength":65536,"minLength":0}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"summary":{"added":0,"changed":0,"removed":0},"afterHash":"0000000000000000000000000000000000000000000000000000000000000000","beforeHash":"0000000000000000000000000000000000000000000000000000000000000000","addedSections":[{"hash":"example000000000000000000000000000000000000000000000000000000000","text":"Example caller-supplied content.","heading":"example","lineCount":0}],"afterLineCount":0,"beforeLineCount":0,"changedSections":[{"heading":"example","afterHash":"example000000000000000000000000000000000000000000000000000000000","afterText":"example","beforeHash":"example000000000000000000000000000000000000000000000000000000000","beforeText":"example"}],"removedSections":[{"hash":"example000000000000000000000000000000000000000000000000000000000","text":"Example caller-supplied content.","heading":"example","lineCount":0}],"afterSectionCount":0,"beforeSectionCount":0},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"document_diff","executionId":"example-execution","startedAtMs":0,"amountAtomic":"20000","resultSha256":"209b1a6d14c3a45c31cfea93dff5e343947ff7274aae503f4348125e94b17916","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RIzFUa29H41lgl4mR5Nog","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a structured diff between two text documents, returning added, changed, and removed sections with line counts and hashes.","exampleAgentPrompt":"Compare these two versions of my contract and tell me exactly what sections were added, removed, or changed — here's the original text and the revised version.","exampleUseCases":[{"title":"Contract revision review","prompt":"I have the original and updated version of a vendor contract — can you diff them and tell me which clauses were added, removed, or changed?"},{"title":"Configuration file audit","prompt":"Here are two versions of our server config file before and after the deploy. Show me exactly what lines changed between them."},{"title":"Document proofreading pipeline","prompt":"I submitted a draft and my editor returned a revised copy. Can you compare the two texts and give me a structured breakdown of every addition and deletion?"}],"resultDescription":"A JSON object containing a summary of added, changed, and removed section counts; arrays of added, changed, and removed sections with their content; line counts for both the before and after documents; section counts; and SHA-256 hashes of both documents for integrity verification. Also includes execution metadata such as latency, payment receipt, and request IDs.","failureModes":["Input text exceeds 65,536 character limit — request rejected with validation error","Empty or missing 'before'/'after' fields may return zero-delta result with all-zero hashes","Network or payment failure returns a non-succeeded status in the receipt","Malformed JSON body results in a 400-level error before execution begins"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable diff of two text documents — especially when you need section-level granularity, SHA-256 integrity hashes, and exact counts of additions, deletions, and changes. Prefer it over simple string comparison when downstream agents need to act on specific changed sections, or when audit trails (via payment receipts and hashes) are required. It is well-suited for contract review, configuration auditing, and document version tracking workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:45:37.127Z","isFirstParty":false}