I made a survey and tested it with tokens like xyz123. It seems to work, emails were correct both with manually clicking "Send invitation" -link and with
Code:
mail_registered_participants
remote API call. Now the customer uses tokens like xyz/123 and the {SURVEYURL} is not expanded to working url with remote API.