Trying to create a smartthings API communication... failing

Hi, I want to be able to control my smart things devices via API calls, especially my thermostats.
I followed the instructions here: API | Developer Documentation | SmartThings and managed to get the devices list and send them instructions using the 24 hours API key. Now, how do I make this permanent so that I don’t need to generate a new API key every single time?
It says to use the oauth, but there is no instruction on how to?

In another thread I demonstrated the flow used to create OAuth-In apps. While it wasn’t the original intention of the post it turned out I’d demonstrated how you could effectively replace a PAT for many common uses without having to do too much work.

Regardless of that, I recommend you have a good look at the developer documentation, and in particular the section on connected services to get a feel for what is going on and links to example apps and SDKs.

2 Likes