I generate a token using generateToken. I can retrieve the private feature layers with the token. However, I always get error response when I try to retrieve the portal/online items:
In what context are you doing this operation with Survey123? I would need some more information on the workflow and where the token originates.