{"_id":"56cf77536c5d7a13005eeb90","__v":2,"category":{"_id":"56cf75f3336aa60b0086a495","pages":["56cf77536c5d7a13005eeb90"],"project":"556cd8aec14029190092d292","__v":1,"version":"556cd8aec14029190092d295","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-25T21:45:23.802Z","from_sync":false,"order":6,"slug":"troubleshooting","title":"Troubleshooting"},"user":"556cbb50c14029190092d20f","parentDoc":null,"project":"556cd8aec14029190092d292","version":{"_id":"556cd8aec14029190092d295","__v":14,"project":"556cd8aec14029190092d292","createdAt":"2015-06-01T22:11:58.756Z","releaseDate":"2015-06-01T22:11:58.756Z","categories":["556cd8afc14029190092d296","55ca5a55241e790d004f47ea","55dc9fdb4f535537007da1b2","55dc9fdfc755b63700dc843c","55fdb08c4bebdf17004130d4","560ef4c2a36c610d00e7013e","5613db296a092921004c30c2","56156581dc8aea0d002475e8","56169d1ee98f5517005627a8","5622fde7de7dc01700c6dd5f","56cf75f3336aa60b0086a495","5818f3c02093901b00bcf91a","582f7ff88ea0800f0035639a","583f30c110448a2500dd990f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-02-25T21:51:15.409Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"If your API request is returning something other than what you expected and you believe there's an issue with the Reverb API, please take the following steps to first ensure that the problem is not in your code.\n\n1. Download and install [Postman](https://www.getpostman.com/). This free App will let you simulate requests to the API.\n\n2. In Postman, set up the same request you're doing in your code by setting the endpoint, http method, and body/params. Please make sure you set the Content-Type header to `application/hal+json` and the `X-Auth-Token` header to your [token](doc:personal-access-tokens) , if appropriate, or use the OAuth2 Bearer header if using [OAuth](doc:build-a-multi-user-app-with-oauth) .\n\n3. Click on \"Generate Code\" and select cURL from the list. This will generate a curl request you can execute in your terminal. As a first step for debugging, try running the generated curl command in your terminal window. If this provides a different response than in your code, the bug is in your code. If you are seeing a consistently problematic response, please post the curl request on the [Support Forum](https://dev.reverb.com/discuss). *If your curl request contains your token, please do not post it in public, instead email it to integrations at reverb dot com*","excerpt":"","slug":"debugging-an-api-request","type":"basic","title":"Debugging an API request"}

Debugging an API request


If your API request is returning something other than what you expected and you believe there's an issue with the Reverb API, please take the following steps to first ensure that the problem is not in your code. 1. Download and install [Postman](https://www.getpostman.com/). This free App will let you simulate requests to the API. 2. In Postman, set up the same request you're doing in your code by setting the endpoint, http method, and body/params. Please make sure you set the Content-Type header to `application/hal+json` and the `X-Auth-Token` header to your [token](doc:personal-access-tokens) , if appropriate, or use the OAuth2 Bearer header if using [OAuth](doc:build-a-multi-user-app-with-oauth) . 3. Click on "Generate Code" and select cURL from the list. This will generate a curl request you can execute in your terminal. As a first step for debugging, try running the generated curl command in your terminal window. If this provides a different response than in your code, the bug is in your code. If you are seeing a consistently problematic response, please post the curl request on the [Support Forum](https://dev.reverb.com/discuss). *If your curl request contains your token, please do not post it in public, instead email it to integrations at reverb dot com*