There is no mentioning of pagination for the intune devices retuned in the response. So assuming there are 50k devices enrolled in Intune ( now Endpoint Manager ), will the API return the attributes of all the 50k devices in a single GET call?
This API call actually seems to support paging (try adding $top=1 to the URL). For me this returns the regular @odata.nextLink URL. The documentation also mentions that the regular OData query parameters are supported.