{
  "openapi": "3.1.0",
  "info": {
    "title": "DYOE Agent Tools API",
    "version": "1.1.0",
    "description": "DYOE: the trust check for AI agents. Check before you pay: scam, wallet and payment pre-flight checks, paid per call in USDC on Base. Start with /verify ($0.01 scam check on a domain or URL: safe/caution/avoid) or /transaction ($0.10 payment pre-flight: counterparty site + payee wallet OFAC screen + amount vs policy: proceed/caution/stop). Also /wallet (OFAC + on-chain footprint), /approve (instant decision under DYOE's standing policy rules; escalates to /review), /review (a person reviews and signs, for high-stakes calls), plus due-diligence and data tools. Free agent-to-agent credential checks under /api/v1. Paid endpoints respond 402 with x402 payment requirements; pay and retry to receive the JSON result.",
    "contact": {
      "name": "DYOE",
      "url": "https://dyoeway.org",
      "email": "info@dyoeway.org"
    },
    "x-payment-protocol": "x402",
    "x-network": "base",
    "x-settlement-asset": "USDC",
    "x-guidance": "DYOE: the trust check for AI agents. Check before you pay: scam, wallet and payment pre-flight checks, paid per call in USDC on Base. Recommended workflow: before paying any new counterparty, call /verify?target=domain ($0.01), or /transaction?domain=&wallet=&amount= ($0.10) when you have a wallet and amount. Proceed on safe/proceed, pause on caution (ask your human or route to /review), stop on avoid/stop. Call a PAID tool (GET, query params) and it returns HTTP 402 with an x402 payment challenge (v1 body, v2 PAYMENT-REQUIRED header); pay and retry to get the JSON result. FREE agent-to-agent credential checks live under /api/v1."
  },
  "servers": [
    {
      "url": "https://agents.dyoeway.org"
    }
  ],
  "tags": [
    {
      "name": "trust",
      "description": "Counterparty trust & due diligence"
    },
    {
      "name": "travel",
      "description": "Trip-planning intelligence"
    },
    {
      "name": "credentials",
      "description": "Signed, verifiable DYOE credentials"
    },
    {
      "name": "agent-to-agent",
      "description": "FREE — one agent verifies another before transacting"
    },
    {
      "name": "data",
      "description": "Market, currency, weather & web data"
    }
  ],
  "components": {
    "responses": {
      "PaymentRequired": {
        "description": "x402 Payment Required — pay the quoted USDC amount on Base and retry the request.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "description": "x402 payment requirements (accepts array with price, network, payTo)."
            }
          }
        }
      },
      "Json": {
        "description": "Result",
        "content": {
          "application/json": {
            "schema": {
              "type": "object"
            }
          }
        }
      }
    },
    "schemas": {
      "VerifyDecision": {
        "type": "object",
        "description": "Additive decision block on GET /verify (schema_version dyoe-verify-decision/1). Mapped from the unchanged top-level verdict: safe->allow, caution->review, avoid->deny. Screens the counterparty's domain only; not a guarantee and not a fraud finding about any payment.",
        "required": [
          "schema_version",
          "verdict",
          "mapped_from",
          "reason_codes",
          "confidence",
          "facts",
          "signals",
          "provenance",
          "checked_at",
          "ttl_seconds",
          "expires_at",
          "binding",
          "receipt_id"
        ],
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "dyoe-verify-decision/1"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "allow",
              "review",
              "deny"
            ]
          },
          "mapped_from": {
            "type": "string",
            "enum": [
              "safe",
              "caution",
              "avoid"
            ],
            "description": "The top-level verdict this was mapped from."
          },
          "reason_codes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "TARGET_INVALID",
                "TARGET_NOT_PUBLIC",
                "UNREACHABLE",
                "NO_HTTPS",
                "HTTP_ERROR",
                "DOMAIN_AGE_UNDER_30D",
                "DOMAIN_AGE_UNDER_90D",
                "DOMAIN_AGE_UNKNOWN",
                "PAGE_UNREADABLE",
                "NO_CONTACT_INFO",
                "NO_TITLE",
                "UNCLASSIFIED_FLAG",
                "HUMAN_VOUCHED",
                "VOUCH_UPGRADED_CAUTION",
                "X402_SERVICE",
                "HTTPS_OK",
                "DOMAIN_AGE_OVER_1Y",
                "DOMAIN_AGE_OVER_3Y"
              ]
            },
            "description": "Stable machine codes, append-only, emitted in enum order."
          },
          "confidence": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Same value as attestation.confidence."
          },
          "facts": {
            "type": "object",
            "description": "Measured checks.",
            "properties": {
              "reachable": {
                "type": "boolean"
              },
              "https": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "domain_age_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "From RDAP; null if unknown."
              },
              "is_x402_service": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "human_vouch": {
                "type": "boolean"
              }
            }
          },
          "signals": {
            "type": "object",
            "description": "Heuristics. Probabilistic hints, not findings.",
            "properties": {
              "trust_score": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "legitimacy": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "heuristic_flags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "note": {
                "type": "string"
              }
            }
          },
          "provenance": {
            "type": "array",
            "description": "Which checks ran and where each answer came from.",
            "items": {
              "type": "object",
              "properties": {
                "check": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "fact",
                    "signal"
                  ]
                },
                "source": {
                  "type": "string"
                },
                "ran": {
                  "type": "boolean"
                },
                "ok": {
                  "type": [
                    "boolean",
                    "null"
                  ],
                  "description": "null when the check did not run"
                }
              }
            }
          },
          "checked_at": {
            "type": "string",
            "format": "date-time"
          },
          "ttl_seconds": {
            "type": "integer",
            "description": "How long to rely on this decision before re-checking."
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "binding": {
            "type": "object",
            "description": "What this decision is about. payee and chain are echoed from the optional query params, not checked.",
            "properties": {
              "target": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "payee": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "chain": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "payee_checked": {
                "type": "boolean",
                "const": false
              },
              "note": {
                "type": "string"
              }
            }
          },
          "receipt_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The attestation_id of the attestation object in the same response."
          },
          "receipt_ref": {
            "type": [
              "string",
              "null"
            ]
          },
          "receipt_signed": {
            "type": "boolean",
            "description": "True when that attestation carries a signature."
          },
          "scope": {
            "type": "string"
          }
        }
      }
    }
  },
  "paths": {
    "/api/v1": {
      "get": {
        "tags": [
          "agent-to-agent"
        ],
        "summary": "A2A API discovery (FREE)",
        "security": [],
        "description": "Discovery document for the free agent-to-agent verification API.",
        "responses": {
          "200": {
            "$ref": "#/components/responses/Json"
          }
        }
      }
    },
    "/api/v1/authority": {
      "get": {
        "tags": [
          "agent-to-agent"
        ],
        "summary": "DYOE authority key(s) to pin (FREE)",
        "security": [],
        "description": "The DYOE authority key(s). Every credential's signature recovers to one of these — pin them to verify independently.",
        "responses": {
          "200": {
            "$ref": "#/components/responses/Json"
          }
        }
      }
    },
    "/api/v1/verification/{id}": {
      "get": {
        "tags": [
          "agent-to-agent"
        ],
        "summary": "Look up a verification by id (FREE)",
        "security": [],
        "description": "Look up a DYOE verification by its credential_id. Returns current status: active | expired | revoked | not_found.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Json"
          },
          "404": {
            "$ref": "#/components/responses/Json"
          }
        }
      }
    },
    "/api/v1/verify": {
      "get": {
        "tags": [
          "agent-to-agent"
        ],
        "summary": "Verify a credential artifact (FREE)",
        "security": [],
        "description": "Verify a DYOE credential another agent handed you — signature + freshness check, stateless. Returns valid + normalized status.",
        "parameters": [
          {
            "name": "c",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "base64url (or raw JSON) of the DYOE credential"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Json"
          }
        }
      }
    },
    "/approve": {
      "get": {
        "tags": [
          "trust",
          "rules-based",
          "governance",
          "approval",
          "safety",
          "guardian",
          "policy",
          "autonomous-actions"
        ],
        "summary": "Policy Guardian — instant approve/deny under human-set rules ($0.02)",
        "x-price-usd": 0.02,
        "description": "Use when an agent needs a yes or no on an action before it acts, without waiting for a person. INSTANT approve/deny for an agent action under DYOE’s human-set standing policy (24/7). Safe counterparty + amount within policy → approved; obvious scam → denied; over the policy line or a caution counterparty → escalates to /review for a real human sign-off. Returns a signed, verifiable DYOE Trust Receipt (human_review: policy). Params: action, counterparty (required), amount.",
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "What the agent wants to do",
            "example": "pay invoice"
          },
          {
            "name": "counterparty",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Domain or wallet on the other side (required)",
            "required": true,
            "example": "stripe.com"
          },
          {
            "name": "amount",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Amount in USD",
            "example": 500
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "decision": "approved",
                  "reasons": [
                    "within policy: safe counterparty, amount ≤ $100"
                  ],
                  "action": "pay invoice",
                  "counterparty": "https://stripe.com/",
                  "amount": 50,
                  "trust": {
                    "verdict": "safe",
                    "trust_score": 92,
                    "human_vouched": false,
                    "red_flags": []
                  },
                  "by": "DYOE Policy Guardian",
                  "receipt": {
                    "protocol": "dyoe-credential-v1",
                    "credential_id": "cred_<id>",
                    "type": "dyoe-trust-receipt/approval",
                    "subject": "https://stripe.com/",
                    "claims": {
                      "receipt_id": "rcpt_<id>",
                      "receipt_type": "APPROVAL",
                      "status": "ACTIVE",
                      "subject": "https://stripe.com/",
                      "requested_by": null,
                      "verdict": "approved",
                      "risk_level": "<from verdict>",
                      "trust_score": 92,
                      "evidence": [
                        "domain age 10950d"
                      ],
                      "human_review": "Policy (human-set rules)",
                      "reviewed_by": null,
                      "amount": 50,
                      "latency_ms": 1840,
                      "standard": "<DYOE standard id>",
                      "authority": {
                        "name": "<authority name>",
                        "id": "<authority id>"
                      }
                    },
                    "issued_at": "2026-11-04T15:00:00.000Z",
                    "expires_at": "<issued_at + validity>",
                    "authority": "0x<DYOE signing authority; see /authority>",
                    "signature": "0x<65-byte EIP-191 signature>"
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.02"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/audit": {
      "get": {
        "tags": [
          "trust",
          "audit",
          "due-diligence",
          "website-verification"
        ],
        "summary": "Full site audit ($0.05)",
        "x-price-usd": 0.05,
        "description": "Use when an agent needs a quick legitimacy and quality read on a website before relying on it. Trust + SEO + contactability audit of any site, scored 0-100 with a legitimacy verdict and prioritized fixes.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Website to audit",
            "example": "https://stripe.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "url": "https://stripe.com/",
                  "fetched_status": 200,
                  "response_ms": 420,
                  "page_bytes": 512000,
                  "score": 92,
                  "grade": "A",
                  "legitimacy": "strong",
                  "trust_flags": [],
                  "business": {
                    "title": "Stripe | Financial Infrastructure to Grow Your Revenue",
                    "tagline": "Stripe is a financial infrastructure platform for businesses.",
                    "contact": {
                      "email": null,
                      "phone": null,
                      "has_contact_page": true
                    },
                    "socials": [
                      "twitter",
                      "linkedin"
                    ]
                  },
                  "seo": {
                    "has_title": true,
                    "has_meta_description": true,
                    "has_h1": true,
                    "mobile_friendly": true,
                    "structured_data": true,
                    "open_graph": true
                  },
                  "checks": [
                    {
                      "...": "one entry per check: pass, weight, fix"
                    }
                  ],
                  "top_fixes": [],
                  "audited_by": "DYOE Way — dyoeway.org",
                  "note": "Automated micro-audit. For the full human-led DYOE AI Audit, see dyoeway.org."
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/contacts": {
      "get": {
        "tags": [
          "extraction",
          "contacts",
          "research"
        ],
        "summary": "Extract emails, phones & socials from a site ($0.01)",
        "x-price-usd": 0.01,
        "description": "Use when an agent needs an email lookup or phone lookup for a business website. Extract emails, phone numbers, and social links from any website — lead enrichment for agents. Input: ?url=",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Site to pull emails/phones/socials from",
            "example": "https://stripe.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Contacts found (the payment settles only on this 200). Example captured from a real run on DYOE's own domain.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "url": "https://dyoeway.org/accessibility",
                  "emails": [
                    "info@dyoeway.org"
                  ],
                  "phones": [],
                  "socials": {},
                  "by": "DYOE Agent Tools"
                }
              }
            }
          },
          "400": {
            "description": "Missing, invalid or private URL. Not charged."
          },
          "402": {
            "description": "Payment Required"
          },
          "404": {
            "description": "No verified email or phone found on the site (found:false, charged:false). Not charged: the payment is not settled."
          },
          "422": {
            "description": "The site blocked the request, timed out or was unreachable (found:false, charged:false). Not charged."
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/credential/agent": {
      "get": {
        "tags": [
          "credentials",
          "agent-to-agent"
        ],
        "summary": "Verified Agent credential (FREE)",
        "security": [],
        "description": "An agent proves it controls a wallet (signs a challenge) and DYOE issues a signed identity credential. Cryptographic key-control proof.",
        "parameters": [
          {
            "name": "wallet",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ts",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ms epoch, within 5 min"
          },
          {
            "name": "signature",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "personal_sign of `DYOE agent identity: <wallet> @ <ts>`"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Json"
          }
        }
      }
    },
    "/credential/org": {
      "get": {
        "tags": [
          "credentials",
          "verification",
          "organization",
          "identity"
        ],
        "summary": "Verified Organization credential ($0.10)",
        "x-price-usd": 0.1,
        "description": "Use when an agent or business needs portable proof that a domain passed a trust check. Runs a trust check on a business domain and issues a DYOE-signed, verifiable Organization credential {verdict, trust_score, domain_age}.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Business domain to issue a credential for",
            "example": "stripe.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "subject": "https://stripe.com/",
                  "verdict": "safe",
                  "credential": {
                    "protocol": "dyoe-credential-v1",
                    "credential_id": "cred_<id>",
                    "type": "organization",
                    "subject": "https://stripe.com/",
                    "claims": {
                      "verdict": "safe",
                      "trust_score": 92,
                      "domain_age_days": 10950,
                      "human_vouched": false
                    },
                    "issued_at": "2026-11-04T15:00:00.000Z",
                    "expires_at": "2026-11-11T15:00:00.000Z",
                    "authority": "0x<DYOE signing authority; see /authority>",
                    "signature": "0x<65-byte EIP-191 signature>"
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.10"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/crypto": {
      "get": {
        "tags": [
          "data",
          "crypto",
          "market-data",
          "price"
        ],
        "summary": "Crypto price ($0.01)",
        "x-price-usd": 0.01,
        "description": "Use when a trading agent needs the current price of a coin. Live crypto price + 24h change, market cap & volume for any coin.",
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Coin symbol, e.g. btc",
            "example": "btc"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "id": "bitcoin",
                  "symbol": "btc",
                  "price_usd": 68000,
                  "change_24h_pct": 1.2,
                  "market_cap_usd": 1340000000000,
                  "volume_24h_usd": 32000000000,
                  "by": "DYOE Market Intelligence",
                  "related": [
                    {
                      "tool": "/verify",
                      "price": "$0.01",
                      "use": "vet a domain/counterparty before you trust or pay it",
                      "example": "/verify?target=merchant.com",
                      "returns": "safe|caution|avoid + trust_score + red_flags"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/destination": {
      "get": {
        "tags": [
          "travel",
          "trip-planning",
          "weather",
          "currency",
          "booking-safety"
        ],
        "summary": "Trip-planning bundle ($0.05)",
        "x-price-usd": 0.05,
        "description": "Use when a trip-planning agent is about to book. Everything a travel/trip-planning agent needs before it books, in ONE call: weather + 3-day forecast for the city, local currency + live FX from USD, AND is-the-booking-site-safe (scam check on the hotel/OTA/tour domain before the agent pays). Travel data and a booking-site trust check in one call.",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Destination city",
            "example": "Lisbon"
          },
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Trip date (echoed; live forecast covers ~3 days)",
            "example": "2026-09-15"
          },
          {
            "name": "currency",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Destination currency, e.g. EUR",
            "example": "EUR"
          },
          {
            "name": "booking",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Booking/hotel/OTA domain to safety-check",
            "example": "booking.com"
          },
          {
            "name": "budget",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Trip budget in USD, for FX conversion",
            "example": 1500
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "destination": "Lisbon, Lisbon",
                  "date": "2026-09-15",
                  "weather": {
                    "location": "Lisbon, Lisbon",
                    "current_temp_f": 71.6,
                    "forecast_3day": [
                      {
                        "date": "2026-09-15",
                        "high_f": 79,
                        "low_f": 63.5
                      }
                    ]
                  },
                  "currency": {
                    "code": "EUR",
                    "usd_rate": 0.92,
                    "budget_converted": 1380
                  },
                  "booking_safety": {
                    "site": "https://www.booking.com/",
                    "safe_to_book": true,
                    "verdict": "safe",
                    "trust_score": 88,
                    "human_vouched": false,
                    "red_flags": []
                  },
                  "trip_readiness": [
                    "Weather in Lisbon, Lisbon: currently 71.6°F.",
                    "1 USD = 0.92 EUR — budget 1500 USD ≈ 1380 EUR.",
                    "Booking site looks safe to pay (safe)."
                  ],
                  "by": "DYOE Destination Intelligence"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/extract": {
      "get": {
        "tags": [
          "data",
          "extraction",
          "web"
        ],
        "summary": "Extract page text ($0.01)",
        "x-price-usd": 0.01,
        "description": "Use when a research or summarizing agent needs the readable text of a web page. Extract clean main text content from any web page (no nav/ads).",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Page to extract clean text from",
            "example": "https://stripe.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "url": "https://stripe.com/",
                  "title": "Stripe | Financial Infrastructure to Grow Your Revenue",
                  "word_count": 1840,
                  "text": "Financial infrastructure to grow your revenue. Accept payments, offer financial services…",
                  "by": "DYOE Agent Tools"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/fx": {
      "get": {
        "tags": [
          "data",
          "currency",
          "fx"
        ],
        "summary": "Currency conversion ($0.01)",
        "x-price-usd": 0.01,
        "description": "Use when an agent needs to convert an amount between currencies. Currency conversion + live exchange rate (ECB data).",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Source currency code",
            "required": true,
            "example": "USD"
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Target currency code",
            "required": true,
            "example": "EUR"
          },
          {
            "name": "amount",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Amount to convert",
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "from": "USD",
                  "to": "EUR",
                  "rate": 0.92,
                  "date": "2026-11-03",
                  "by": "DYOE Market Data",
                  "amount": 100,
                  "converted": 92,
                  "next": {
                    "verify_site": "https://agents.dyoeway.org/verify?target=<domain> — $0.01, is this counterparty safe before you transact"
                  },
                  "related": [
                    {
                      "tool": "/verify",
                      "price": "$0.01"
                    },
                    {
                      "tool": "/wallet",
                      "price": "$0.05"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/intel": {
      "get": {
        "tags": [
          "trust",
          "due-diligence",
          "research",
          "background-check"
        ],
        "summary": "Due-diligence dossier ($0.10)",
        "x-price-usd": 0.1,
        "description": "Use when an agent needs a background check on a company or website before dealing with it. Full due-diligence dossier on any company or website in one call: what they do, legitimacy + trust verdict, domain age, contactability, social presence, scam red flags. Basis (no black box): RDAP domain-age, HTTPS + reachability, on-page content & contact signals, and the DYOE human-vouch registry — every signal is disclosed and independently checkable.",
        "parameters": [
          {
            "name": "target",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Company or website for a deep dossier",
            "example": "stripe.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "target": "https://stripe.com/",
                  "headline": "Stripe | Financial Infrastructure to Grow Your Revenue — SAFE (trust 92/100)",
                  "summary": "Stripe is a financial infrastructure platform for businesses…",
                  "key_findings": [
                    "Appears legitimate.",
                    "Domain is ~30 years old.",
                    "Reachable (contact info found).",
                    "Social presence: twitter, linkedin."
                  ],
                  "identity": {
                    "name": "Stripe | Financial Infrastructure to Grow Your Revenue",
                    "tagline": "Stripe is a financial infrastructure platform for businesses."
                  },
                  "trust": {
                    "verdict": "safe",
                    "score": 92,
                    "legitimacy": "strong",
                    "domain_age_days": 10950,
                    "human_vouched": false,
                    "red_flags": []
                  },
                  "contact": {
                    "email": null,
                    "phone": null,
                    "contact_page": true,
                    "socials": [
                      "twitter",
                      "linkedin"
                    ]
                  },
                  "web_presence": {
                    "has_title": true,
                    "has_meta_description": true,
                    "has_h1": true,
                    "mobile_friendly": true,
                    "structured_data": true,
                    "open_graph": true
                  },
                  "by": "DYOE Intelligence Agent"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.10"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/market": {
      "get": {
        "tags": [
          "crypto",
          "market-data",
          "trading"
        ],
        "summary": "Global crypto market overview ($0.01)",
        "x-price-usd": 0.01,
        "description": "Use when an agent needs the state of the whole crypto market. Global crypto market overview — total market cap, 24h change, BTC/ETH dominance. Input: (none)",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "total_market_cap_usd": 2400000000000,
                  "total_volume_24h_usd": 95000000000,
                  "market_cap_change_24h_pct": 0.8,
                  "btc_dominance_pct": 56.1,
                  "eth_dominance_pct": 12.4,
                  "active_cryptocurrencies": 17000,
                  "by": "DYOE Market Intelligence"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/merchant": {
      "get": {
        "tags": [
          "trust",
          "commerce",
          "merchant-check",
          "shopping"
        ],
        "summary": "Merchant safety check ($0.05)",
        "x-price-usd": 0.05,
        "description": "Use when a shopping agent must verify seller trust before paying an online store. Is this online store safe to buy from? Scam/fraud check + trust verdict + store signals (checkout, returns, payment methods) for shopping agents before they pay.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Store URL to check before buying",
            "example": "https://shopify.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "url": "https://www.shopify.com/",
                  "safe_to_buy": true,
                  "verdict": "safe",
                  "trust_score": 90,
                  "human_vouched": false,
                  "domain_age_days": 7300,
                  "red_flags": [],
                  "store": {
                    "has_cart": true,
                    "has_returns": true,
                    "has_product_schema": false,
                    "payment_methods": [
                      "visa",
                      "mastercard",
                      "paypal",
                      "shop pay"
                    ]
                  },
                  "by": "DYOE Merchant Check"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/metadata": {
      "get": {
        "tags": [
          "extraction",
          "metadata",
          "research"
        ],
        "summary": "Read a page's title, description & OG image ($0.01)",
        "x-price-usd": 0.01,
        "description": "Use when an agent needs a link preview or a quick read of what a URL is. Extract title, description, OpenGraph image, favicon & canonical from any URL — link previews & summaries. Input: ?url=",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Page to read title/description/OG image from",
            "example": "https://stripe.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "url": "https://stripe.com/",
                  "title": "Stripe | Financial Infrastructure to Grow Your Revenue",
                  "description": "Stripe is a financial infrastructure platform for businesses.",
                  "canonical": "https://stripe.com/",
                  "lang": "en-US",
                  "image": "https://images.stripeassets.com/<og-image>.png",
                  "site_name": "Stripe",
                  "og_title": "Stripe | Financial Infrastructure to Grow Your Revenue",
                  "og_type": "website",
                  "favicon": "/favicon.ico",
                  "by": "DYOE Agent Tools"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/movers": {
      "get": {
        "tags": [
          "crypto",
          "market-data",
          "trading"
        ],
        "summary": "Top 24h gainers & losers ($0.01)",
        "x-price-usd": 0.01,
        "description": "Use when a trading agent wants the day's biggest moves. Top gainers & losers (24h) across the top 100 coins — for trading agents. Input: (none)",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "gainers": [
                    {
                      "symbol": "sol",
                      "name": "Solana",
                      "price_usd": 165.2,
                      "change_24h_pct": 7.4
                    }
                  ],
                  "losers": [
                    {
                      "symbol": "doge",
                      "name": "Dogecoin",
                      "price_usd": 0.15,
                      "change_24h_pct": -5.1
                    }
                  ],
                  "by": "DYOE Market Intelligence"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/r/{id}": {
      "get": {
        "summary": "Resolve a Trust Receipt",
        "description": "Public lookup — returns the verbatim signed DYOE Trust Receipt for a receipt id, so anyone can verify it by recovering the signature to the DYOE Authority.",
        "security": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "trust-receipt",
          "verification",
          "lookup"
        ],
        "responses": {
          "200": {
            "description": "signed receipt"
          }
        }
      }
    },
    "/reputation": {
      "get": {
        "tags": [
          "trust",
          "reputation",
          "track-record"
        ],
        "summary": "Reputation / track record ($0.05)",
        "x-price-usd": 0.05,
        "description": "Use when an agent wants a counterparty's track record, not just a fresh check. The historical track record for any domain or wallet — assessment count, verdict history, times flagged, first/last seen, a reputation score, and a signed reputation credential. A credit score for counterparties. Basis (transparent): computed only from DYOE’s own logged prior assessments — each verdict is a real past trust-check; thin history is labeled.",
        "parameters": [
          {
            "name": "target",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Domain or wallet to look up history for",
            "example": "stripe.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "subject": "stripe.com",
                  "total_checks": 12,
                  "first_seen": "2026-08-02T14:11:09.000Z",
                  "last_seen": "2026-11-03T21:40:52.000Z",
                  "verdicts": {
                    "safe": 12,
                    "caution": 0,
                    "avoid": 0
                  },
                  "times_flagged": 0,
                  "ever_human_vouched": false,
                  "avg_trust_score": 91,
                  "reputation_score": 95,
                  "reputation": "established_clean",
                  "by": "DYOE Reputation",
                  "credential": {
                    "protocol": "dyoe-credential-v1",
                    "credential_id": "cred_<id>",
                    "type": "reputation",
                    "subject": "stripe.com",
                    "claims": {
                      "...": "the fields above"
                    },
                    "issued_at": "2026-11-04T15:00:00.000Z",
                    "expires_at": "2026-11-05T15:00:00.000Z",
                    "authority": "0x<DYOE signing authority; see /authority>",
                    "signature": "0x<65-byte EIP-191 signature>"
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/review": {
      "get": {
        "tags": [
          "guardian",
          "human-in-the-loop",
          "human-review",
          "sign-off",
          "trust",
          "accountability"
        ],
        "summary": "Human Sign-Off — a real person reviews and signs ($15.00)",
        "x-price-usd": 15,
        "description": "Use when the stakes are high enough that a named human should sign off before an agent acts. A REAL person reviews the action against a checklist and signs. Obvious scams auto-deny; otherwise a human decides and the agent polls /api/task?id=<id> until a signed DYOE Trust Receipt is issued (human_review: live, named reviewer). Accountability a person stands behind. Params: action, counterparty (required), amount.",
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "What a named human should review and sign off on",
            "example": "approve vendor contract"
          },
          {
            "name": "counterparty",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Domain or wallet on the other side",
            "required": true,
            "example": "stripe.com"
          },
          {
            "name": "amount",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Amount in USD",
            "example": 2500
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "action": "approve vendor contract",
                  "counterparty": "https://stripe.com/",
                  "amount": 2500,
                  "by": "DYOE Human Sign-Off",
                  "email_status": 200,
                  "decision": "pending_human",
                  "task_id": "tk_8d2k4m1q",
                  "status_url": "https://agents.dyoeway.org/api/task?id=tk_8d2k4m1q",
                  "note": "A human reviewer was notified. Poll status_url until a human decision is signed."
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "15.00"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/token": {
      "get": {
        "tags": [
          "data",
          "trust",
          "crypto",
          "market-data",
          "token",
          "rug-check"
        ],
        "summary": "Trust-vetted token intelligence ($0.05)",
        "x-price-usd": 0.05,
        "description": "Use when a trading agent needs a coin's market data and a read on the project behind it. Price + market data PLUS a scam/rug-risk read on the project behind the coin. Market data and a trust check in one call.",
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Token symbol, e.g. btc",
            "example": "btc"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "symbol": "btc",
                  "name": "Bitcoin",
                  "price_usd": 68000,
                  "change_24h_pct": 1.2,
                  "market_cap_usd": 1340000000000,
                  "market_cap_rank": 1,
                  "project_site": "http://www.bitcoin.org",
                  "project_risk": "low",
                  "trust": {
                    "verdict": "safe",
                    "domain_age_days": 6600,
                    "red_flags": []
                  },
                  "by": "DYOE Trust-Vetted Market Intelligence"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/transaction": {
      "get": {
        "tags": [
          "trust",
          "kya",
          "payment-safety",
          "counterparty",
          "security"
        ],
        "summary": "Know Your Agent — pay-safely pre-flight ($0.10)",
        "x-price-usd": 0.1,
        "description": "Use when an agent needs a payment preflight: check before sending money to a merchant or wallet. Check before you pay: one pre-flight call before an agent sends money. Is the counterparty site legit, is the payee wallet sanctioned or disposable, is the amount within policy? Returns proceed/caution/stop, reasons, and a signed attestation: one go/no-go instead of three calls. Input: ?domain=merchant.com&wallet=0x...&amount=500",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Merchant/counterparty domain, e.g. merchant.com",
            "example": "shopify.com"
          },
          {
            "name": "wallet",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Payee wallet address, e.g. 0x...",
            "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Amount in USD being considered",
            "example": 500
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "decision": "caution",
                  "recommendation": "Amount $500 is over the $100 policy line — route to /review for a human sign-off before paying.",
                  "amount": 500,
                  "policy_line": 100,
                  "domain": {
                    "target": "https://www.shopify.com/",
                    "verdict": "safe",
                    "trust_score": 90,
                    "domain_age_days": 7300,
                    "red_flags": [],
                    "human_vouch": false
                  },
                  "wallet": {
                    "target": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                    "verdict": "safe",
                    "sanctioned": false,
                    "on_chain": {
                      "tx_count": 1450,
                      "balance_eth": 3.2,
                      "is_contract": false
                    },
                    "red_flags": [],
                    "human_vouch": false
                  },
                  "reasons": [
                    "amount over $100 policy line"
                  ],
                  "basis": "Combined DYOE domain trust (RDAP age + reachability + content signals) and wallet trust (OFAC sanctions + on-chain footprint), weighed against the human-set policy line. Route caution/over-line payments to /review for a human sign-off.",
                  "by": "DYOE Know Your Agent",
                  "attestation": {
                    "protocol": "dyoe-attestation-v1",
                    "attestation_id": "att_3f9c2a71d04be85a6c1d",
                    "target": "shopify.com",
                    "verdict": "caution",
                    "evidence": [
                      "decision=caution",
                      "domain=https://www.shopify.com/:safe",
                      "wallet=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045:safe",
                      "amount=500"
                    ],
                    "confidence": 0.95,
                    "issued_at": "2026-11-04T15:00:00.000Z",
                    "expires_at": "2026-11-05T15:00:00.000Z",
                    "authority": "0x<DYOE signing authority; see /authority>",
                    "signature": "0x<65-byte EIP-191 signature>",
                    "verify": "https://agents.dyoeway.org/authority"
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.10"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/trending": {
      "get": {
        "tags": [
          "crypto",
          "market-data",
          "trading"
        ],
        "summary": "Coins trending right now ($0.01)",
        "x-price-usd": 0.01,
        "description": "Use when a trading or research agent wants to know which coins are getting attention right now. The coins trending right now — for trading & research agents. Input: (none)",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "trending": [
                    {
                      "id": "bitcoin",
                      "symbol": "BTC",
                      "name": "Bitcoin",
                      "market_cap_rank": 1
                    },
                    {
                      "id": "solana",
                      "symbol": "SOL",
                      "name": "Solana",
                      "market_cap_rank": 5
                    }
                  ],
                  "by": "DYOE Market Intelligence"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/verify": {
      "get": {
        "tags": [
          "trust",
          "verification",
          "scam-detection",
          "counterparty",
          "security"
        ],
        "summary": "Trust check ($0.01)",
        "x-price-usd": 0.01,
        "description": "Use when an agent is about to trust or pay a new website, merchant or counterparty: a trust check before payment. Check before you pay: is this website or business a scam? Run it before an agent trusts or pays a new counterparty. Fraud, phishing and rug-risk screen of a domain or URL. Returns verdict (safe/caution/avoid), trust_score, domain age, red_flags. Proceed on safe, pause on caution, stop on avoid. Includes a signed attestation verifiable against /authority. Input: ?target=domain",
        "parameters": [
          {
            "name": "target",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Domain, URL or wallet",
            "example": "stripe.com"
          },
          {
            "name": "payee",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 128
            },
            "description": "Optional. Payee address to echo in decision.binding for your audit trail. Not checked; use /wallet to screen it.",
            "example": "0x834b189A1c087d0af169A905454979952F59e8AC"
          },
          {
            "name": "chain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 128
            },
            "description": "Optional. Chain name to echo in decision.binding (e.g. base). Not checked.",
            "example": "base"
          }
        ],
        "responses": {
          "200": {
            "description": "Trust check result. Every pre-existing field is unchanged; `decision` is additive.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "target",
                    "verdict",
                    "trust_score"
                  ],
                  "properties": {
                    "target": {
                      "type": "string"
                    },
                    "verdict": {
                      "type": "string",
                      "enum": [
                        "safe",
                        "caution",
                        "avoid"
                      ]
                    },
                    "trust_score": {
                      "type": "number"
                    },
                    "real": {
                      "type": "boolean"
                    },
                    "reachable": {
                      "type": "boolean"
                    },
                    "https": {
                      "type": "boolean"
                    },
                    "legitimacy": {
                      "type": "string"
                    },
                    "domain_age_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "is_x402_service": {
                      "type": "boolean"
                    },
                    "red_flags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "contactable": {
                      "type": "boolean"
                    },
                    "title": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "human_vouch": {
                      "type": "boolean"
                    },
                    "by": {
                      "type": "string"
                    },
                    "attestation": {
                      "type": "object",
                      "description": "dyoe-attestation-v1, EIP-191 signed; verify against /authority."
                    },
                    "decision": {
                      "$ref": "#/components/schemas/VerifyDecision"
                    }
                  }
                },
                "example": {
                  "target": "https://stripe.com/",
                  "verdict": "safe",
                  "trust_score": 100,
                  "real": true,
                  "reachable": true,
                  "https": true,
                  "legitimacy": "strong",
                  "domain_age_days": 11376,
                  "is_x402_service": false,
                  "red_flags": [],
                  "contactable": true,
                  "title": "Stripe | Financial Infrastructure to Grow Your Revenue",
                  "human_vouch": false,
                  "by": "DYOE Trust Check",
                  "attestation": {
                    "protocol": "dyoe-attestation-v1",
                    "attestation_id": "att_734473eb6621c3ba08cb",
                    "target": "https://stripe.com/",
                    "verdict": "safe",
                    "trust_score": 100,
                    "evidence": [
                      "domain_age_days=11376",
                      "https=true",
                      "reachable=true"
                    ],
                    "confidence": 0.95,
                    "issued_at": "2026-11-04T15:26:12.319Z",
                    "expires_at": "2026-11-04T16:26:12.319Z",
                    "authority": null,
                    "signature": null,
                    "verify": "Recover EIP-191 personal_sign of the CANONICAL JSON (keys sorted recursively) of this object minus {authority,signature,verify}; signer must equal `authority`. Reject if now > expires_at."
                  },
                  "decision": {
                    "schema_version": "dyoe-verify-decision/1",
                    "verdict": "allow",
                    "mapped_from": "safe",
                    "reason_codes": [
                      "HTTPS_OK",
                      "DOMAIN_AGE_OVER_3Y"
                    ],
                    "confidence": 0.95,
                    "facts": {
                      "reachable": true,
                      "https": true,
                      "domain_age_days": 11376,
                      "is_x402_service": false,
                      "human_vouch": false
                    },
                    "signals": {
                      "trust_score": 100,
                      "legitimacy": "strong",
                      "heuristic_flags": [],
                      "note": "Heuristics are probabilistic hints, not findings."
                    },
                    "provenance": [
                      {
                        "check": "reachability",
                        "kind": "fact",
                        "source": "HTTPS probe: GET of the target (SSRF-guarded, redirects re-validated, one retry)",
                        "ran": true,
                        "ok": true
                      },
                      {
                        "check": "https",
                        "kind": "fact",
                        "source": "HTTPS probe: scheme of the final URL after redirects",
                        "ran": true,
                        "ok": true
                      },
                      {
                        "check": "domain_age",
                        "kind": "fact",
                        "source": "RDAP via rdap.org (registry registration event)",
                        "ran": true,
                        "ok": true
                      },
                      {
                        "check": "x402_manifest",
                        "kind": "fact",
                        "source": "GET <origin>/.well-known/x402.json",
                        "ran": true,
                        "ok": false
                      },
                      {
                        "check": "human_vouch",
                        "kind": "fact",
                        "source": "DYOE curated human-vouch registry",
                        "ran": true,
                        "ok": false
                      },
                      {
                        "check": "page_heuristics",
                        "kind": "signal",
                        "source": "DYOE page-content heuristics (title, contact info, status code)",
                        "ran": true,
                        "ok": true
                      }
                    ],
                    "checked_at": "2026-11-04T15:26:12.319Z",
                    "ttl_seconds": 3600,
                    "expires_at": "2026-11-04T16:26:12.319Z",
                    "binding": {
                      "target": "https://stripe.com/",
                      "payee": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                      "chain": "base",
                      "payee_checked": false,
                      "note": "payee and chain are echoed from optional query params for your audit trail. /verify does not check them; use /wallet to screen a payee address."
                    },
                    "receipt_id": "att_734473eb6621c3ba08cb",
                    "receipt_ref": "attestation",
                    "receipt_signed": false,
                    "scope": "Screens the counterparty's domain only. It does not inspect, guarantee or insure any payment, and a deny or allow is not a fraud finding."
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/wallet": {
      "get": {
        "tags": [
          "trust",
          "wallet",
          "sanctions",
          "ofac",
          "security"
        ],
        "summary": "Wallet check — OFAC + on-chain screen ($0.05)",
        "x-price-usd": 0.05,
        "description": "Use when an agent needs a wallet risk check before sending funds to a crypto address. DYOE Wallet Check — is this CRYPTO WALLET safe to pay? Before your agent sends funds to an address, screen it: AUTHORITATIVE OFAC sanctions check (never pay a sanctioned wallet) + on-chain footprint (empty/disposable-address red flag) + human-vouch overlay. Returns verdict (safe/caution/avoid), sanctioned flag, on-chain activity & red_flags. Counterparty trust for the address itself — the payment-safety layer for the agent economy. Input: ?address=0x...",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Wallet address to screen (OFAC + on-chain)",
            "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "target": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                  "chain": "base",
                  "verdict": "safe",
                  "sanctioned": false,
                  "sanctions_screened": true,
                  "on_chain": {
                    "tx_count": 1450,
                    "balance_eth": 3.2,
                    "is_contract": false
                  },
                  "red_flags": [],
                  "human_vouch": false,
                  "basis": "OFAC sanctions screen (authoritative) + on-chain activity via public RPC. Not exact wallet age or full community-scam databases — upsell /intel for deeper screening.",
                  "real": true,
                  "by": "DYOE Wallet Check",
                  "attestation": {
                    "protocol": "dyoe-attestation-v1",
                    "attestation_id": "att_3f9c2a71d04be85a6c1d",
                    "target": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                    "verdict": "safe",
                    "trust_score": null,
                    "evidence": [
                      "sanctioned=false",
                      "sanctions_screened=true",
                      "tx_count=1450",
                      "is_contract=false"
                    ],
                    "confidence": 0.95,
                    "issued_at": "2026-11-04T15:00:00.000Z",
                    "expires_at": "2026-11-05T15:00:00.000Z",
                    "authority": "0x<DYOE signing authority; see /authority>",
                    "signature": "0x<65-byte EIP-191 signature>",
                    "verify": "https://agents.dyoeway.org/authority"
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/weather": {
      "get": {
        "tags": [
          "data",
          "travel",
          "weather"
        ],
        "summary": "Weather + 3-day forecast ($0.01)",
        "x-price-usd": 0.01,
        "description": "Use when a travel or planning agent needs the weather in a city. Current conditions + 3-day forecast for any city — for travel & planning agents.",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "City name",
            "example": "Atlanta"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "location": "Atlanta, Georgia",
                  "latitude": 33.749,
                  "longitude": -84.388,
                  "current": {
                    "temp_f": 64.2,
                    "humidity_pct": 58,
                    "wind_mph": 6.1,
                    "weather_code": 2
                  },
                  "forecast_3day": [
                    {
                      "date": "2026-11-04",
                      "high_f": 70.1,
                      "low_f": 51.3
                    },
                    {
                      "date": "2026-11-05",
                      "high_f": 68.4,
                      "low_f": 49.8
                    },
                    {
                      "date": "2026-11-06",
                      "high_f": 66,
                      "low_f": 48.2
                    }
                  ],
                  "by": "DYOE Data",
                  "related": [
                    {
                      "tool": "/verify",
                      "price": "$0.01"
                    },
                    {
                      "tool": "/wallet",
                      "price": "$0.05"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/wiki": {
      "get": {
        "tags": [
          "research",
          "reference"
        ],
        "summary": "Factual topic summary from Wikipedia ($0.01)",
        "x-price-usd": 0.01,
        "description": "Use when a research agent needs a short factual summary of a topic. Factual summary of any topic from Wikipedia — for research agents. Input: ?topic=Bitcoin",
        "parameters": [
          {
            "name": "topic",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Topic to summarise",
            "example": "Bitcoin"
          }
        ],
        "responses": {
          "200": {
            "description": "Result. Illustrative example: the shape and field names match this handler's real output; values are not a live result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "title": "Bitcoin",
                  "description": "Decentralized digital currency",
                  "summary": "Bitcoin is the first decentralized cryptocurrency…",
                  "url": "https://en.wikipedia.org/wiki/Bitcoin",
                  "thumbnail": null,
                  "by": "DYOE Research"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/xrpl/approve": {
      "get": {
        "summary": "Policy Guardian — pay in XRP",
        "description": "Same Policy Guardian as /approve, payable in XRP. Instant approve/deny under human-set rules; escalates to human /review over the policy line.",
        "security": [],
        "tags": [
          "guardian",
          "approve",
          "xrp",
          "xrpl",
          "ripple",
          "policy"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "XRP",
            "amount": "4"
          },
          "protocols": [
            {
              "x402": {
                "network": "xrpl:0"
              }
            }
          ]
        },
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "required": false,
            "description": "The action the agent wants to take, e.g. pay invoice",
            "schema": {
              "type": "string",
              "example": "pay invoice"
            }
          },
          {
            "name": "counterparty",
            "in": "query",
            "required": false,
            "description": "Counterparty domain to trust-check before approving",
            "schema": {
              "type": "string",
              "example": "stripe.com"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "description": "Amount at stake in USD; over the policy line escalates to /review",
            "schema": {
              "type": "number",
              "example": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "result + signed receipt"
          },
          "402": {
            "description": "XRP payment required"
          }
        },
        "requestBody": {
          "required": false,
          "description": "Same inputs as the query parameters (the endpoint reads them from the GET query string); provided as a JSON schema for x402 indexers.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "description": "The action the agent wants to take",
                    "example": "pay invoice"
                  },
                  "counterparty": {
                    "type": "string",
                    "description": "Counterparty domain to trust-check before approving",
                    "example": "stripe.com"
                  },
                  "amount": {
                    "type": "number",
                    "description": "Amount at stake in USD",
                    "example": 50
                  }
                }
              }
            }
          }
        }
      }
    },
    "/xrpl/verify": {
      "get": {
        "summary": "Trust check — pay in XRP",
        "description": "Same DYOE trust check as /verify, payable in XRP on the XRP Ledger (xrpl:0, t54 facilitator). Returns verdict + trust score + a signed DYOE Trust Receipt.",
        "security": [],
        "tags": [
          "trust",
          "verify",
          "xrp",
          "xrpl",
          "ripple",
          "scam-detection"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "XRP",
            "amount": "0.02"
          },
          "protocols": [
            {
              "x402": {
                "network": "xrpl:0"
              }
            }
          ]
        },
        "parameters": [
          {
            "name": "target",
            "in": "query",
            "required": true,
            "description": "Domain or URL to trust-check",
            "schema": {
              "type": "string",
              "example": "stripe.com"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "result + signed receipt"
          },
          "402": {
            "description": "XRP payment required"
          }
        },
        "requestBody": {
          "required": true,
          "description": "Same inputs as the query parameters (the endpoint reads them from the GET query string); provided as a JSON schema for x402 indexers.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "target"
                ],
                "properties": {
                  "target": {
                    "type": "string",
                    "description": "Domain or URL to trust-check",
                    "example": "stripe.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/x402-check": {
      "get": {
        "tags": [
          "x402",
          "seller-tools",
          "validation",
          "monitoring"
        ],
        "summary": "x402 endpoint check-up, unpaid buyer-side test ($0.05)",
        "x-price-usd": 0.05,
        "description": "Use when a seller wants to test their own x402 endpoint the way buyers and indexers see it: test unpaid 402, terms parse, payTo valid, price within the $0.10 default client cap, v1 body and v2 PAYMENT-REQUIRED header, description under 500 characters, input schema present, response time. Returns pass/warn/fail, each check, and a fix list. Bad or private URL: 400, unreachable: 422; neither is charged. Input: ?url=https://seller/paid-path&method=GET|POST",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The x402 endpoint to check, with any query it needs",
            "example": "https://agents.dyoeway.org/verify?target=stripe.com"
          },
          {
            "name": "method",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "GET",
                "POST"
              ]
            },
            "description": "GET (default) or POST",
            "example": "GET"
          }
        ],
        "responses": {
          "200": {
            "description": "Check-up result (payment settles only on this 200). Example shape from a passing unpaid probe.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "url": "https://agents.dyoeway.org/verify?target=stripe.com",
                  "method": "GET",
                  "ms": 180,
                  "verdict": "pass",
                  "passed": 8,
                  "total": 8,
                  "checks": [
                    {
                      "check": "returns_402_unpaid",
                      "passed": true,
                      "severity": "required",
                      "detail": "HTTP 402 to an unpaid GET"
                    }
                  ],
                  "fixes": [],
                  "by": "DYOE Agent Tools"
                }
              }
            }
          },
          "400": {
            "description": "Bad or private URL (not charged)"
          },
          "402": {
            "description": "Payment Required"
          },
          "422": {
            "description": "Endpoint unreachable (not charged)"
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        }
      }
    }
  }
}
