The Samsung SmartThings API is an open platform that enables developers to quickly and securely connect a wide range of devices, services, and applications to the SmartThings smart home and connected environment. With the API, you can integrate your SmartThings-compatible products with a range of third-party services and applications for enhanced convenience, automation, and control.
Using the SmartThings API, you can create custom automations and routines, helpful notifications, unique user experiences, and otherwise extend the functionality of your SmartThings-enabled devices. You can also control your devices with voice commands or control remotely over the internet, adding an extra layer of convenience to your home or business.
Examples of What You Can Build with the SmartThings API
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smartthings: {
type: "app",
app: "smartthings",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.smartthings.com/v1/devices`,
headers: {
Authorization: `Bearer ${this.smartthings.$auth.token}`,
},
})
},
})
Samsung SmartThings uses API keys for authentication. When you connect your Samsung SmartThings account, Pipedream securely stores the keys so you can easily authenticate to Samsung SmartThings APIs in both code and no-code steps.
Personal access tokens are used to authorize interaction with the API for non-SmartApp use cases. Personal access tokens can be created on the personal access tokens page. See docs.