Connect Widget
The Connect widget lets your end users authorize their CRM/PMS accounts directly from your application. It handles OAuth flows, credential entry, and connection management — you just embed it and receive a callback when the connection is ready.How It Works
1. Create a Connect Token
Generate a short-lived token scoped to an end user:| Parameter | Type | Required | Description |
|---|---|---|---|
endUserId | string | Yes | Your internal user ID — used to scope connections |
endUserDisplayName | string | No | Display name shown in the widget header |
endUserEmail | string | No | Email address of the end user |
2. Embed the Widget
Install the Connect SDK:Vanilla JS / TypeScript
React
CDN (no bundler)
3. Fetch Data
Once connected, use the unified API to access the user’s data:Widget Customization
The Connect widget’s appearance (colors, fonts, logo, dark mode) is configured from the RouteMCP dashboard under SDK Config. No code changes needed — the widget automatically picks up your branding.Supported Providers
| Provider | Slug | Auth Type |
|---|---|---|
| HubSpot | hubspot | OAuth 2.0 |
| Zoho CRM | zoho-crm | OAuth 2.0 |
| Pipedrive | pipedrive | OAuth 2.0 |
| GoHighLevel | gohighlevel | OAuth 2.0 |
| Monday CRM | monday-crm | OAuth 2.0 |