Create a Connect Webview
Use Connect Webviews to enable your users to connect their devices and systems to Seam.
Last updated
Use Connect Webviews to enable your users to connect their devices and systems to Seam.
Last updated
© Seam Labs, Inc. All rights reserved.
To enable a user to connect their devices or systems to Seam, they must sign in to their device or system account. To enable a user to sign in, you create a connect_webview
. After creating the Connect Webview object, you receive a URL that you can use to display the visual component of this Connect Webview for your user. You can open an iframe or new window to display the Connect Webview.
POST
https://connect.getseam.com/connect_webviews/create
provider_category
String
Specifies the category of providers to include. Supported categories:
stable
consumer_smartlocks
thermostats
noise_sensors
accepted_providers
String[]
Array of accepted device provider keys as an alternative to provider_category
. Use this parameter to specify accepted providers explicitly. See Device Provider Keys.
custom_redirect_url
String Optional
URL to redirect user to after provider login is complete
custom_redirect_failure_url
String
Optional
Alternative URL to redirect the user on error. If this is not set, falls back to custom_redirect_url
automatically_manage_new_devices
Boolean
Indicates whether newly added devices should appear as managed devices
Default: true
You should make a newconnect_webview
for each unique login request.
Each connect_webview
tracks the user that signed in with it. You receive an error if you reuse a Connect Webview for the same user twice or if you use the same Connect Webview for multiple users.
This section shows the JSON response returned by the API. Since each language encapsulates this response inside objects specific to that language and/or implementation, the actual type in your language might differ from what’s written here.