Connect Webviews
Use Connect Webviews to connect to your users' smart devices to the Seam API
Last updated
Use Connect Webviews to connect to your users' smart devices to the Seam API
Last updated
© Seam Labs, Inc. All rights reserved.
The connect_webview
object represents a Connect Webview. Connect Webviews are fully-embedded client-side components that you add to your app. Your users interact with your embedded Connect Webviews to link their IoT device accounts to Seam. That is, Connect Webviews walk your users through the process of logging in to their device accounts. Seam handles all the authentication steps, and—once your user has completed the authorization through your app—you can access and control their devices using the Seam API.
Connect Webviews perform credential validation, multifactor authentication (when applicable), and error handling for each device brand that Seam supports. Further, Connect Webviews work across all modern browsers and platforms, including Chrome, Safari, and Firefox.
To enable a user to connect their device account to Seam through your app, you must first create a connect_webview
. Once created, this connect_webview
includes a URL that you can use to open an iframe or new window containing the Connect Webview for your user.
connect_webview
Properties
| String (UUID) | ID of the Connect Webview |
| Array of strings | |
| Array of strings | |
| Boolean | Indicates whether any provider is allowed |
| Boolean | Indicates whether any device is allowed |
| String | |
| JSON object Optional | |
| Boolean | |
| Boolean | |
| String Optional | If set, the Connect Webview redirects to this URL when the user successfully pairs a device or, if the |
| String Optional | If set, the Connect Webview redirects to this URL when an unexpected error occurs |
| String |
|
| String | URL to the webview |
| Boolean | Indicates whether the user logged in successfully using the Connect Webview |
| String (UUID) | ID of the Connected Account that was created after the user successfully logged in |
| String | Date and time at which the Connect Webview was created |
| String | Date and time at which the user authorized (through the Connect Webview) the management of their devices |
| String (UUID) |
When you create a Connect Webview, specify the desired provider category key in the provider_category
parameter. Alternately, to specify a list of providers explicitly, use the accepted_providers
parameter with a list of device provider keys.
key | Description |
---|---|
| Only returns provider integrations marked as stable. |
| Only returns provider integrations marked as consumer smart locks. |
| Only returns provider integrations marked as thermostats. |
| Only returns provider integrations marked as noise sensors. |
To list all providers within a category, use the List Device Providers method with the desired provider_category
filter.
To list all provider keys, use the List Device Providers method with no filters.
Provider Name | Device Provider Key |
---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
connect_webview
MethodsYou can perform the following actions on connect_webview
objects:
List of accepted
List of accepted
Selected provider of the Connect Webview, one of
A set of up to 50 keys, with key names up to 40 characters long. Accepts string or Boolean values. Strings are limited to 500 characters For more information, see .
Indicates whether Seam should for the connected account to make these devices available for use and management by the Seam API
Indicates whether Seam should in a newly-connected account before completing the associated Connect Webview
ID of the that contains the Connect Webview
and