{"info":{"title":"Quantum Bear MicroAPI","version":"0.1.0","x-guidance":"Six technical checks for agent workflows. POST JSON using the declared input schema. An unpaid request returns x402 v2 HTTP402; native USDC on the declared network pays for each successful computed result. Recorded examples are controlled observations, not customer demand. Unknown settlement requires reconciliation."},"openapi":"3.1.0","paths":{"/api/microapi/csv-preflight":{"post":{"description":"Validate CSV columns and quoting before importing tables. Detect malformed quoting, uneven row widths, duplicate headers, blank cells and formula-like cell prefixes. Formula prefixes are a heuristic, not a malware verdict.","operationId":"csv-preflight","requestBody":{"content":{"application/json":{"example":{"csv":"name,score\nAlice,7\nBob,9\n","header":true},"schema":{"type":"object","properties":{"csv":{"type":"string","maxLength":1048576},"header":{"type":"boolean"},"delimiter":{"type":"string","maxLength":1}},"required":["csv"],"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"request_id":"1619304fc4a21bf55358e61561e433f9","result":{"module":"csv-preflight","observed_at":"2026-11-13T05:33:34.892479998Z","data":{"blank_cells":0,"columns":2,"data_rows":2,"formula_like_cells":0,"formula_warning":"formula-like prefixes are an injection heuristic, not proof of malicious content","issues":[],"records":3,"valid":true},"warnings":[]}},"schema":{"properties":{"request_id":{"type":"string"},"result":{"properties":{"data":{"type":"object"},"module":{"const":"csv-preflight"},"observed_at":{"format":"date-time","type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["module","observed_at","data","warnings"],"type":"object"}},"required":["request_id","result"],"type":"object"}}},"description":"Computed result after settlement acknowledgement; check X-Settlement-Confirmation"},"402":{"description":"Payment Required"},"409":{"description":"Authorization nonce already reserved"},"422":{"description":"Operation failed; not charged"},"429":{"description":"Resource or request rate limit"},"502":{"description":"Facilitator unavailable or settlement pending reconciliation"}},"summary":"csv-preflight","x-payment-info":{"price":{"amount":"0.003000","currency":"USD","mode":"fixed"},"protocols":[{"x402":{}}]},"x-price-micros":3000}},"/api/microapi/dns-records":{"post":{"description":"Inspect DNS records for a domain: A, AAAA, MX, NS, TXT and canonical name. Return real record sets and per-query error status. DNSSEC validation is not claimed.","operationId":"dns-records","requestBody":{"content":{"application/json":{"example":{"domain":"cloudflare.com"},"schema":{"type":"object","properties":{"domain":{"type":"string","maxLength":253}},"required":["domain"],"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"request_id":"eebbe6cf6ae40a002695f3efbdbe74e8","result":{"module":"dns-records","observed_at":"2026-11-13T05:33:40.408051971Z","data":{"A":["104.16.132.229","104.16.133.229"],"AAAA":["2606:4700::6810:84e5","2606:4700::6810:85e5"],"MX":[{"host":"mxb-canary.global.inbound.cf-emailsecurity.net.","preference":5},{"host":"mxa-canary.global.inbound.cf-emailsecurity.net.","preference":5},{"host":"mxa.global.inbound.cf-emailsecurity.net.","preference":10},{"host":"mxb.global.inbound.cf-emailsecurity.net.","preference":10}],"NS":["ns3.cloudflare.com.","ns4.cloudflare.com.","ns5.cloudflare.com.","ns6.cloudflare.com.","ns7.cloudflare.com."],"TXT":["miro-verification=bdd7dfa0a49adfb43ad6ddfaf797633246c07356","drift-domain-verification=f037808a26ae8b25bc13b1f1f2b4c3e0f78c03e67f24cefdd4ec520efa8e719f","jamf-site-verification=c-eUvHBbhgFxMulFSY-QJQ","apple-domain-verification=DNnWJoArJobFJKhJ","facebook-domain-verification=h9mm6zopj6p2po54woa16m5bskm6oo","stripe-verification=bf1a94e6b16ace2502a4a7fff574a25c8a45291054960c883c59be39d1788db9","DirectFedAuthUrl=https://cloudflare-security.cloudflareaccess.com/cdn-cgi/access/sso/saml/ebec933773c69c93420d13e6776adb8c4a190f6281f9d132bcebd7dcb0967bdd","google-site-verification=ZdlQZLBBAPkxeFTCM1rpiB_ibtGff_JF5KllNKwDR9I","databank-domain-verification-hkehd2=fzgu4kmbZwMoW99zENgO4u8NL","status-page-domain-verification=r14frwljwbxs","v=spf1 ip4:199.15.212.0/22 ip4:173.245.48.0/20 include:_spf.google.com include:spf1.mcsv.net include:spf.mandrillapp.com include:mail.zendesk.com include:stspg-customer.com include:_spf.salesforce.com -all","_neqmkgaq1lq9it5s8qmetrhbnu121wb","google-site-verification=C7thfNeXVahkVhniiqTI1iSVnElKR_kBBtnEHkeGDlo","DirectFedAuthUrl=https://cloudflare-security.cloudflareaccess.com/cdn-cgi/access/sso/saml/dba6756ad312fc13c45f705cf7f5e87f4d658be016c41f950329aa4085b3abc1","atlassian-domain-verification=WxxKyN9aLnjEsoOjUYI6T0bb5vcqmKzaIkC9Rx2QkNb751G3LL/cus8/ZDOgh8xB","stripe-verification=5096d01ff2cf194285dd51cae18f24fa9c26dc928cebac3636d462b4c6925623","liveramp-site-verification=EhH1MqgwbndTWl1AN64hOTKz7hc1s80yUpchLbgpfY0","ZOOM_verify_7LFBvOO9SIigypFG2xRlMA","MS=ms70274184","canva-site-verification=oOyaVnHC-OiFoR1BPvetNA","creatopy-domain-verification=97d2ca50-9b6f-4a21-9bdb-fbb630e4cec7","cisco-ci-domain-verification=27e926884619804ef987ae4aa1c4168f6b152ada84f4c8bfc74eb2bd2912ad72","onetrust-domain-verification=bd5cd08a1e9644799fdb98ed7d60c9cb","asv=894f6d1f9f83bcf44e4b1bc40bc1c4aa","docker-verification=c578e21c-34fb-4474-9b90-d55ee4cba10c","_saml-domain-challenge.2dc00405-79cd-457b-b288-a119c6f0c7b7.71996d53-d178-4ba9-bef4-7f7e46edab74.cloudflare.com=1c8736fd-84b2-4197-985f-3fb2852f2457","_wkjc0fot0d7qrvrdt78bxkj2e2o67d2","logmein-verification-code=b3433c86-3823-4808-8a7e-58042469f654","uber-domain-verification=58086039-150a-42a4-a4be-b4032921aa0f"],"canonical_name":"cloudflare.com.","dnssec_validated":null,"domain":"cloudflare.com","query_status":{"CNAME":"ok","MX":"ok","NS":"ok","TXT":"ok","address":"ok"}},"warnings":[]}},"schema":{"properties":{"request_id":{"type":"string"},"result":{"properties":{"data":{"type":"object"},"module":{"const":"dns-records"},"observed_at":{"format":"date-time","type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["module","observed_at","data","warnings"],"type":"object"}},"required":["request_id","result"],"type":"object"}}},"description":"Computed result after settlement acknowledgement; check X-Settlement-Confirmation"},"402":{"description":"Payment Required"},"409":{"description":"Authorization nonce already reserved"},"422":{"description":"Operation failed; not charged"},"429":{"description":"Resource or request rate limit"},"502":{"description":"Facilitator unavailable or settlement pending reconciliation"}},"summary":"dns-records","x-payment-info":{"price":{"amount":"0.005000","currency":"USD","mode":"fixed"},"protocols":[{"x402":{}}]},"x-price-micros":5000}},"/api/microapi/email-domain":{"post":{"description":"Check email domain SPF, DMARC and MX records, including null MX and the published DMARC policy. Diagnose domain authentication setup. Does not verify mailbox existence, SMTP delivery or a person.","operationId":"email-domain","requestBody":{"content":{"application/json":{"example":{"domain":"gmail.com"},"schema":{"type":"object","properties":{"domain":{"type":"string","maxLength":253}},"required":["domain"],"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"request_id":"b991ba303e7ad13314474026599a3607","result":{"module":"email-domain","observed_at":"2026-11-13T05:33:42.902211433Z","data":{"deliverability_verified":false,"dmarc_policy":"none","dmarc_records":["v=DMARC1; p=none; sp=quarantine; rua=mailto:mailauth-reports@google.com"],"domain":"gmail.com","issues":[],"mailbox_exists":null,"mx":[{"host":"gmail-smtp-in.l.google.com.","preference":5},{"host":"alt1.gmail-smtp-in.l.google.com.","preference":10},{"host":"alt2.gmail-smtp-in.l.google.com.","preference":20},{"host":"alt3.gmail-smtp-in.l.google.com.","preference":30},{"host":"alt4.gmail-smtp-in.l.google.com.","preference":40}],"null_mx":false,"query_status":{"DMARC_TXT":"ok","MX":"ok","SPF_TXT":"ok"},"scope":"domain records only; no SMTP probing, mailbox or person inference","spf_evaluated_for_sender":false,"spf_records":["v=spf1 redirect=_spf.google.com"]},"warnings":[]}},"schema":{"properties":{"request_id":{"type":"string"},"result":{"properties":{"data":{"type":"object"},"module":{"const":"email-domain"},"observed_at":{"format":"date-time","type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["module","observed_at","data","warnings"],"type":"object"}},"required":["request_id","result"],"type":"object"}}},"description":"Computed result after settlement acknowledgement; check X-Settlement-Confirmation"},"402":{"description":"Payment Required"},"409":{"description":"Authorization nonce already reserved"},"422":{"description":"Operation failed; not charged"},"429":{"description":"Resource or request rate limit"},"502":{"description":"Facilitator unavailable or settlement pending reconciliation"}},"summary":"email-domain","x-payment-info":{"price":{"amount":"0.005000","currency":"USD","mode":"fixed"},"protocols":[{"x402":{}}]},"x-price-micros":5000}},"/api/microapi/http-tls":{"post":{"description":"Inspect HTTP response status, selected security headers and the verified TLS certificate of a public URL. Return certificate expiry, fingerprint, TLS version and observed latency. Does not perform a vulnerability scan.","operationId":"http-tls","requestBody":{"content":{"application/json":{"example":{"url":"https://example.com"},"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048}},"required":["url"],"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"request_id":"9439416f06ed8f3d91226923c7c8bb7a","result":{"module":"http-tls","observed_at":"2026-11-13T05:33:48.782659291Z","data":{"body_truncated":false,"headers":{"Content-Type":"text/html; charset=utf-8","Server":"cloudflare"},"latency_ms":23,"paid_probe":false,"protocol":"HTTP/2.0","response_bytes_sampled":577,"status":200,"successful_response_after_payment":null,"tls":{"cipher_suite":"TLS_AES_128_GCM_SHA256","days_until_expiry":42,"not_after":"2026-12-25T22:56:35Z","sha256":"85ca6ab068e9bcce88b6c4aa3c47f7d17228134a457f870d3800e6223a0df07a","verified":true,"version":"TLS 1.3"}},"warnings":[]}},"schema":{"properties":{"request_id":{"type":"string"},"result":{"properties":{"data":{"type":"object"},"module":{"const":"http-tls"},"observed_at":{"format":"date-time","type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["module","observed_at","data","warnings"],"type":"object"}},"required":["request_id","result"],"type":"object"}}},"description":"Computed result after settlement acknowledgement; check X-Settlement-Confirmation"},"402":{"description":"Payment Required"},"409":{"description":"Authorization nonce already reserved"},"422":{"description":"Operation failed; not charged"},"429":{"description":"Resource or request rate limit"},"502":{"description":"Facilitator unavailable or settlement pending reconciliation"}},"summary":"http-tls","x-payment-info":{"price":{"amount":"0.010000","currency":"USD","mode":"fixed"},"protocols":[{"x402":{}}]},"x-price-micros":10000}},"/api/microapi/json-structure":{"post":{"description":"Validate JSON against a self-contained JSON Schema. Check JSON syntax, duplicate object keys, schema compliance and document complexity. Reports machine-readable validation errors; external references and regex constraints are unsupported.","operationId":"json-structure","requestBody":{"content":{"application/json":{"example":{"json":"{\"agent_id\":\"qb-01\",\"active\":true}","schema":{"type":"object","required":["agent_id"],"properties":{"agent_id":{"type":"string"},"active":{"type":"boolean"}},"additionalProperties":false}},"schema":{"type":"object","properties":{"json":{"type":"string","maxLength":1048576},"schema":{"type":["object","boolean"]}},"required":["json"],"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"request_id":"41dce2bb0fa71780d235006560dfb933","result":{"module":"json-structure","observed_at":"2026-11-13T05:33:37.721159684Z","data":{"duplicate_keys":0,"max_depth":1,"nodes":3,"root_type":"object","schema_errors":[],"schema_valid":true,"syntax_valid":true,"valid":true},"warnings":[]}},"schema":{"properties":{"request_id":{"type":"string"},"result":{"properties":{"data":{"type":"object"},"module":{"const":"json-structure"},"observed_at":{"format":"date-time","type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["module","observed_at","data","warnings"],"type":"object"}},"required":["request_id","result"],"type":"object"}}},"description":"Computed result after settlement acknowledgement; check X-Settlement-Confirmation"},"402":{"description":"Payment Required"},"409":{"description":"Authorization nonce already reserved"},"422":{"description":"Operation failed; not charged"},"429":{"description":"Resource or request rate limit"},"502":{"description":"Facilitator unavailable or settlement pending reconciliation"}},"summary":"json-structure","x-payment-info":{"price":{"amount":"0.003000","currency":"USD","mode":"fixed"},"protocols":[{"x402":{}}]},"x-price-micros":3000}},"/api/microapi/x402-preflight":{"post":{"description":"Verify x402 endpoint payment requirements before paying: inspect a live HTTP 402 challenge, protocol version, accepted networks, token, recipient, amount and discovery metadata. No payment is sent; settlement success remains unknown.","operationId":"x402-preflight","requestBody":{"content":{"application/json":{"example":{"url":"https://www.api-xpay.com/x402/quote"},"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048}},"required":["url"],"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"request_id":"038958099e42eb6201698c9badd09f22","result":{"module":"x402-preflight","observed_at":"2026-11-13T05:33:45.891686644Z","data":{"body_truncated":false,"headers":{"Content-Type":"application/json; charset=utf-8","Payment-Required":"eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3IiOiJQQVlNRU5ULVNJR05BVFVSRSBoZWFkZXIgaXMgcmVxdWlyZWQiLCJyZXNvdXJjZSI6eyJ1cmwiOiJodHRwczovL3d3dy5hcGkteHBheS5jb20veDQwMi9xdW90ZSIsImRlc2NyaXB0aW9uIjoiUGF5bWVudCBxdW90ZSB3aXRoIGFtb3VudCwgYXNzZXQsIGFuZCBtZXJjaGFudCB3YWxsZXQiLCJtaW1lVHlwZSI6ImFwcGxpY2F0aW9uL2pzb24iLCJzZXJ2aWNlTmFtZSI6IlggUGF5IiwiaWNvblVybCI6Imh0dHBzOi8vd3d3LmFwaS14cGF5LmNvbS9sb2dvLnBuZyIsInRhZ3MiOlsicGF5bWVudCIsInF1b3RlIiwicHJpY2luZyIsIm1lcmNoYW50IiwiaW52b2ljZSJdfSwiYWNjZXB0cyI6W3sic2NoZW1lIjoiZXhhY3QiLCJuZXR3b3JrIjoiZWlwMTU1Ojg0NTMiLCJhbW91bnQiOiI1MDAwIiwiYXNzZXQiOiIweDgzMzU4OWZDRDZlRGI2RTA4ZjRjN0MzMkQ0ZjcxYjU0YmRBMDI5MTMiLCJwYXlUbyI6IjB4NTg5YTIzMTRhMkUwNUY0NWU0MEM0ODIzRGEzQmE1OEQ0MjFkQjNkOCIsIm1heFRpbWVvdXRTZWNvbmRzIjo2MCwicmVzb3VyY2UiOiJodHRwczovL3d3dy5hcGkteHBhe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eXBlIjoib2JqZWN0IiwicHJvcGVydGllcyI6eyJ0eXBlIjp7InR5cGUiOiJzdHJpbmcifSwiZXhhbXBsZSI6eyJ0eXBlIjoib2JqZWN0In19LCJyZXF1aXJlZCI6WyJ0eXBlIl19fSwicmVxdWlyZWQiOlsiaW5wdXQiXX19fX0=","Server":"railway-hikari","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff"},"issues":[],"latency_ms":30,"paid_probe":false,"payment_requirements":{"accepts":[{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":60,"network":"eip155:8453","payTo":"0x589a2314a2E05F45e40C4823Da3Ba58D421dB3d8","resource":"https://www.api-xpay.com/x402/quote","scheme":"exact"}],"error":"PAYMENT-SIGNATURE header is required","extensions":{"bazaar":{"info":{"input":{"method":"GET","type":"http"},"output":{"example":{"quote":{"amount":"0.005","asset":"USDC","network":"base","payTo":"0x589a2314a2E05F45e40C4823Da3Ba58D421dB3d8","protocol":"x402","requestId":"req_abc123"},"service":"X Pay","success":true},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"headers":{"additionalProperties":{"type":"string"},"type":"object"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"additionalProperties":{"type":"string"},"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"resource":{"description":"Payment quote with amount, asset, and merchant wallet","iconUrl":"https://www.api-xpay.com/logo.png","mimeType":"application/json","serviceName":"X Pay","tags":["payment","quote","pricing","merchant","invoice"],"url":"https://www.api-xpay.com/x402/quote"},"x402Version":2},"preflight_valid":true,"protocol":"HTTP/2.0","requirements_source":"header","response_bytes_sampled":1511,"settlement_verified":false,"status":402,"successful_response_after_payment":null,"tls":{"cipher_suite":"TLS_AES_128_GCM_SHA256","days_until_expiry":87,"not_after":"2027-02-08T08:31:57Z","sha256":"3d56b8390f6d985159ce8e50e213f39eb9f0136968761ae12ba1b6acca6bcd09","verified":true,"version":"TLS 1.3"}},"warnings":[]}},"schema":{"properties":{"request_id":{"type":"string"},"result":{"properties":{"data":{"type":"object"},"module":{"const":"x402-preflight"},"observed_at":{"format":"date-time","type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["module","observed_at","data","warnings"],"type":"object"}},"required":["request_id","result"],"type":"object"}}},"description":"Computed result after settlement acknowledgement; check X-Settlement-Confirmation"},"402":{"description":"Payment Required"},"409":{"description":"Authorization nonce already reserved"},"422":{"description":"Operation failed; not charged"},"429":{"description":"Resource or request rate limit"},"502":{"description":"Facilitator unavailable or settlement pending reconciliation"}},"summary":"x402-preflight","x-payment-info":{"price":{"amount":"0.005000","currency":"USD","mode":"fixed"},"protocols":[{"x402":{}}]},"x-price-micros":5000}}},"servers":[{"url":"https://quantumbears.is"}]}
