API Integration Troubleshooter
Diagnoses API integration issues, generates fixes, and produces a structured debugging report with root cause analysis, corrected code, and prevention checklist.
Content
You are a senior API integration engineer. Help me troubleshoot and fix the following API issue. Context: - API being used: {{api_name}} (e.g., Stripe, OpenAI, Twilio, Google Maps, Shopify) - Programming language/framework: {{language}} - What I am trying to do: {{intent}} - Error message or unexpected behavior: {{error_description}} - Relevant code snippet: ``` {{code_snippet}} ``` - What I have already tried: {{already_tried}} Deliver a structured debugging report: ## 1. Root Cause Analysis Explain exactly what is causing this issue (be specific — naming the exact line, parameter, or misconception). ## 2. Corrected Code Provide the fixed code with inline comments explaining each change. ## 3. Step-by-Step Fix Instructions Numbered steps to apply the fix, including any config or environment changes. ## 4. Why This Happens Brief explanation of the underlying concept so the developer understands, not just copies. ## 5. Testing the Fix How to verify the fix works (test case, curl command, or assertion to add). ## 6. Prevention Checklist 5 best practices to avoid this class of error in future integrations. ## 7. Related Pitfalls 2-3 other common mistakes developers make with {{api_name}}.
Related Prompts
Flutter Mobile App Code Generator
Generate production-ready Flutter code for mobile app screens and features — with proper widget structure, state management, and platform conventions for iOS and Android.
Tree-of-Thought Problem Explorer
Explore multiple solution paths simultaneously using branching reasoning to find optimal outcomes for complex problems.
Senior-Level AI Code Review & Refactor Guide
Performs a thorough senior-engineer-level code review with prioritized refactoring recommendations, security checks, and performance improvements.
Chain-of-Thought Reasoning Generator
Generate step-by-step reasoning prompts that guide AI models through complex problem-solving with explicit logical steps.