Sadeesha Jayaweera
Sadeesha Jayaweera
Engineering• Oct 12, 2026• 6 min

Debugging APIs like a support engineer

The exact checklist I use before escalating — with Postman + logs.

Originally cross-posted on MediumRead on Medium
Debugging APIs like a support engineer
# Debugging APIs like a support engineer When API errors surface in production, the instinctive developer response is often to jump straight into application code. But in high-volume customer environments, an engineer who troubleshoots methodically from the outside in can resolve or pinpoint 90% of failures in minutes. Here is the exact checklist I use before escalating any API issue. ## 1. Capture the Raw HTTP Envelope Never rely on screenshots of frontend error toast messages. Extract: - Exact Request URL with all query parameters - HTTP method (POST, PUT, PATCH, GET, DELETE) - Request Headers (especially Content-Type, Authorization, Accept, User-Agent) - Raw JSON / Form Payload - Server Response Headers (X-Request-Id, Date, Cache-Control) - Raw Response Body ## 2. Reproduce in an Isolated Client (Postman) Strip away the web application UI entirely: - Import or craft the minimal viable request payload in Postman. - Check SSL/TLS handshake failures or proxy intercept issues. - Test variations: omitting optional fields, sending edge-case string formats, and checking payload size limits. ## 3. Map HTTP Status Codes to Root Causes - **401 Unauthorized**: Token expired, signature invalid, or header formatted as "Token xyz" instead of "Bearer xyz". - **403 Forbidden**: Token valid, but lacks the specific resource scope or tenant privilege. - **422 Unprocessable Entity**: JSON schema mismatch, unparseable dates, or missing required nested objects. - **502/504 Bad Gateway / Gateway Timeout**: Downstream microservice or database connection pool exhaustion. ## 4. Write Down the Repro Before Escalating Engineering teams love support engineers who hand over a curl command that reproduces the issue deterministically. When you save engineers 30 minutes of guesswork, fixes get merged faster.
Enjoyed this post?Let's connect