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
Propertiesconnect_webview_id
String (UUID)
ID of the Connect Webview
accepted_providers
Array of strings
accepted_devices
Array of strings
any_provider_allowed
Boolean
Indicates whether any provider is allowed
any_device_allowed
Boolean
Indicates whether any device is allowed
selected_provider
String
custom_metadata
JSON object
Optional
automatically_manage_new_devices
Boolean
wait_for_device_creation
Boolean
custom_redirect_url
String
Optional
If set, the Connect Webview redirects to this URL when the user successfully pairs a device or, if the custom_redirect_failure_url
is not set, when an unexpected error occurs
custom_redirect_failure_url
String
Optional
If set, the Connect Webview redirects to this URL when an unexpected error occurs
status
String
pending
or authorized
url
String
URL to the webview
login_successful
Boolean
Indicates whether the user logged in successfully using the Connect Webview
connected_account_id
String (UUID)
ID of the Connected Account that was created after the user successfully logged in
created_at
String
Date and time at which the Connect Webview was created
authorized_at
String
Date and time at which the user authorized (through the Connect Webview) the management of their devices
workspace_id
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.
stable
Only returns provider integrations marked as stable.
consumer_smartlocks
Only returns provider integrations marked as consumer smart locks.
thermostats
Only returns provider integrations marked as thermostats.
noise_sensors
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.
my_2n
four_suites
akiles
akuvox
assa_abloy_credential_service
visionline
august
avigilon_alta
brivo
controlbyweb
doorking
dormakaba_oracode
ecobee
genie
honeywell_resideo
igloohome
kwikset
latch
linear
lockly
minut
google_nest
noiseaware
nuki
pti
salto_ks
salto
schlage
smartthings
tedee
ttlock
wyze
yale
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