Attaching Custom Metadata to the Connect Webview
Use custom metadata to link internal IDs from your application to a Seam Connect Webview and connected account.
await seam.connectWebviews.create({
provider_category: "stable",
custom_metadata: {
"your_app_user_id": "xxxx" // Insert your custom data here.
}
}){
url: 'https://connect.getseam.com/connect_webviews/view?connect_webview_id=3937fa0b-ab09-4a00-9f10-69864750ed07&auth_token=PVHmtzULRFEQDny776KDsegSQ5t2SsZHR',
status: 'pending',
workspace_id: '398d80b7-3f96-47c2-b85a-6f8ba21d07be',
custom_metadata: { id: 'internalId1' },
...
}curl -X 'POST' \
'https://connect.getseam.com/connect_webviews/create' \
-H 'accept: application/json' \
-H 'Authorization: Bearer ${API_KEY}' \
-H 'Content-Type: application/json' \
-d '{
"provider_category": "stable",
"custom_metadata": {
"your_app_user_id": "xxxx"
}
}'{
"connect_webview": {
"url": "https://connect.getseam.com/connect_webviews/view?connect_webview_id=3c3f4c15-e7db-47c6-bc5a-1bf206ff269c&auth_token=LrpMC4MVHAY8YJRcNFeX1nQcb7tGNwpot",
"status": "pending",
"workspace_id": "398d80b7-3f96-47c2-b85a-6f8ba21d07be",
"custom_metadata": {
"id": "internal_id_1"
},
...
},
"ok": true
}Next Steps
PreviousRetrieving Devices or Access Control Systems Connected Through a Connect WebviewNextFiltering Connect Webviews by Custom Metadata
Last updated
Was this helpful?

