Dear All,
Does anyone know how to generate tokens from Survey123 using HTTP action using Power Automate?

I know that if I use the following as "body", I can generate a token without issues...but it against best practice.
username=USERNAME&password=PASSWORD&f=json&referer=https://survey123.arcgis.com/surveys?portalUrl=https://yourportal.com/portal
 
Any of the following authentication method will work? I tried "Basic", but it didn't not work...but return 400 error asking for username and password.

 
 
Are any tutorial or blog post regarding this? I need to generate "token" for public facing survey securely using Power Automate, since public facing survey will not have "token" generated for Survey123 "Create Report" action.
 
Thanks a lot!
Reno