{"uid":"cap_q5YY_8HvHaQHkn3tv0AIo","slug":"brainiac-document-trust-signed-tamper-detection-35a38d57","name":"BRAINIAC Document Trust — Signed Tamper Detection","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/document-trust/signed-tamper-detect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"asOf":{"type":"string","maxLength":40},"json":{"type":"string","maxLength":200000},"text":{"type":"string","maxLength":200000},"files":{"type":"array","items":{"type":"object","required":["fileBase64"],"properties":{"id":{"type":"string","maxLength":80},"role":{"type":"string","maxLength":80},"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["application/pdf","application/octet-stream"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1},"versionLabel":{"type":"string","maxLength":80},"expectedSha256":{"type":"string","maxLength":128},"expectedByteRangeSha256":{"type":"string","maxLength":128}},"additionalProperties":false},"maxItems":20},"signers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":200},"email":{"type":"string","maxLength":200},"signedAt":{"type":"string","maxLength":40},"fieldName":{"type":"string","maxLength":120},"documentId":{"type":"string","maxLength":80},"certificateId":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":40},"revocations":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","maxLength":200},"source":{"type":"string","maxLength":200},"revokedAt":{"type":"string","maxLength":40},"serialNumber":{"type":"string","maxLength":128}},"additionalProperties":false},"maxItems":200},"certificates":{"type":"array","items":{"type":"object","required":["pem"],"properties":{"id":{"type":"string","maxLength":80},"pem":{"type":"string","maxLength":50000,"minLength":1},"role":{"enum":["leaf","intermediate","root"],"type":"string"},"documentId":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":40},"detachedSignatures":{"type":"array","items":{"type":"object","properties":{"algorithm":{"enum":["RSA-SHA256","RSA-SHA1","RSA-SHA512"],"type":"string"},"documentId":{"type":"string","maxLength":80},"digestSha256":{"type":"string","maxLength":128},"publicKeyPem":{"type":"string","maxLength":50000},"signatureBase64":{"type":"string","maxLength":100000}},"additionalProperties":false},"maxItems":20}}},"responseSchema":{"type":"json","example":{"items":[{"id":"DOC-1","sha256":"8f02a34abc7dfdaf8293f3cae3c3b621959ad02c66bc7401a6694afa470d4561","filename":"contract-v1.pdf","integrityOk":true,"expectedSha256":"8f02a34abc7dfdaf8293f3cae3c3b621959ad02c66bc7401a6694afa470d4561","tamperSuspected":false,"byteRangeMismatch":false,"expectedHashMatch":true,"expectedHashCompared":true,"commercialPlatformUsed":false,"legalEnforceabilityClaimed":false}],"status":"checked","findings":[],"checkedAt":"2026-11-04T21:00:00.000Z","fileCount":1,"limitations":["PDF bytes, certificates, signers, revocations, and detached signatures are processed only locally in this request path.","No commercial electronic-signature platform is used and no API key is required.","Technical signature, hash, certificate, and timestamp checks are not a determination of legal enforceability.","Full CMS/PKCS#7 cryptographic verification is reported only when a detached signature and public key are supplied, or when ByteRange digests match caller-supplied expectations. Missing CMS fields are not invented.","Revocation is evaluated only against caller-supplied revocation entries. Live commercial OCSP/CRL networks are not queried."],"apiKeyRequired":false,"paidProviderUsed":false,"tamperSuspectedCount":0,"commercialPlatformUsed":false,"legalEnforceabilityClaimed":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fes5aX2kQZDpCIr_CWaQY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies the integrity and tamper status of PDF documents and files by checking hashes, certificates, digital signatures, and signer metadata without relying on external paid services.","exampleAgentPrompt":"Can you check if this signed contract PDF has been tampered with — here's the base64-encoded file and the SHA-256 hash I was given when it was originally signed: 8f02a34abc7dfdaf8293f3cae3c3b621959ad02c66bc7401a6694afa470d4561?","exampleUseCases":[{"title":"Contract authenticity check before countersigning","prompt":"Before I countersign this vendor agreement, verify the PDF hasn't been modified — here's the base64 file and the expected SHA-256 hash the other party gave me. Also include the signer's name Alice Johnson and email alice@vendor.com so you can confirm the signer metadata."},{"title":"Post-closing legal document audit","prompt":"We closed a deal last week and I need to confirm the final executed PDF wasn't altered after signing. Run a tamper-detection check on this base64-encoded PDF with asOf date 2026-10-15T18:00:00Z and verify it against this expected hash: 8f02a34abc7dfdaf8293f3cae3c3b621959ad02c66bc7401a6694afa470d4561."},{"title":"Certificate chain validation on signed PDF","prompt":"I have a digitally signed PDF and two PEM certificates — one leaf and one intermediate. Can you check the document's SHA-256 integrity and validate those certificates against the document, flagging any tamper or byte-range issues?"}],"resultDescription":"Returns a JSON object with per-document items listing: SHA-256 hash computed vs expected, tamper suspected flag, byte-range mismatch flag, certificate and signer findings, an overall status ('checked'), a checkedAt timestamp, and a limitations array clarifying that legal enforceability is not asserted, live OCSP/CRL is not queried, and no third-party platform is used.","failureModes":["File too large (base64 exceeds 12 MB limit per file) — request rejected","Missing required fileBase64 field — validation error","Malformed PEM certificate — certificate check skipped or error returned","expectedSha256 mismatch — tamperSuspected set to true, integrityOk false","No detached signature or public key provided — full CMS/PKCS#7 cryptographic verification not reported","Payment not received via x402 — HTTP 402 returned before processing","More than 20 files submitted — request rejected"],"whenToPreferThis":"Choose this endpoint when you need a no-account, pay-per-call, locally executed document integrity check that does not send data to any commercial e-signature platform (DocuSign, Adobe Sign, etc.) and does not require an API key. It is ideal when you need a verifiable, audit-friendly hash and certificate check at $0.04 per call and want explicit, honest limitations stated in the response. Prefer alternatives if you need live OCSP/CRL revocation checking, legal enforceability determination, or cloud e-signature platform integration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T18:34:19.646Z","isFirstParty":false,"canonicalSlug":"brainiac-document-trust-signed-tamper-detection-35a38d57"}