Survey123 REST API: how to get a token? featureLayerUrl?

2167
3
04-22-2021 11:04 AM
JoseVidal
New Contributor III

I am trying to use the feature report API but the documentation at that link does not tell me how to authenticate.

According to that page, to get a sample report template (just testing) I have to do:

Is the token value the API key I can generate from following this documentation ? So, token==API Key? if not, how do I get a token?
 
How do I get the featureLayerUrl for my survey123 survey that I just created?
 
All I am trying to do is to create a simple survey with survey123 and then generate and fetch one of the reports it can generate using the REST API.
 
3 Replies
KerryKang
Occasional Contributor II

You can extract token in the survey form. 

Use this in calculation..maybe set the type as hidden and esri type null.

pulldata(‘@property’,’token’)

kerry

0 Kudos
JoseVidal
New Contributor III

Thanks!

Does anybody know how I get the featureLayerUrl?

0 Kudos
KerryKang
Occasional Contributor II

Hi Jose, 

 

You can get the feature layer url on the layer's overview page. At the bottom right, there is a url you can copy.

 

KerryKang_0-1619193248187.png

Kerry

0 Kudos