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
Docker Deployment Guide Generator
Creates a complete Docker containerization and deployment guide for any application, including Dockerfile, docker-compose, CI/CD, and production best practices.
Automated Code Review Critic
Perform comprehensive automated code review with security, performance, and best practices analysis
Security Adversarial Tester
Test AI systems for prompt injection and security vulnerabilities
Comprehensive Test Strategist
Generate a complete testing strategy including unit, integration, and e2e tests