canonical: https://jentic.com/apis/smartthings.com/smartthings

# SmartThings API

The SmartThings API controls the devices, locations, rooms and scenes in a Samsung SmartThings home, letting a caller read device status and health and send commands to switches, sensors and other connected hardware. It also runs saved scenes, organises devices into locations and rooms, and lets SmartApps register event subscriptions and schedules against an installed app. Requests go to api.smartthings.com with a bearer token, either a SmartThings Personal Access Token or an OAuth2 token.

## For AI agents

List and control SmartThings devices, read their status and health, run scenes, and manage locations, rooms, subscriptions, and schedules for installed apps.

## Scope

Does not handle device firmware updates, video camera streaming, or energy billing. Use for controlling SmartThings devices, scenes, rooms, and SmartApp subscriptions only.

## Capabilities

- Send commands to a specific device through POST `/devices/{deviceId}/commands`, such as switching a light or locking a door
- Read the full status of a device or one of its components via GET `/devices/{deviceId}/status` and GET `/devices/{deviceId}/components/{componentId}/status`
- Check whether a device is online with GET `/devices/{deviceId}/health`
- Run a saved scene such as 'Good Night' with POST `/scenes/{sceneId}/execute`
- Organise a home into locations and rooms, creating and renaming rooms under `/locations/{locationId}/rooms`
- Register event subscriptions and schedules for an installed SmartApp under `/installedapps/{installedAppId}`

## Use cases

### AI home assistant controlling devices through Jentic

A home assistant agent connected through Jentic searches for 'send a command to a SmartThings device', receives the executeCommands operation with its schema, and acts on a single device id. Before acting it can call getDeviceHealth to confirm the device is online and getDeviceStatus afterwards to confirm the change took effect, so the agent reports what actually happened rather than what it requested.

Example prompt: Search Jentic for 'send a command to a SmartThings device', call GET /devices to find the device labelled 'Living Room Lamp', check GET `/devices/{deviceId}/health`, then POST `/devices/{deviceId}/commands` to switch it off and confirm with GET `/devices/{deviceId}/status`

### Bedtime and away routines with scenes

Households group several device actions into SmartThings scenes such as 'Good Night' or 'Away'. The SmartThings API lists those scenes with GET /scenes and runs one with POST `/scenes/{sceneId}/execute`, so a single call can lock doors, turn off lights and adjust the thermostat exactly as the scene was configured in the SmartThings app.

Example prompt: Call GET /scenes, find the scene named 'Good Night', and run it with POST `/scenes/{sceneId}/execute`

### Device health monitoring

Owners of battery-powered sensors and locks need to know when a device drops offline. Polling GET /devices and then GET `/devices/{deviceId}/health` for each device gives a per-device online or offline picture that can feed a daily report or an alert when a critical device such as a leak sensor stops reporting.

Example prompt: List devices with GET /devices, call GET `/devices/{deviceId}/health` for each one, and report any device whose health shows it is offline

### SmartApp event subscriptions and schedules

Developers building SmartApps use the installed-app endpoints to wire up event handling. POST `/installedapps/{installedAppId}/subscriptions` registers a subscription so the app is notified of device events, and POST `/installedapps/{installedAppId}/schedules` adds a recurring schedule, with matching list and delete operations to clean up when the app is reconfigured.

Example prompt: Call GET /installedapps to find the installed app id, list its current subscriptions with GET `/installedapps/{installedAppId}/subscriptions`, then create a new subscription with POST `/installedapps/{installedAppId}/subscriptions`

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/devices` | List devices |
| GET | `/devices/{deviceId}/status` | Get device status |
| POST | `/devices/{deviceId}/commands` | Execute device commands |
| GET | `/devices/{deviceId}/health` | Get device health |
| GET | `/scenes` | List scenes |
| POST | `/scenes/{sceneId}/execute` | Execute a scene |
| GET | `/locations/{locationId}/rooms` | List rooms in a location |
| POST | `/installedapps/{installedAppId}/subscriptions` | Create an event subscription |

## Key resources

- **Devices** — List devices, read status and health, send commands, and update or remove devices
- **Locations and rooms** — Create, update, and delete locations and the rooms inside them
- **Scenes** — List saved scenes and execute them
- **Installed apps** — List installed SmartApps and manage their event subscriptions and schedules
- **Apps** — Register, update, and delete SmartApp definitions

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 55 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 74 / 100
  - Developer Experience & Jentic Compatibility: 63 / 100
  - AI-Readiness & Agent Experience: 52 / 100
  - Agent Usability: 94 / 100
  - Security: 60 / 100
  - AI Discoverability: 22 / 100
- **View full report:** https://jentic.com/apis/smartthings.com/smartthings/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring SmartThings by hand means generating a Personal Access Token or running an OAuth2 flow, then threading device, location and installed-app ids through every call. Through Jentic you install once, import the SmartThings API from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** SmartThings puts the device id in the URL path (`/devices/{deviceId}/commands`), so a rule can pin your agent to one device: it can read and command that lamp and nothing else. You choose the operations it may call, so destructive ones like device deletion or location deletion are not included unless you add them.
- **Credential handling:** Your SmartThings token is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'turn off a light' or 'run a scene', and Jentic returns the matching SmartThings operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Hubitat API** — Local-first smart home hub with its own device control API
- **IFTTT API** — Connects smart home triggers to hundreds of other services
- **LIFX API** — Direct control of LIFX smart bulbs, colours, and effects
- **ecobee API** — Thermostat control and runtime data for ecobee devices

## FAQ

### What authentication does the SmartThings API use?

Per its OpenAPI spec, the SmartThings API authenticates with a bearer token in the Authorization header, which can be a SmartThings Personal Access Token or an OAuth2 token. Through Jentic the token is stored encrypted by your own Jentic One instance and injected when the call runs, so the agent never handles it.

### Can I send commands to a device with the SmartThings API?

Yes. POST `/devices/{deviceId}/commands` executes commands against one device, for example switching it on or off. Pair it with GET `/devices/{deviceId}/status` to read the resulting state and GET `/devices/{deviceId}/health` to check the device is online before you send anything.

### What are the rate limits for the SmartThings API?

The OpenAPI spec does not specify rate limits. Check the SmartThings developer documentation at https://developer.smartthings.com for current limits, and have your agent read device status only when it needs it rather than polling continuously.

### How do I run a SmartThings scene through Jentic?

Install Jentic One with `curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh`, add the SmartThings API from the Jentic API Directory, and store your SmartThings token. Your agent then searches for 'run a SmartThings scene', calls GET /scenes to find the scene id, and runs it with POST `/scenes/{sceneId}/execute.` To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Can I limit what my agent is allowed to do with the SmartThings API?

Yes. For example, write a rule that allows GET `/devices/{deviceId}/status` and POST `/devices/{deviceId}/commands` for the id of your living room lamp only. The agent can then check and switch that lamp, but it cannot command your door lock, delete devices, or change locations, and every call it makes is logged.

### Can the SmartThings API organise devices into rooms?

Yes. Rooms belong to a location: GET `/locations/{locationId}/rooms` lists them, POST `/locations/{locationId}/rooms` creates a new one, and PUT `/locations/{locationId}/rooms/{roomId}` updates an existing room. GET /locations returns the location ids you need first.
