{"openapi":"3.1.0","info":{"title":"Majmu Domain Security","version":"1.1.0","description":"Email-security and DNS checks for AI agents. A single domain check is $0.02. A bulk report of up to 25 domains is $2.50. Without an API key, each IP address gets 20 calls per UTC day. The next call returns HTTP 402 with x402 payment requirements (body \"accepts\" for v1, \"PAYMENT-REQUIRED\" header for v2). Pay with an EIP-3009 USDC authorization on Base in \"PAYMENT-SIGNATURE\" (v2) or \"X-PAYMENT\" (v1); it is verified and settled before the response, which carries a \"PAYMENT-RESPONSE\" receipt. A paid call skips the free tier. Protection score: pass awards the full weight, warn awards half the weight rounded down, and fail awards 0. DNS answers come from Cloudflare DNS-over-HTTPS, with Google as the fallback. The certificate is read from the domain on port 443."},"servers":[{"url":"https://domain.majmu.xyz"}],"x-payment":{"accepted":true,"protocol":"x402","x402Versions":[1,2],"scheme":"exact","network":"base","networkCaip2":"eip155:8453","chainId":8453,"payTo":"0xe331E85A45790CFd949208fEdd78b530fc45C6EE","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","assetSymbol":"USDC","facilitator":"https://facilitator.payai.network","headers":{"request":["PAYMENT-SIGNATURE","X-PAYMENT"],"required":"PAYMENT-REQUIRED","response":["PAYMENT-RESPONSE","X-PAYMENT-RESPONSE"]},"note":"Pay per call with x402: request without a key, read the 402 requirements, sign an EIP-3009 USDC authorization for the exact amount, and resend with PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1). The payment is verified and settled on Base before the response is released. A paid call skips the free tier."},"x-dns-guard-pricing":{"currency":"USD","singleDomainCheckUsd":0.02,"bulkReportUsd":2.5,"bulkMaxDomains":25,"freeDailyLimit":20},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"},"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key"}}},"security":[{"bearer":[]},{"apiKey":[]},{}],"paths":{"/api/health":{"get":{"operationId":"health","summary":"Service health, pricing, and the score rule.","responses":{"200":{"description":"The service is up."}}}},"/api/check/{domain}":{"get":{"operationId":"checkDomain","summary":"Check one domain ($0.02).","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"description":"Public hostname, such as google.com."},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","csv"]},"description":"json (default) or csv. Errors stay JSON."}],"responses":{"200":{"description":"Findings, proof, and a 0–100 score."},"400":{"description":"The domain is not a public hostname."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"429":{"description":"The API key is over its daily limit."}}}},"/api/posture/{domain}":{"get":{"operationId":"posture","summary":"Vendor security posture report for one domain ($0.02).","description":"Email/DNS audit plus BIMI, HSTS, CSP, clickjacking protection, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, HTTP-to-HTTPS redirect, security.txt (RFC 9116) and TLS certificate expiry/issuer. Graded A-F with the scoring rule in the response.","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"description":"Public hostname, such as github.com."},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"Grade, scores, top risks, email findings, web controls, BIMI and security.txt."},"400":{"description":"The domain is not a public hostname."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"429":{"description":"The API key is over its daily limit."}}}},"/api/bulk":{"post":{"operationId":"bulkReport","summary":"Bulk report, up to 25 domains ($2.50).","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","csv"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["domains"],"properties":{"mode":{"type":"string","enum":["email","posture"],"default":"email","description":"email (default) runs the email/DNS check; posture runs the vendor security posture report per domain. Same price."},"domains":{"type":"array","maxItems":25,"items":{"type":"string"}}}}}}},"responses":{"200":{"description":"Per-domain summary, CSV, markdown report, and a self-check that the CSV matches the report."},"400":{"description":"The domain list is empty, too long, or contains a bad hostname."},"401":{"description":"The API key was not recognized."},"402":{"description":"Payment required (free tier used up, or the x402 payment was invalid). Body holds x402 v1 accepts; PAYMENT-REQUIRED header holds v2."},"429":{"description":"The API key is over its daily limit."}}}},"/openapi.json":{"get":{"operationId":"openapi","summary":"This document.","responses":{"200":{"description":"OpenAPI 3.1 JSON."}}}},"/.well-known/agent.json":{"get":{"operationId":"agentManifest","summary":"Synmerco Build Hub agent manifest. Served by a rewrite to /api/agent.","responses":{"200":{"description":"Agent manifest."}}}}}}