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
Chain-of-Thought Reasoning Generator
Generate step-by-step reasoning prompts that guide AI models through complex problem-solving with explicit logical steps.
Few-Shot Learning Prompt
Teach AI patterns through examples for better outputs
AI Code Reviewer
Get a comprehensive code review with suggestions for improvements, security issues, and best practices
Test Prompt
Test description