Skip to main content
Solved

API Returns Empty Response via Postman but Works in Browser

  • July 8, 2025
  • 7 replies
  • 75 views

Forum|alt.badge.img+2
  • Do Gooder (Customer)
  • 9 replies

Hi all, I’m running into a strange issue with a REST API endpoint.

When I hit the endpoint in the browser (while logged in), I get the expected JSON data. But when I try the same request in Postman or via a script, I get a 200 OK response with an empty body.

Endpoint->
https://hostname.com/main/ifsapplications/projection/v1/RecruitmentRequisitionHandling.svc/PersonnelRequisitions 

Postman Response

 

Browser Response

Troubleshooting so far:

  • Confirmed authentication is working (token/session returns 200).

  • Exported and replicated browser headers (including auth cookies/token) in Postman.

  • Behavior persists across network environments and users.


Has anyone else faced this kind of issue? If so, what was the root cause or workaround that helped you resolve it?

Best answer by MMcK

As well as the client id and key you also provide user information in Postman

The username and password needs to be the same as you’ve used for the browser, so that the rules for accessing the HR data are applied consistently.

 

7 replies

Forum|alt.badge.img+2
  • Author
  • Do Gooder (Customer)
  • 9 replies
  • July 8, 2025

I tried linking the user I created to the company and site that this projection’s results belongs to as suggested by this link, but still the result is empty.


Forum|alt.badge.img+10
  • Hero (Customer)
  • 77 replies
  • July 8, 2025

Hi,

Just checking (I know you said it persists across users) but are you using the same username within Postman as you logged in with when you used the browser?

MMck

 


Forum|alt.badge.img+2
  • Author
  • Do Gooder (Customer)
  • 9 replies
  • July 8, 2025

Hi ​@MMcK, nope.

I used IFSAPP user account, and another user account. The account I am using on Postman  is an IAM_USER I created and assigned rights and access to this projection.


Forum|alt.badge.img+10
  • Hero (Customer)
  • 77 replies
  • July 8, 2025

Hi VICMUMO

Try using the same account in Postman as you used for the browser.  I believe there are additional rules for users about what HR information they can access.

 


Forum|alt.badge.img+2
  • Author
  • Do Gooder (Customer)
  • 9 replies
  • July 8, 2025

Hi ​@MMcK, the postman request uses OAuth2.0, I provide a client_id + secret key. I don’t think the user+password applies in this case.


Forum|alt.badge.img+10
  • Hero (Customer)
  • 77 replies
  • Answer
  • July 8, 2025

As well as the client id and key you also provide user information in Postman

The username and password needs to be the same as you’ve used for the browser, so that the rules for accessing the HR data are applied consistently.

 


Forum|alt.badge.img+2
  • Author
  • Do Gooder (Customer)
  • 9 replies
  • July 9, 2025

Thank you, ​@MMcK.

Your suggestion completely did the trick—it was the missing piece I’d been chasing for hours. The data is now flowing as expected in Postman.

Really appreciate you sharing your insight.