Subscribe to SmartThings device events via the Subscriptions API from a webhook SmartApp

domain: iot · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register a webhook-based SmartApp requesting device read permission (r:devices:* for specific devices or r:devices for all devices in a location)
  2. During the INSTALL or UPDATE lifecycle, after the user selects devices, POST a subscription request to https://api.smartthings.com/installedapps/{installedAppId}/subscriptions
  3. Choose sourceType DEVICE (specific authorized devices) or CAPABILITY (all devices of a capability in the location), specifying capability/attribute/value in the JSON body
  4. Handle incoming EVENT lifecycle POST requests delivered to your webhook callback URL or Lambda, each containing an events array with deviceEvent details
  5. On UPDATE, delete stale subscriptions via DELETE /installedapps/{installedAppId}/subscriptions/{subscriptionId} (or the whole collection) and recreate them for newly authorized devices

Known gotchas

Related routes

Control and subscribe to SmartThings devices and scenes using the SmartThings REST API
developer.smartthings.com · 6 steps · unrated
Publish and subscribe to device events using the Particle Device Cloud API and webhooks
docs.particle.io · 6 steps · unrated
Subscribe to real-time Nest SDM device events via Google Cloud Pub/Sub
developers.google.com/nest/device-access · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans