Previewing and Integrating Widgets
Learn how to preview, authenticate, and embed Fastn widgets into your apps using iframe or React, with options for custom auth, filtering, and connector overrides.
Last updated
Was this helpful?
Was this helpful?
projectId: "<PROJECT_ID>", // Workspace ID where the widget is configured
tenantId: "<TENANT_ID>", // Tenant/end user identifier
authToken: "<AUTH_TOKEN>" // Token used in the custom auth flow{
"clientId": "<CLIENT_ID>",
"clientSecret": "<CLIENT_SECRET>",
"params": {
"scope": "app_mentions:read,channels:history,channels:join,channels:manage,channels:read,chat:write.customize,chat:write.public,chat:write,files:read,files:write,groups:history,groups:read,groups:write,im:history,im:read,im:write,links:read,links:write,mpim:history,mpim:read,mpim:write,pins:read,pins:write,reactions:read,reactions:write,reminders:read,reminders:write,team:read,usergroups:read,usergroups:write,users:read,users:write,users.profile:read,users:read.email"
}
}"widgets": [
{
"id": "_knexa_c9085d88-85d0-4436-82c6-4e42d6aba4c6",
"name": "Slack",
"hidden": false,
"disable": false,
"subscribed": true,
"hideActions": [],
"disableMessage": "",
"subscriptionUrl": "",
"hideActionsByName": []
}
]"widgets": [
{
"id": "_knexa_c9085d88-85d0-4436-82c6-4e42d6aba4c6",
"name": "Slack",
"hidden": true,
"disable": false,
"subscribed": false,
"hideActions": [],
"disableMessage": "",
"subscriptionUrl": "",
"hideActionsByName": []
}
]