Automation step Rest API call to retrieve Customer AppID

We are using JSM and attempting to retrieve all Account IDs.
Approaches we’ve tried so far:

  1. Automation step: Used a REST API call to fetch the Portal Customer Account ID.
  2. Manual testing: Used Postman and JavaScript-based code to retrieve all customer data.

Although we receive a 200 OK response, the response body is empty and no data is returned.