Discussion

Ask a Question
Back to All

Rest API Integration Error

I'm trying to write an integration that extracts data from TargetProcess and stores it in our reporting database. If I use the API through a browser I'm able to get JSON records back. If I use Postman (a Rest API testing app) or try to access it through my code I get the error "one or more errors occurred". If I try through cURL I get a little more detail. I think I'm getting a 401 error; which is not authorized. Here is what I am trying to do:

https://mycompany.tpondemand.com/api/v1/UserStories/?format=json
Authorization Basic

Do I need different security permission to programmatically call the API vs through the browser that I am already logged into TargetProcess with? If I'm sending in a valid url and auth, what else could be the problem?

Thanks.
-Justin