Account info for sending emails and sms from analysis

Account info for sending emails and sms from analysis

I am setting up an application for a hardware device that users will create their own tago run account and register the device with. One thing I am working through is creating email/sms notifications for certain conditions which will be handled by an analysis script.

I was going to use the email and phone number from a user's account, but it appears for my analysis to have access to that information, it would need a token from the user's account. I want to make this as seemless as possible for the end user, so needing them to generate a token and type it in somewhere is not what I want. Is there a way to do this without tokens, or have scripts that automatically generate the tokens in the background?

Using the info from the user's account seems like the best place to store/retrieve the data, but if its locked up for understandable security reasons, my second choice is to create tags in the user's account that can be populated with the necessary info.