{"openapi":"3.1.0","info":{"title":"Micro-SaaS AI Agent Suite","description":"Full 8-API enterprise suite for sentiment, copy, fraud, triage, comparison, web scraping, email validation, and document OCR.","version":"3.0.0"},"paths":{"/":{"get":{"summary":"Read Root","operationId":"read_root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/analyze":{"post":{"summary":"Analyze Review","operationId":"analyze_review_analyze_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate-copy":{"post":{"summary":"Generate Product Copy","operationId":"generate_product_copy_generate_copy_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCopyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCopyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/detect-authenticity":{"post":{"summary":"Detect Fake Review","operationId":"detect_fake_review_detect_authenticity_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FakeDetectorRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FakeDetectorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/classify-ticket":{"post":{"summary":"Classify Support Ticket","operationId":"classify_support_ticket_classify_ticket_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketTriageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketTriageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/compare-specs":{"post":{"summary":"Compare Product Specs","operationId":"compare_product_specs_compare_specs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareSpecsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareSpecsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrape-and-extract":{"post":{"summary":"Scrape And Extract","operationId":"scrape_and_extract_scrape_and_extract_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScraperRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScraperResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verify-email":{"post":{"summary":"Verify Email","operationId":"verify_email_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/parse-document":{"post":{"summary":"Parse Document","operationId":"parse_document_parse_document_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocuParseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocuParseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AnalysisResponse":{"properties":{"sentiment":{"type":"string","enum":["Positive","Negative","Neutral"],"title":"Sentiment"},"features":{"items":{"type":"string"},"type":"array","title":"Features"}},"type":"object","required":["sentiment"],"title":"AnalysisResponse"},"CompareSpecsRequest":{"properties":{"product_a_name":{"type":"string","title":"Product A Name","example":"BrandX Pro Laptop"},"product_a_specs":{"type":"string","title":"Product A Specs","example":"16GB RAM, 512GB SSD, Intel i7"},"product_b_name":{"type":"string","title":"Product B Name","example":"TechPro Ultra Laptop"},"product_b_specs":{"type":"string","title":"Product B Specs","example":"32GB RAM, 1TB SSD, M3 Chip"}},"type":"object","required":["product_a_name","product_a_specs","product_b_name","product_b_specs"],"title":"CompareSpecsRequest"},"CompareSpecsResponse":{"properties":{"winner_by_category":{"additionalProperties":{"type":"string"},"type":"object","title":"Winner By Category"},"key_differences":{"items":{"type":"string"},"type":"array","title":"Key Differences"},"overall_recommendation":{"type":"string","title":"Overall Recommendation"}},"type":"object","required":["winner_by_category","key_differences","overall_recommendation"],"title":"CompareSpecsResponse"},"DocuParseRequest":{"properties":{"document_url":{"type":"string","title":"Document Url","description":"URL of receipt or invoice image.","example":"https://example.com/sample-receipt.jpg"},"document_type":{"anyOf":[{"type":"string","enum":["receipt","invoice","business_card","general"]},{"type":"null"}],"title":"Document Type","default":"receipt"}},"type":"object","required":["document_url"],"title":"DocuParseRequest"},"DocuParseResponse":{"properties":{"document_type":{"type":"string","title":"Document Type"},"merchant_name":{"type":"string","title":"Merchant Name"},"date":{"type":"string","title":"Date"},"total_amount":{"type":"number","title":"Total Amount"},"tax_amount":{"type":"number","title":"Tax Amount"},"line_items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Line Items"},"confidence_score":{"type":"integer","title":"Confidence Score"}},"type":"object","required":["document_type","merchant_name","date","total_amount","tax_amount","line_items","confidence_score"],"title":"DocuParseResponse"},"EmailVerifyRequest":{"properties":{"email":{"type":"string","title":"Email","description":"Email address to validate.","example":"test.user@tempmail.org"}},"type":"object","required":["email"],"title":"EmailVerifyRequest"},"EmailVerifyResponse":{"properties":{"email":{"type":"string","title":"Email"},"is_valid_format":{"type":"boolean","title":"Is Valid Format"},"is_disposable":{"type":"boolean","title":"Is Disposable"},"has_mx_records":{"type":"boolean","title":"Has Mx Records"},"deliverability_score":{"type":"integer","title":"Deliverability Score"},"status":{"type":"string","enum":["Valid / Safe","Risky / Disposable","Invalid Format"],"title":"Status"},"recommendation":{"type":"string","title":"Recommendation"}},"type":"object","required":["email","is_valid_format","is_disposable","has_mx_records","deliverability_score","status","recommendation"],"title":"EmailVerifyResponse"},"FakeDetectorRequest":{"properties":{"review_text":{"type":"string","title":"Review Text","example":"GREAT BEST PRODUCT EVER BUY NOW AMAZING AMAZING!!!"},"rating":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Rating","default":5}},"type":"object","required":["review_text"],"title":"FakeDetectorRequest"},"FakeDetectorResponse":{"properties":{"authenticity_score":{"type":"integer","title":"Authenticity Score"},"verdict":{"type":"string","enum":["Genuine","Suspicious","Bot / Spam"],"title":"Verdict"},"risk_factors":{"items":{"type":"string"},"type":"array","title":"Risk Factors"},"recommendation":{"type":"string","title":"Recommendation"}},"type":"object","required":["authenticity_score","verdict","risk_factors","recommendation"],"title":"FakeDetectorResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ProductCopyRequest":{"properties":{"product_name":{"type":"string","title":"Product Name","example":"UltraComfort Wireless Headphones"},"key_features":{"items":{"type":"string"},"type":"array","title":"Key Features","example":["40-Hour Battery Life","Noise Cancellation"]},"target_tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Tone","default":"Professional","example":"Luxury"}},"type":"object","required":["product_name"],"title":"ProductCopyRequest"},"ProductCopyResponse":{"properties":{"seo_title":{"type":"string","title":"Seo Title"},"description":{"type":"string","title":"Description"},"bullet_points":{"items":{"type":"string"},"type":"array","title":"Bullet Points"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"}},"type":"object","required":["seo_title","description","bullet_points","keywords"],"title":"ProductCopyResponse"},"ReviewRequest":{"properties":{"review_text":{"type":"string","title":"Review Text","description":"Review text to analyze.","example":"The battery life is incredible and the display is super sharp."}},"type":"object","required":["review_text"],"title":"ReviewRequest"},"ScraperRequest":{"properties":{"url":{"type":"string","title":"Url","description":"Target website URL to scrape & extract.","example":"https://example.com/product/123"},"extraction_targets":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Extraction Targets","description":"Target fields to extract into structured JSON.","default":["title","price","description","availability"],"example":["product_name","price","rating"]}},"type":"object","required":["url"],"title":"ScraperRequest"},"ScraperResponse":{"properties":{"status":{"type":"string","title":"Status"},"url":{"type":"string","title":"Url"},"extracted_data":{"additionalProperties":true,"type":"object","title":"Extracted Data"}},"type":"object","required":["status","url","extracted_data"],"title":"ScraperResponse"},"TicketTriageRequest":{"properties":{"ticket_text":{"type":"string","title":"Ticket Text","example":"My order #88492 hasn't arrived after 3 weeks. Please refund!"},"customer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Email"}},"type":"object","required":["ticket_text"],"title":"TicketTriageRequest"},"TicketTriageResponse":{"properties":{"category":{"type":"string","enum":["Billing & Refund","Shipping & Delivery","Technical Support","Product Inquiry","General Feedback"],"title":"Category"},"urgency":{"type":"string","enum":["Low","Medium","High","Urgent"],"title":"Urgency"},"customer_sentiment":{"type":"string","enum":["Positive","Neutral","Frustrated","Angry"],"title":"Customer Sentiment"},"suggested_action":{"type":"string","title":"Suggested Action"},"draft_reply":{"type":"string","title":"Draft Reply"}},"type":"object","required":["category","urgency","customer_sentiment","suggested_action","draft_reply"],"title":"TicketTriageResponse"},"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"}}}}