Installation
Quick Start
1
Add container element
Add a div where the widget will mount:
2
Import and mount
3
Implement token endpoint
Create a backend endpoint that returns business-scoped tokens:
CDN Usage (No Bundler)
For vanilla JavaScript or server-rendered apps:Configuration Reference
Required Options
Optional Options
Theme Customization
Match your platform’s visual identity:Multi-Language Support
Change language dynamically:
Advanced Configuration
Custom Routing
If your app uses routing (e.g.,/dashboard/accounting), set basePath:
Hide Navigation Menu
Hide the widget’s header when you want to provide your own navigation:Deep Linking
Navigate directly to specific tabs:Environment Configuration
Security Checklist
Backend token generation
Backend token generation
✅ Do: Fetch tokens from your backend endpoint❌ Don’t: Generate tokens in frontend code or hardcode credentials
Token scope
Token scope
✅ Do: Use business-scoped tokens in frontend❌ Don’t: Expose partner-scoped tokens (grants access to all businesses)
HTTPS only
HTTPS only
✅ Do: Serve your app over HTTPS in production❌ Don’t: Use HTTP (tokens will be exposed)
Content Security Policy
Content Security Policy
If using CSP, allow:
script-srcfor widget JavaScriptconnect-srcfor API calls tohttps://api.thredfi.comorhttps://sandbox.thredfi.comframe-srcif widget uses iframes internally
Resources
Widget embedded. Time to verify your integration works end-to-end.