Skip to main content

While I am trying to fetch all associative devices of my console via api I am getting [ ] empty array in response.. 

Hi,

Could you share the API call?


/servers?patchStatus=missing&limit=500&o=0000&pending=1&page=10&filters[is_compatible]=1&sortDir=desc


You have a lot of filters there. Perhaps start with just the org level call and work from there?

https://console.automox.com/api/servers?o=<YOUR_ORG_ID>


@broken_stranger_n 

The query parameters look accurate in your API call. I would certainly simplify the API call initially as you build out any automation you are putting together to make sure there are results as previously mentioned. I do not have the complete context to what you are putting together, but you may also want to review:

  • Confirm that you have the correct org_id in the query parameter
  • Validate the HTTP Status Code you receive after making the request
  • Confirm you are making a GET HTTP request to the servers resource
  • Confirm you are providing the right authentication token

What language or tool are you using to make the request? You can also review some examples depending on what you are using to get the expected response.

 

Hope this help!

 

Ben


Reply