{"openapi":"3.1.0","info":{"title":"The NO API","description":"An AI that always says No. Powered by x402 autonomous payments.","version":"2.0.0"},"paths":{"/rickroll/ask":{"post":{"tags":["rickroll"],"summary":"Ask Rickroll","description":"Ask anything. Receive a carefully curated resource link.\nPayment handled by x402 middleware on the parent app.","operationId":"ask_rickroll_rickroll_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rickroll/fact":{"get":{"tags":["rickroll"],"summary":"Free Fact","description":"Free fun fact — no payment required.","operationId":"free_fact_rickroll_fact_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/rickroll/pricing":{"get":{"tags":["rickroll"],"summary":"Pricing","operationId":"pricing_rickroll_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/crypto/tools/get_price":{"post":{"tags":["crypto-tools"],"summary":"Ep Get Price","operationId":"ep_get_price_crypto_tools_get_price_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crypto/tools/get_gas":{"post":{"tags":["crypto-tools"],"summary":"Ep Get Gas","operationId":"ep_get_gas_crypto_tools_get_gas_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/crypto/tools/get_balance":{"post":{"tags":["crypto-tools"],"summary":"Ep Get Balance","operationId":"ep_get_balance_crypto_tools_get_balance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BalanceReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crypto/tools/get_trending":{"post":{"tags":["crypto-tools"],"summary":"Ep Get Trending","operationId":"ep_get_trending_crypto_tools_get_trending_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/crypto/tools/convert":{"post":{"tags":["crypto-tools"],"summary":"Ep Convert","operationId":"ep_convert_crypto_tools_convert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crypto/tools/get_dex_quote":{"post":{"tags":["crypto-tools"],"summary":"Ep Get Dex Quote","operationId":"ep_get_dex_quote_crypto_tools_get_dex_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DexQuoteReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crypto/tools/get_token_safety":{"post":{"tags":["crypto-tools"],"summary":"Ep Get Token Safety","operationId":"ep_get_token_safety_crypto_tools_get_token_safety_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenSafetyReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crypto/tools/get_portfolio":{"post":{"tags":["crypto-tools"],"summary":"Ep Get Portfolio","operationId":"ep_get_portfolio_crypto_tools_get_portfolio_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crypto/tools":{"get":{"tags":["crypto-tools"],"summary":"List Tools","operationId":"list_tools_crypto_tools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/crypto/health":{"get":{"tags":["crypto-tools"],"summary":"Health","operationId":"health_crypto_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/crypto/manifest":{"get":{"tags":["crypto-tools"],"summary":"Manifest","operationId":"manifest_crypto_manifest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/crypto/rpc":{"post":{"tags":["crypto-tools"],"summary":"Mcp Rpc","description":"MCP JSON-RPC. tools/call redirects to x402-gated REST endpoints.","operationId":"mcp_rpc_crypto_rpc_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ai/ask":{"post":{"tags":["ai-inference"],"summary":"Ep Ask","operationId":"ep_ask_ai_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai/code":{"post":{"tags":["ai-inference"],"summary":"Ep Code","operationId":"ep_code_ai_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai/reason":{"post":{"tags":["ai-inference"],"summary":"Ep Reason","operationId":"ep_reason_ai_reason_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai/embed":{"post":{"tags":["ai-inference"],"summary":"Ep Embed","operationId":"ep_embed_ai_embed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai/models":{"get":{"tags":["ai-inference"],"summary":"List Models","operationId":"list_models_ai_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ai/health":{"get":{"tags":["ai-inference"],"summary":"Health","operationId":"health_ai_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/audit/token":{"post":{"tags":["token-audit"],"summary":"Audit Token","description":"Full AI token security audit. $0.05 USDC. Takes ~30s (DeepSeek-R1 reasoning).\nReturns risk score, verdict, and plain-English analysis.","operationId":"audit_token_audit_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit/pricing":{"get":{"tags":["token-audit"],"summary":"Audit Pricing","operationId":"audit_pricing_audit_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/fiat/":{"get":{"tags":["fiat-payments"],"summary":"Fiat Form","description":"Serve the credit-card payment form for token audits.","operationId":"fiat_form_fiat__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/fiat/create-intent":{"post":{"tags":["fiat-payments"],"summary":"Create Payment Intent","description":"Create a Stripe PaymentIntent for a fiat audit purchase.","operationId":"create_payment_intent_fiat_create_intent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FiatAuditRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fiat/webhook":{"post":{"tags":["fiat-payments"],"summary":"Stripe Webhook","description":"Stripe webhook — fires after payment confirmed, triggers audit + email.","operationId":"stripe_webhook_fiat_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/fiat/pricing":{"get":{"tags":["fiat-payments"],"summary":"Fiat Pricing","operationId":"fiat_pricing_fiat_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Landing Page","operationId":"landing_page__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/no-api/ask":{"post":{"summary":"Ask No","description":"Ask anything. Get No. Payment handled by x402 middleware.","operationId":"ask_no_no_api_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/no-api/pricing":{"get":{"summary":"Get Pricing","operationId":"get_pricing_no_api_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/no-api/stats":{"get":{"summary":"Get Stats","operationId":"get_stats_no_api_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/no-api/random-no":{"get":{"summary":"Random No Free","description":"Free sample — the marketing hook.","operationId":"random_no_free_no_api_random_no_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/402index-verify.txt":{"get":{"summary":"Verify 402Index","operationId":"verify_402index__well_known_402index_verify_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/x402.json":{"get":{"summary":"X402 Bazaar Manifest","description":"Coinbase Bazaar auto-discovery manifest.","operationId":"x402_bazaar_manifest__well_known_x402_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/ai-agent.json":{"get":{"summary":"Ai Agent Manifest","description":"Aiia / agent.market discovery standard.","operationId":"ai_agent_manifest__well_known_ai_agent_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AskReq":{"properties":{"prompt":{"type":"string","title":"Prompt"},"system":{"type":"string","title":"System","default":""},"max_tokens":{"type":"integer","title":"Max Tokens","default":256}},"type":"object","required":["prompt"],"title":"AskReq"},"AuditRequest":{"properties":{"contract_address":{"type":"string","title":"Contract Address"},"chain_id":{"type":"integer","title":"Chain Id","default":8453},"investment_amount_usd":{"type":"number","title":"Investment Amount Usd","default":0}},"type":"object","required":["contract_address"],"title":"AuditRequest"},"BalanceReq":{"properties":{"address":{"type":"string","title":"Address"}},"type":"object","required":["address"],"title":"BalanceReq"},"ConvertReq":{"properties":{"amount":{"type":"number","title":"Amount"},"from_symbol":{"type":"string","title":"From Symbol"},"to_symbol":{"type":"string","title":"To Symbol"}},"type":"object","required":["amount","from_symbol","to_symbol"],"title":"ConvertReq"},"DexQuoteReq":{"properties":{"sell_token":{"type":"string","title":"Sell Token"},"buy_token":{"type":"string","title":"Buy Token"},"sell_amount_usd":{"type":"number","title":"Sell Amount Usd","default":100.0}},"type":"object","required":["sell_token","buy_token"],"title":"DexQuoteReq"},"EmbedReq":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"EmbedReq"},"FiatAuditRequest":{"properties":{"contract_address":{"type":"string","title":"Contract Address"},"chain_id":{"type":"integer","title":"Chain Id","default":8453},"email":{"type":"string","title":"Email"},"investment_amount_usd":{"type":"number","title":"Investment Amount Usd","default":0}},"type":"object","required":["contract_address","email"],"title":"FiatAuditRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"NoRequest":{"properties":{"question":{"type":"string","title":"Question","default":""},"no_type":{"type":"string","title":"No Type","default":"no"},"context":{"type":"string","title":"Context","default":""}},"type":"object","title":"NoRequest"},"NoResponse":{"properties":{"answer":{"type":"string","title":"Answer"},"no_type":{"type":"string","title":"No Type"},"question_asked":{"type":"string","title":"Question Asked"},"cost_usd":{"type":"number","title":"Cost Usd"},"response_time_ms":{"type":"number","title":"Response Time Ms"},"request_id":{"type":"string","title":"Request Id"}},"type":"object","required":["answer","no_type","question_asked","cost_usd","response_time_ms","request_id"],"title":"NoResponse"},"PortfolioReq":{"properties":{"address":{"type":"string","title":"Address"},"symbols":{"items":{"type":"string"},"type":"array","title":"Symbols","default":["eth","btc"]}},"type":"object","required":["address"],"title":"PortfolioReq"},"PriceReq":{"properties":{"symbols":{"items":{"type":"string"},"type":"array","title":"Symbols"}},"type":"object","required":["symbols"],"title":"PriceReq"},"RollRequest":{"properties":{"question":{"type":"string","title":"Question","default":""},"context":{"type":"string","title":"Context","default":""}},"type":"object","title":"RollRequest"},"RollResponse":{"properties":{"answer":{"type":"string","title":"Answer"},"url":{"type":"string","title":"Url"},"question_asked":{"type":"string","title":"Question Asked"},"cost_usd":{"type":"number","title":"Cost Usd"},"request_id":{"type":"string","title":"Request Id"}},"type":"object","required":["answer","url","question_asked","cost_usd","request_id"],"title":"RollResponse"},"TokenSafetyReq":{"properties":{"chain_id":{"type":"integer","title":"Chain Id","default":1},"contract_address":{"type":"string","title":"Contract Address"}},"type":"object","required":["contract_address"],"title":"TokenSafetyReq"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}