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
API Test Case Generator
Generate comprehensive test cases for REST APIs
On-Device AI App Feature Planner
Plans a mobile app feature set that runs entirely on-device using small AI models like Gemma 4 or Llama, with offline-first architecture and privacy-by-design principles.
System Prompt Engineer
Designs optimized system prompts for AI agents with clear instructions, constraints, and output formatting rules.
Excel VBA Automation Script
Generate VBA macros to automate Excel tasks