As many of you know, we recently made some announcements at SDC around the SmartThings Cloud. We’ll be providing more information about this soon, but one thing worth calling out is that the new API (it’s REST!) is already available!
While some of the APIs are specific to the new SmartApp model, the
/locations APIs can be used just like any other REST API. All you need is a personal access token, which you can get here.
Example CLI Tool
To highlight some of the APIs, we wrote a simple CLI tool as an example. It allows you to get information about and control your devices, through a simple Command Line Interface. More importantly, it shows how you might use the API for your own projects. It’s open-sourced, and you can find the repository here.
We’re excited about the new API, and encourage you to start experimenting with it. Checkout out the API docs, get a token, and start hacking!