API debugging starts with the exact request and exact response.
Do not debug from memory.
Capture the URL, method, headers, authentication method, body, status code, and response message.
Four hundred commonly means invalid input.
Four oh one points to authentication.
Four oh three means access may be denied.
Four oh four means the resource may not exist.
Four twenty nine indicates rate limiting.
Five hundred-level errors usually come from the remote service.
Before redesigning the whole integration, compare the request with the documentation.
Confirm the URL, method, credential placement, required fields, content type, and data types.
Record enough detail to reproduce the failure without exposing secrets.
Include timestamp, request purpose, non-secret inputs, status code, and error body.
Good evidence makes support and debugging much faster.
Create a checklist that starts with endpoint and method, then authentication, headers, request body, status code, response body, and provider limits.
Use the same checklist instead of randomly changing settings.
For each status, write the first evidence you would inspect and one likely category of fix.
Do not say retry everything.
Match the response to the part of the request that likely needs attention.