i want to make iot control service by using smart app token.
and that service is not just for me, service should be used by any person.
so i need to know samrt app token up to user to control devices.
as i know, samsung account is the way to know smart app token.
but i tried to find out how i can make smart app token by samsung account. but i couldn’t find it though i checked SA developer site and Mosaic Site about SA…
so please let me know if there is a way to get smart app token by samsung account ID and PW.
Moreover, it is better to know the logic by Rest API.
Welcome to the SmartThings Community, @user15!
Can you provide more details about your use case, please?
Do you want to provide your own service (eg. a web page) to allow users to control the devices installed in their SmartThings account?
i want that user can control their own devices by my service, if they offer about samsung account information to my service to get smart app token by rest api services.
as i know smart app token can create by samsung account and that token can use smart things api.
A SmartApp Token is generated when we install a SmartApp in the SmartThings app.
To use this one, you would need each user to create their own SmartApp project and share with you the App ID, client ID, and client secret. As this is sensitive information, you would need to handle them properly to avoid security issues.
The users can create a Personal Access Token (PAT) with the necessary scopes. Then, on your service, you would ask them to enter that value. This is a less risky approach because access is restricted to the defined scopes.
There’s a third option: OAuth Integrations, but you need to have an organization registered in SmartThings to have this access authorized.
Here, the user logins to his SmartThings account and you can get an Access Token based on the permissions authorized by the user.
@nayelyz
How do I achive the SmartApp Token.
Can you share me details.
I also want to do a similar thing. But I am unable to find the endpoint url to get access token from SmartThings Server.
Could you explain more about your project or your integration?
The previous user selected an OAuth integration for his project but you commented about a SmartApp I will need more information to understand your case and provide better help.