To access the ngSurvey API, use the survey developer section to generate a JWT token. This token is time-limited and restricted to the current survey and user roles/rights. You may revoke the token anytime. Regenerating a token instantly invalidates any previously generated tokens.
The default lifetime of a token is 2 days, you can change it to up to 7 days using following environment variables : NGSurvey:FormJWTAccessTokenExpiration