{"uid":"cap_ifgy92XpiQe6DIv2ehuTV","slug":"delta-witness-preflight-check-294f3aee","name":"DELTA Witness Preflight Check","description":"Paid, machine-verifiable capture and preflight checks for public web sources.","url":"https://delta-witness-api.ruphussten.workers.dev/v1/preflight","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","pattern":"^https?://","description":"Public HTTP(S) source to observe before an action."},"expected":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":10},"excludes":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":10},"html_sha256":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"markdown_sha256":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"}},"additionalProperties":false},"prior_proof_id":{"type":"string","pattern":"^[0-9a-fA-F-]{36}$","description":"Optional DELTA proof to use as the hash baseline."},"freshness_seconds":{"type":"integer","maximum":2592000,"minimum":0}}},"responseSchema":{"type":"json","example":{"ok":true,"safe":true,"changed":false,"product":"preflight","proof_id":"7d9d12f7-8f91-5f41-9f0c-5ef257d9ea5d","bundle_root":"sha256:0000000000000000000000000000000000000000000000000000000000000000","observed_at":"2026-08-31T00:00:00.000Z","manifest_url":"https://delta-witness-api.ruphussten.workers.dev/v1/proofs/7d9d12f7-8f91-5f41-9f0c-5ef257d9ea5d","public_proof_url":"https://delta-witness-api.ruphussten.workers.dev/p/7d9d12f7-8f91-5f41-9f0c-5ef257d9ea5d"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"5","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":"$5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6mVWga2L5K6esWDawU399","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a public URL, verifies its content against expected conditions, and returns a cryptographic proof bundle for machine-verifiable trust before an autonomous action","exampleAgentPrompt":"Before you proceed with the purchase, do a preflight check on https://shop.example.com/product/42 and verify the page still contains 'In Stock' and hasn't changed since the last proof — freshness within 300 seconds.","exampleUseCases":[{"title":"Pre-trade price page attestation","prompt":"Before executing that limit order, verify https://exchange.example.com/BTC-USDC still shows 'Trading Active' and doesn't contain 'Maintenance Mode' — give me a cryptographic proof it looked that way within the last 60 seconds."},{"title":"Agent safety check before form submission","prompt":"Before my agent submits the grant application, preflight-check https://grants.example.gov/apply to confirm the page still contains 'Accepting Submissions' and hasn't changed since proof ID a1b2c3d4-1234-5678-abcd-ef0123456789."},{"title":"Compliance snapshot before legal filing","prompt":"Capture and attest the current state of https://regulations.example.gov/rule/2024-001 — I need a machine-verifiable proof bundle showing the exact content at observation time with freshness under 3600 seconds for our audit trail."}],"resultDescription":"A JSON object indicating whether the preflight passed (ok, safe, changed flags), a UUID proof_id, a SHA-256 bundle_root hash of the observed content, an ISO 8601 observed_at timestamp, and URLs to the full proof manifest and human-readable public proof page for independent verification.","failureModes":["URL is unreachable or returns a non-200 status — ok:false with network error detail","Expected 'contains' strings not found in fetched content — safe:false","Expected 'excludes' strings found in fetched content — safe:false","Content hash differs from prior_proof_id baseline — changed:true","Content is older than freshness_seconds threshold — staleness violation","Invalid URL format (not http/https) — 400 validation error","prior_proof_id not found or malformed — 422 error","Payment not received or insufficient — 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs machine-verifiable, cryptographically-attested evidence of a public web page's content state before taking an irreversible or high-stakes action. It is distinct from simple web scraping because it produces a signed proof bundle with a persistent manifest URL — ideal for audit trails, compliance workflows, or multi-agent trust chains where one agent must prove to another what a page said at a specific moment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:34:24.133Z","isFirstParty":false}