Debug a Failing API Request
Problem this workflow solves
You have a cURL command or API call that returns unexpected results, errors, or wrong data — and you need to diagnose why.
Steps
- 1Open Tool
Convert the failing cURL to readable code
Paste the cURL command that is failing. The converter breaks it into method, URL, headers, and body so you can see every parameter clearly.
- 2Open Tool
Format and inspect the request body
Paste the raw JSON request body into the formatter. Pretty-print it to spot missing fields, wrong types, or malformed keys at a glance.
- 3Open Tool
Validate your authentication token
If the request uses a JWT, paste it here to decode the header and payload. Check that the token is not expired and that the claims match what the API expects.
- 4Open Tool
Analyze the response payload
Paste the API response to scan for unexpected sensitive fields, error messages embedded in data, or structural issues that might indicate a misconfiguration.
- 5Open Tool
Rebuild the corrected request as cURL
Once you have identified the fix, convert your corrected code snippet back to a clean cURL command to verify it works before updating your implementation.
What you achieve
You identify the root cause of the API failure — whether it is a malformed request, expired token, or unexpected payload — and have a corrected, working request ready to test.