https://clinicaltrials.gov/data-api/api According to the documentation, you simply need to pass the token as a query parameter:
https://clinicaltrials.gov/api/v2/studies?pageToken=XXXXXXXXX