{"openapi":"3.1.0","info":{"title":"Autonomous Startup API","version":"0.1.0"},"paths":{"/llms.txt":{"get":{"summary":"Get Llms Txt","operationId":"get_llms_txt_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/mcp/v1/messages":{"post":{"summary":"Mcp Messages","description":"Experimental standard L402 wrapper around MCP JSON-RPC messages.","operationId":"mcp_messages_mcp_v1_messages_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pricing":{"get":{"summary":"Get Pricing","description":"Public discovery endpoint returning active service pricing tiers, fees, and markups.","operationId":"get_pricing_api_v1_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/stats":{"get":{"summary":"Get Stats","operationId":"get_stats_api_v1_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/stats/badge.svg":{"get":{"summary":"Get Stats Badge","operationId":"get_stats_badge_api_v1_stats_badge_svg_get","responses":{"200":{"description":"Successful Response"}}}},"/api/v1/research":{"post":{"summary":"Deep Research","operationId":"deep_research_api_v1_research_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/research":{"post":{"summary":"Internal Deep Research","operationId":"internal_deep_research_internal_research_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/nwc/app":{"post":{"summary":"Provision Nwc","description":"Monetized endpoint: Pay to generate a scoped NWC API key.\nPricing base is the requested budget + a 20% margin fee.","operationId":"provision_nwc_api_v1_nwc_app_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NWCProvisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/provision_nwc":{"post":{"summary":"Provision Nwc","description":"Monetized endpoint: Pay to generate a scoped NWC API key.\nPricing base is the requested budget + a 20% margin fee.","operationId":"provision_nwc_api_v1_provision_nwc_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NWCProvisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/wallet/provision":{"post":{"summary":"Create Wallet","description":"Sub-Wallet as a Service (WaaS): Pay via L402 to provision a completely isolated\nLightning Sub-Wallet with an optional custom Lightning Address.","operationId":"create_wallet_api_v1_wallet_provision_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/wallet/create":{"post":{"summary":"Create Wallet","description":"Sub-Wallet as a Service (WaaS): Pay via L402 to provision a completely isolated\nLightning Sub-Wallet with an optional custom Lightning Address.","operationId":"create_wallet_api_v1_wallet_create_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/dossiers/{dossier_id}":{"get":{"summary":"Get Dossier","operationId":"get_dossier_dossiers__dossier_id__get","parameters":[{"name":"dossier_id","in":"path","required":true,"schema":{"type":"string","title":"Dossier Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dossiers/recent":{"get":{"summary":"Get Recent Dossiers","operationId":"get_recent_dossiers_api_v1_dossiers_recent_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/macaroon":{"get":{"summary":"Macaroon Decoder Ui","description":"Serve the Macaroon Developer Tool UI","operationId":"macaroon_decoder_ui_macaroon_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/macaroon/decode":{"post":{"summary":"Decode Macaroon","description":"Decode a base64 Macaroon for developer visibility","operationId":"decode_macaroon_api_v1_macaroon_decode_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MacaroonDecodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MacaroonDecodeRequest":{"properties":{"macaroon":{"type":"string","title":"Macaroon"}},"type":"object","required":["macaroon"],"title":"MacaroonDecodeRequest"},"NWCProvisionRequest":{"properties":{"name":{"type":"string","title":"Name","default":"Agent NWC Key"},"budget_sats":{"type":"integer","title":"Budget Sats","default":1000}},"type":"object","title":"NWCProvisionRequest"},"ResearchRequest":{"properties":{"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"focus_areas":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Focus Areas"},"format":{"type":"string","title":"Format","default":"markdown"},"depth":{"type":"string","title":"Depth","default":"deep"},"pubkey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pubkey"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"webhook_auth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Auth"}},"type":"object","title":"ResearchRequest"},"ResearchResponse":{"properties":{"status":{"type":"string","title":"Status"},"query":{"type":"string","title":"Query"},"timestamp":{"type":"integer","title":"Timestamp"},"sources_analyzed":{"type":"integer","title":"Sources Analyzed"},"report_markdown":{"type":"string","title":"Report Markdown"},"executive_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Executive Summary"},"confidence_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Score"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent"},"dossier_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dossier Id"}},"type":"object","required":["status","query","timestamp","sources_analyzed","report_markdown"],"title":"ResearchResponse"},"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"},"WalletCreateRequest":{"properties":{"name":{"type":"string","maxLength":50,"pattern":"^[a-zA-Z0-9 _.-]+$","title":"Name","default":"Developer Wallet"},"budget_sats":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Budget Sats","default":5000},"lightning_address":{"anyOf":[{"type":"string","pattern":"^[a-z0-9_.-]+$"},{"type":"null"}],"title":"Lightning Address"}},"type":"object","title":"WalletCreateRequest"}}}}