{"openapi":"3.1.0","info":{"title":"Code Humanizer","version":"1.0.0"},"paths":{"/api/auth/signup":{"post":{"summary":"Signup","operationId":"signup_api_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"summary":"Me","operationId":"me_api_auth_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google/login":{"get":{"summary":"Google Login","description":"Redirect user to Google's OAuth consent screen.","operationId":"google_login_api_auth_google_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/google/callback":{"get":{"summary":"Google Callback","description":"Handle the callback from Google after user grants permission.","operationId":"google_callback_api_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/usage":{"get":{"summary":"Usage","operationId":"usage_api_usage_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/humanize":{"post":{"summary":"Humanize","operationId":"humanize_api_humanize_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/detect":{"post":{"summary":"Detect","operationId":"detect_api_detect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/remove-comments":{"post":{"summary":"Tool Remove Comments","operationId":"tool_remove_comments_api_tools_remove_comments_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveCommentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/convert-case":{"post":{"summary":"Tool Convert Case","operationId":"tool_convert_case_api_tools_convert_case_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertCaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/format-python":{"post":{"summary":"Tool Format Python","operationId":"tool_format_python_api_tools_format_python_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormatPythonRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/explain-code":{"post":{"summary":"Tool Explain Code","operationId":"tool_explain_code_api_tools_explain_code_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainCodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contact":{"post":{"summary":"Contact","operationId":"contact_api_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stripe/create-checkout-session":{"post":{"summary":"Create Checkout Session","operationId":"create_checkout_session_api_stripe_create_checkout_session_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stripe/webhook":{"post":{"summary":"Stripe Webhook","operationId":"stripe_webhook_api_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/stripe/portal":{"get":{"summary":"Billing Portal","operationId":"billing_portal_api_stripe_portal_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Serve Index","operationId":"serve_index__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pricing":{"get":{"summary":"Serve Pricing","operationId":"serve_pricing_pricing_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs":{"get":{"summary":"Serve Docs","operationId":"serve_docs_docs_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api-docs":{"get":{"summary":"Serve Api","operationId":"serve_api_api_docs_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/changelog":{"get":{"summary":"Serve Changelog","operationId":"serve_changelog_changelog_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/terms":{"get":{"summary":"Serve Terms","operationId":"serve_terms_terms_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/privacy":{"get":{"summary":"Serve Privacy","operationId":"serve_privacy_privacy_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/contact":{"get":{"summary":"Serve Contact","operationId":"serve_contact_contact_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog":{"get":{"summary":"Serve Blog","operationId":"serve_blog_blog_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/humanize-ai-code-guide":{"get":{"summary":"Serve Blog Humanize","operationId":"serve_blog_humanize_blog_humanize_ai_code_guide_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/bypass-ai-code-detection":{"get":{"summary":"Serve Blog Bypass","operationId":"serve_blog_bypass_blog_bypass_ai_code_detection_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/chatgpt-code-vs-human-code":{"get":{"summary":"Serve Blog Chatgpt","operationId":"serve_blog_chatgpt_blog_chatgpt_code_vs_human_code_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/favicon.png":{"get":{"summary":"Serve Favicon Png","operationId":"serve_favicon_png_favicon_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/favicon.svg":{"get":{"summary":"Serve Favicon","operationId":"serve_favicon_favicon_svg_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/blog/python-code-humanizer":{"get":{"summary":"Serve Blog Python","operationId":"serve_blog_python_blog_python_code_humanizer_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/html-code-humanizer":{"get":{"summary":"Serve Blog Html","operationId":"serve_blog_html_blog_html_code_humanizer_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/ai-code-humanizer-free":{"get":{"summary":"Serve Blog Free","operationId":"serve_blog_free_blog_ai_code_humanizer_free_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/ai-code-detector":{"get":{"summary":"Serve Blog Detector","operationId":"serve_blog_detector_blog_ai_code_detector_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/code-humanizer-c":{"get":{"summary":"Serve Blog C","operationId":"serve_blog_c_blog_code_humanizer_c_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/code-humanizer-lua":{"get":{"summary":"Serve Blog Lua","operationId":"serve_blog_lua_blog_code_humanizer_lua_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/free-ai-code-humanizer-online":{"get":{"summary":"Serve Blog Free Online","operationId":"serve_blog_free_online_blog_free_ai_code_humanizer_online_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/javascript-code-humanizer":{"get":{"summary":"Serve Blog Js","operationId":"serve_blog_js_blog_javascript_code_humanizer_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/remove-comments-from-python-code":{"get":{"summary":"Serve Blog Remove Comments Python","operationId":"serve_blog_remove_comments_python_blog_remove_comments_from_python_code_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/remove-comments-from-javascript-code":{"get":{"summary":"Serve Blog Remove Comments Js","operationId":"serve_blog_remove_comments_js_blog_remove_comments_from_javascript_code_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/camelcase-to-snake-case":{"get":{"summary":"Serve Blog Camelcase To Snake Case","operationId":"serve_blog_camelcase_to_snake_case_blog_camelcase_to_snake_case_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/format-python-code":{"get":{"summary":"Serve Blog Format Python Code","operationId":"serve_blog_format_python_code_blog_format_python_code_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/black-vs-autopep8-vs-yapf":{"get":{"summary":"Serve Blog Black Vs Autopep8 Vs Yapf","operationId":"serve_blog_black_vs_autopep8_vs_yapf_blog_black_vs_autopep8_vs_yapf_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/blog/understand-unfamiliar-code":{"get":{"summary":"Serve Blog Understand Unfamiliar Code","operationId":"serve_blog_understand_unfamiliar_code_blog_understand_unfamiliar_code_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tools":{"get":{"summary":"Serve Tools","operationId":"serve_tools_tools_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tools/code-comment-remover":{"get":{"summary":"Serve Tool Comment Remover","operationId":"serve_tool_comment_remover_tools_code_comment_remover_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tools/case-converter":{"get":{"summary":"Serve Tool Case Converter","operationId":"serve_tool_case_converter_tools_case_converter_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tools/python-formatter":{"get":{"summary":"Serve Tool Python Formatter","operationId":"serve_tool_python_formatter_tools_python_formatter_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tools/code-explainer":{"get":{"summary":"Serve Tool Code Explainer","operationId":"serve_tool_code_explainer_tools_code_explainer_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/robots.txt":{"get":{"summary":"Serve Robots","operationId":"serve_robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sitemap.xml":{"get":{"summary":"Serve Sitemap","operationId":"serve_sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"CheckoutRequest":{"properties":{"plan":{"type":"string","title":"Plan"}},"type":"object","required":["plan"],"title":"CheckoutRequest"},"ContactRequest":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"subject":{"type":"string","title":"Subject"},"message":{"type":"string","title":"Message"}},"type":"object","required":["name","email","subject","message"],"title":"ContactRequest"},"ConvertCaseRequest":{"properties":{"code":{"type":"string","title":"Code"},"target":{"type":"string","title":"Target","default":"snake"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"include_functions":{"type":"boolean","title":"Include Functions","default":false}},"type":"object","required":["code"],"title":"ConvertCaseRequest"},"DetectRequest":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"DetectRequest"},"ExplainCodeRequest":{"properties":{"code":{"type":"string","title":"Code"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"level":{"type":"string","title":"Level","default":"experienced"}},"type":"object","required":["code"],"title":"ExplainCodeRequest"},"FormatPythonRequest":{"properties":{"code":{"type":"string","title":"Code"},"line_length":{"type":"integer","title":"Line Length","default":88},"normalize_strings":{"type":"boolean","title":"Normalize Strings","default":true}},"type":"object","required":["code"],"title":"FormatPythonRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HumanizeRequest":{"properties":{"code":{"type":"string","title":"Code"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","default":"python"},"slider":{"type":"integer","title":"Slider","default":60},"persona":{"type":"string","title":"Persona","default":"junior_dev"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"}},"type":"object","required":["code"],"title":"HumanizeRequest"},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"RemoveCommentsRequest":{"properties":{"code":{"type":"string","title":"Code"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"keep_directives":{"type":"boolean","title":"Keep Directives","default":true},"remove_docstrings":{"type":"boolean","title":"Remove Docstrings","default":false}},"type":"object","required":["code"],"title":"RemoveCommentsRequest"},"SignupRequest":{"properties":{"email":{"type":"string","title":"Email"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","username","password"],"title":"SignupRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}