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
Debug Root Cause Analyzer
Systematically diagnose bugs and errors using structured root cause analysis — get a clear explanation, fix options, and prevention strategy from any error message or unexpected behavior.
Data Pipeline Architecture Review
Review and optimize data pipeline architectures for performance and reliability
Code Migration Planner
Creates a detailed migration plan for moving codebases between frameworks, languages, or architectures — with risk assessment, phased steps, and rollback strategy.
Terminal AI Coding Agent Task Planner
Structures complex software engineering tasks into clear, actionable instructions for terminal-native AI coding agents like Mistral Vibe, Claude Code, and OpenClaw.