{"openapi":"3.0.3","info":{"title":"SameDayDesk machine commerce gateway","version":"1.8.0","description":"Twelve machine-discoverable paid capabilities on Base: work opportunity preflight $0.05, AI-search readiness audit $0.25, Morpho position risk $0.02, protection plans $0.10, market underwriting $0.25, PreLiquidation replay $0.10, company enrichment $0.05, wallet enrichment $0.05, URL extraction $0.05, Markdown reading $0.05, repository scan $0.20, and structured data $0.25. payTo 0x8904dF3DE6DFEe6a7C8cc38619d2f17806213Cee"},"servers":[{"url":"https://agents.samedaydesk.com"}],"paths":{"/v0/cards.json":{"get":{"summary":"Free incident-backed platform health cards. Categories are not calibrated scores.","responses":{"200":{"description":"SameDayDesk platform health index v0"}}}},"/v0/commerce-demand.json":{"get":{"summary":"Privacy-safe aggregate external machine-commerce observations.","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":365,"default":90}}],"responses":{"200":{"description":"Aggregate discovery, challenge, paid-success, unmatched-request, and high-precision semantic-candidate counts. Known internal and crawler traffic is excluded; unidentified automation can remain."}}}},"/.well-known/agent-card.json":{"get":{"summary":"A2A v1.0 agent card for the free machine-commerce storefront.","responses":{"200":{"description":"A2A AgentCard"}}}},"/a2a/message:send":{"post":{"summary":"Return the exact-price x402 action catalog as an A2A direct message.","responses":{"200":{"description":"A2A message containing the action catalog"},"400":{"description":"Invalid request or unsupported A2A version"}}}},"/platforms":{"get":{"summary":"Human-readable Settlement Radar health cards.","responses":{"200":{"description":"HTML platform health index"}}}},"/work/opportunity-preflight":{"get":{"summary":"Agent work opportunity -> deterministic attempt, verify-first, or abandon preflight using caller-supplied cost and selection assumptions plus dated platform evidence. Returns break-even probability, expected surplus, hard gates, and source-linked evidence. No claim, bid, payment, or submission.","parameters":[{"name":"platform","in":"query","required":false,"schema":{"type":"string","example":"taskmarket"}},{"name":"rewardUsd","in":"query","required":true,"schema":{"type":"number","exclusiveMinimum":0}},{"name":"hours","in":"query","required":true,"schema":{"type":"number","minimum":0}},{"name":"hourlyCostUsd","in":"query","required":true,"schema":{"type":"number","minimum":0}},{"name":"computeUsd","in":"query","required":false,"schema":{"type":"number","minimum":0,"default":0}},{"name":"mandatorySpendUsd","in":"query","required":false,"schema":{"type":"number","minimum":0,"default":0}},{"name":"reusableValueUsd","in":"query","required":false,"schema":{"type":"number","minimum":0,"default":0}},{"name":"selectionProbabilityPct","in":"query","required":false,"schema":{"type":"number","minimum":0,"maximum":100}},{"name":"competition","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"slots","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"agentAccess","in":"query","required":false,"schema":{"type":"string","enum":["agent_allowed","agent_only","mixed","human_only","unknown"],"default":"unknown"}},{"name":"acceptance","in":"query","required":false,"schema":{"type":"string","enum":["deterministic","machine_scored","timed_review","discretionary","unknown"],"default":"unknown"}},{"name":"settlement","in":"query","required":false,"schema":{"type":"string","enum":["direct","escrow","platform_balance","discretionary","unfunded","unknown"],"default":"unknown"}}],"responses":{"200":{"description":"deterministic opportunity economics and evidence preflight"},"400":{"description":"invalid required input, charged nothing"},"402":{"description":"payment required (x402, $0.05 USDC base)"}}}},"/extract":{"get":{"summary":"URL -> clean structured data: title, description, text, ALL JSON-LD, OpenGraph/Twitter meta, headings, links, AI-readiness signals.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"structured data"},"402":{"description":"payment required (x402, $0.05 USDC base)"}}}},"/read":{"get":{"summary":"URL -> full page content as clean Markdown, ready for LLM context. Strips nav/ads/scripts, preserves headings/links/lists.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"markdown"},"402":{"description":"payment required (x402, $0.05 USDC base)"}}}},"/scan":{"get":{"summary":"Static supply-chain security scan of a public GitHub repo before an agent installs/runs it. Flags exfil sinks, obfuscation, credential reads, install-time curl|bash. risk=clean|suspicious|dangerous.","parameters":[{"name":"repo","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"security risk report"},"402":{"description":"payment required (x402, $0.20 USDC base)"}}}},"/schemaforge":{"get":{"summary":"Generate a complete, paste-ready JSON-LD structured-data bundle (LocalBusiness/MedicalBusiness + Service/OfferCatalog + FAQPage + Review/AggregateRating + geo/hours) for a business site, tuned to the fields the pages that surface for high-intent vertical queries carry, plus a gap diff vs the live site and a ranked fix list. Makes a page eligible to be cited by AI assistants.","parameters":[{"name":"site","in":"query","required":true,"schema":{"type":"string"}},{"name":"vertical","in":"query","required":false,"schema":{"type":"string"}},{"name":"city","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"paste-ready JSON-LD bundle + gap diff + fix list"},"402":{"description":"payment required (x402, $0.25 USDC base)"}}}},"/enrich":{"get":{"summary":"Domain -> agent-ready company intelligence in one call: identity (name/legal name/description/logo), industry keywords, tech stack (CMS/framework/analytics), social profiles, contact surface (emails/phone/address), DNS + email infrastructure (MX/SPF/DMARC), and AI-search-readiness signals. No auth, no API keys, no subscription. Pay per request in USDC.","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"agent-ready company intelligence (identity, tech, social, contact, DNS, AI-readiness)"},"402":{"description":"payment required (x402, $0.05 USDC base)"}}}},"/wallet-enrich":{"get":{"summary":"Base/EVM address -> agent-ready on-chain profile in one call: EOA vs contract, native ETH + curated Base token holdings, token/NFT contract metadata (ERC-20/721/1155, name/symbol/decimals/supply), EIP-1967 proxy detection, activity (outbound tx count), and a single derived profile label. Pure Base-mainnet RPC, public data only; no keys, no subscription. The frictionless, pay-per-call way for an agent to size up a wallet/contract before it sends funds, swaps, or calls it.","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"agent-ready on-chain profile (type, native + token holdings, contract/token metadata, proxy, activity, profile label)"},"402":{"description":"payment required (x402, $0.05 USDC base)"}}}},"/deep-audit":{"get":{"summary":"Domain -> ONE complete AI-search-readiness audit: firmographics + tech stack + contact + DNS/email infra + a 0-100 AI-readiness score, PLUS a structured-data gap analysis with a paste-ready JSON-LD fix list and a combined letter grade. The bundled deep tier (enrich + schemaforge in one call). No auth, no API keys; pay-per-call USDC.","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","example":"example.com"}},{"name":"vertical","in":"query","required":false,"schema":{"type":"string"}},{"name":"city","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"bundled AI-search-readiness audit with firmographics, infrastructure, structured-data gaps, and a fix list"},"402":{"description":"payment required (x402, $0.25 USDC base)"}}}},"/defi/morpho-position":{"get":{"summary":"Base address -> deterministic Morpho borrower position snapshot and collateral-price stress scenarios. Returns LTV, LLTV, health factor, liquidation headroom, source freshness, and scenario outcomes. Read-only indexed observation; direct RPC verification is required before execution.","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},{"name":"shocks","in":"query","required":false,"description":"Comma-separated collateral price shocks in percent, from -99 through 100.","schema":{"type":"string","example":"-10,-20,-30"}}],"responses":{"200":{"description":"read-only Morpho position snapshot and deterministic stress scenarios"},"402":{"description":"payment required (x402, $0.02 USDC base)"}}}},"/defi/morpho-protection":{"get":{"summary":"Base Morpho borrower -> exact partial-repay and add-collateral amounts for a chosen stress and target health factor, plus unsigned approval/action templates and explicit invariants. Deterministic and read-only; no wallet, signing, broadcast, or custody.","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},{"name":"targetHealthFactor","in":"query","required":false,"description":"Target Morpho health factor after the stress scenario.","schema":{"type":"number","exclusiveMinimum":1,"maximum":5,"default":1.25}},{"name":"protectAgainstShockPct","in":"query","required":false,"description":"Collateral-price shock percentage to withstand.","schema":{"type":"number","minimum":-99,"maximum":0,"default":-10}},{"name":"executionBufferBps","in":"query","required":false,"description":"Explicit amount buffer for debt accrual and integer rounding.","schema":{"type":"integer","minimum":0,"maximum":500,"default":25}}],"responses":{"200":{"description":"deterministic protection quote with unsigned transaction templates"},"400":{"description":"invalid request, charged nothing"},"402":{"description":"payment required (x402, $0.10 USDC base)"}}}},"/defi/morpho-market-underwrite":{"get":{"summary":"Base Morpho market -> deterministic underwriting facts: parameter integrity, direct-chain checks, liquidity, utilization, APY history, borrower concentration and health bands, bad debt, and PreLiquidation supply. Read-only evidence flags; no opaque score or capital action.","parameters":[{"name":"marketId","in":"query","required":true,"description":"Morpho market ID on Base mainnet.","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"deterministic multi-source Morpho market underwriting evidence"},"400":{"description":"invalid request, charged nothing"},"402":{"description":"payment required (x402, $0.25 USDC base)"}}}},"/defi/morpho-preliquidation-replay":{"get":{"summary":"Base transaction -> deterministic Morpho PreLiquidation replay: strict event decode, block-time contract parameters and oracle price, repaid debt, seized collateral, gross incentive, and gas. Historical evidence only; no profitability claim or execution.","parameters":[{"name":"transactionHash","in":"query","required":true,"description":"Successful Base transaction containing a Morpho PreLiquidate event.","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"historical deterministic Morpho PreLiquidation event replay"},"400":{"description":"invalid request, charged nothing"},"402":{"description":"payment required (x402, $0.10 USDC base)"}}}}}}