{"uid":"cap_DdBrp5AcT1UnEb5HV09cJ","slug":"chainverdict-xyz-document-diff-ee2546a3","name":"chainverdict.xyz Document Diff","description":"Structured diff of two text blocks: per-line additions, deletions and changes, plus an identical flag. Use it to detect whether a contract, policy or spec changed between two fetches.","url":"https://chainverdict.xyz/v1/doc/diff","method":"POST","headers":{},"bodySchema":{"type":"object","required":["a","b"],"properties":{"a":{"type":"string"},"b":{"type":"string"},"mode":{"enum":["lines","words","chars"],"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EZtKlb04gw3fUV_Ief_DD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a structured per-line diff of two text blocks, returning additions, deletions, changes, and an identical flag to detect document changes.","exampleAgentPrompt":"Compare these two versions of our supplier contract and tell me exactly which lines were added, deleted, or changed — and whether they're identical overall.","exampleUseCases":[{"title":"Contract change detection before signing","prompt":"I just refetched our vendor agreement and I want to know if anything changed since last week — show me every line that was added, removed, or modified between the two versions."},{"title":"Terms of service monitoring for compliance","prompt":"Here are two snapshots of the platform's terms of service from two different dates — diff them and tell me what sections were added or deleted so our legal team knows what to review."},{"title":"Spec drift detection in engineering workflow","prompt":"We have two versions of an API spec — the one we built against and the one just published by the provider. Can you compare them line by line and flag anything that changed?"}],"resultDescription":"Returns a structured diff object with per-line entries categorized as additions, deletions, or changes, along with an identical boolean flag indicating whether the two input text blocks are completely unchanged relative to each other.","failureModes":["Missing or empty body fields cause a 400 validation error","Extremely large documents may hit payload size limits","Non-text binary content passed as input will produce garbled or error output","Network timeout if the service is temporarily unavailable","Payment failure if insufficient USDC balance for the $0.002 per-call fee"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable line-by-line diff of two text documents — especially contracts, policies, specs, or terms — and want explicit addition/deletion/change categorization plus an identical flag, rather than a human-readable summary or a semantic similarity score.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:53:02.022Z","isFirstParty":false}