Re: Is it possible to get 7000 devices in an Organisation information from Get Organisation Devices
The values for those tokens will always be different. You pretty much need to get them from the 'Link' field in the header data that is returned with each API call you make to the endpoint. That is what I was talking about in the thread that was linked to previously when I search for rel=next and then isolate the token value that is listed after startingAfter= in the data. That is the next token and you make another API call with that value specified for the startingAfter parameter. You keep making calls and appending/reviewing the data until you no longer find the rel=next value. Then you are on the last page of data.
If you want to see code, I can give you the Python code I wrote to get this data.