Skip to main content
LEGACY GUIDEThis guide is for Platform API v2011101. For guidance on the newest version, see Connectivity Integration Guides.
The Connect Widget requires careful configuration for different tasks.
INFOIf you’re looking for guides to implement the widget using one of our SDKs or other implementation methods, see Implementation Guides.
You’ll configure your widget using the Request Widget URL endpoint, which will return a URL that you’ll embed into the SDK. When end users successfully connect to their institutions, the widget will automatically start aggregating data, depending on what you specified in your configuration. You’ll use separate API endpoints to actually read the data the widget has aggregated. If you want to know what data the widget can aggregate, see Data Aggregation.

Configuration Quick Reference

The following table shows the Connect Widget configurations used for common tasks.
INFOFor more guidance, see Configure Your Connect Widget Step-by-Step.

Configure Your Connect Widget Step-by-Step

The section walks you through configuring your widget URL request.
INFOEvery step in this guide requires configuring the Request Widget URL endpoint.

1. Set the Widget Type

The widget_type configuration ensures the widget URL you’ll receive is for the Connect Widget.

2. Set the Language

Getting a widget in a specific language requires passing the desired language as a parameter in the Accept-Language header with requests to the Request Widget URL endpoint. Don’t use the locale parameter in the request body; the Accept-Language header is the only available option when embedding the Connect Widget by itself. If no header is provided, the Connect Widget will default to en-US. The following languages are supported in the Connect Widget:
  • en-CA
  • en-US
  • es
  • fr
The following example sets the language of the Connect Widget that will be returned to Spanish.

3. Set the Mode

The mode configuration sets which data the widget will later aggregate, sets which events we’ll detect in the widget that you could (or must) handle, and determines how you’ll set some other configurations. The mode defaults to aggregation and can be set to verification, depending on your needs.
  • If you just need the widget to aggregate account and transaction data, don’t set this configuration. It defaults to aggregation.
  • If you need the widget to retrieve account numbers and routing/transit numbers, relating to Instant Account Verification (IAV), then set the mode to verification.
Verification mode is used to gather account and routing numbers, which we call instant account verification (IAV). Setting the mode to verification will change several behaviors for the Connect Widget and for associated members:
  • The end user will be prompted to verify an existing connection (if they have one) before going to search.
  • Connect will only search for and display institutions that support IAV.
  • After gathering credentials, the widget will start aggregating IAV data rather than account and transaction data.
  • Because this is for IAV, include_transactions will be set to false, so no transaction data will be gathered. If this data is needed, you must explicitly set include_transactions to true.
  • Background aggregation will be disabled for members created by the Connect Widget, even if the include_transactions parameter is set to true. For existing connections, the existing background aggregation setting is preserved.
  • For end users who search for an institution that doesn’t support IAV, the microdeposits flow begins and the end user is presented with the option to verify using microdeposits. In the microdeposit flow, no member is created on the MX platform. You must log the microdeposit_guid in step 5 and use it to load the widget in the correct configuration when the end user returns several days later to verify their deposit amounts. Loading with the correct microdeposit_guid ensures the widget prompts for verification amounts and perform other tasks related to microdeposit verifications.
If you need to collect account owner identity data in addition to verification or aggregation data, you can set that in the next step. Identity data must be aggregated in addition to either Account Aggregation or Instant Account Verification data. The following example shows a request where the mode is set to verification.

4. Set Other Data Configurations

In addition to having the widget aggregate account and transaction data ("mode":"aggregation") or account and routing numbers ("mode":"verification"), you can set some other configurations that also affects which data the widget will aggregate.

5. Set Mobile Configuration

If you’re integrating the widget on a desktop platform, you can skip this step. If you’re integrating the widget onto a mobile platform, you’ll want to set:
  • "is_mobile_webview": true
  • client_redirect_url
When "is_mobile_webview": true the widget will:
  • Send events to the WebView via window.location = {scheme}://{event path}?metadata={json encoded metadata} instead of window.postMessage(eventObject).
  • Set the oauth_referral_source to APP so the OAuth flow will redirect back to a native application instead of sending a postMessage to the opening window.
  • Prevent the widget from automatically trying to open an OAuth window; instead it will send the OAuth requested postMessage so your app can correctly open the OAuth window in the user agent.
The following table details the configurations in this step. The following example sets is_mobile_webview to true.

6. Set Authentication Configurations

These options are all related to authentication and how it’s handled in different situations, including how some event messages are delivered. If you’re supporting OAuth flows, you’ll want to set:
  • client_redirect_url or ui_message_webview_url_scheme (we recommend using client_redirect_url if possible)
  • enable_app2app
  • oauth_referral_source. This is meant for hybrid webapp integrations. For more info, see OAuth in WebViews.
The following table details the configurations in this step. The following shows an example request for an integration on a mobile app.

7. Set the Widget’s Default View

You can load the Connect Widget directly to an institution (using the institution’s code or guid) or member (using the member’s guid) to let end users complete specific tasks without manually searching for the institution. If you’re using the widget in verification mode to prompt the end user for verification amounts and to perform other tasks related to microdeposit verifications, set the current_microdeposit_guid to load the widget. For more info, see How to Request a Microdeposit Verification.
WARNINGIf you set current_institution_code, current_institution_guid, or current_member_guid to true, you must set disable_institution_search to true to prevent the end user from accessing the search institution page and manually loading a different institution during the initial connection. You must also listen for the backToSearch postMessage event. See the dropdown that follows for more info.
If you set disable_institution_search to true, you must also listen for the backToSearch event to intercept the user from navigating back to search during the flow.Don’t listen for any Primary Action postMessages when you disable search.
INFOEven if you configure the Connect Widget to disable institution search, you must still listen for the postMessage. All buttons that will take a user to the search institution page are still displayed in the Connect Widget experience and your user can still select them. The postMessage will notify you that the client has taken this action so you can direct your user elsewhere.
This may trigger during several “steps” in the Connect Widget flow:
  • Connected
  • MDV/Microdeposits Verified
  • Login Error
  • Credentials/OAuth (back button)
The following table details the configurations in this step. The following example will load the Connect Widget to a specific institution. Because in this example we’re loading to an institution directly, the request also disables the ability to search for institutions in the widget.

8. Set the Color Scheme

If you want to load the widget in dark mode, set "color_scheme": "dark". It defaults to light.
SUCCESSYou’ve configured your Connect Widget!