Get an embeddable URL for integrating a widget into your website or app. The URL expires after ten minutes or upon first use, whichever occurs first. You’ll need to obtain a new URL each time the page loads or reloads.
Include the widget_type in the request body to specify which widget you want to embed—the Connect Widget, a Personal Financial Management widget, or an Insights widget. Some request parameters are specific to certain widget types.
To embed the Connect Widget, set widget_type to connect_widget.
For a full list of available widget types, see Widget Types.
The language for localized text in the response, such as the widget and the member_status.error.user_message and member_status.error.error_message fields.
X-CALLBACK-PAYLOAD
string
The base64 encoded string defined in this header will be returned in the Member and Member Data Updated webhooks. This allows you to trace user interactions and workflows initiated externally and internally in the MX Platform. Max 1024 characters.
Path Parameters
user_identifier
string
required
Use either the user id you defined or the MX-defined user guid. See Assigning Resource IDs.
Body
application/json
The widget_url configuration options.
widget_url
object
required
Hide child attributes
widget_url.widget_type
string
required
This determines which widget URL you'll receive.
See Widget Types for a list of potential values. Additional request parameters may only apply to some widget types.
Example:
"connect_widget"
widget_url.additional_product_option
enum<string>
Only use this option if the widget_type is set to connect_widget or connections_widget. Requires use_cases.
Lets the end user add a product to a member from within the widget. transactions adds PFM to the member's use_cases and aggregates account aggregation data; account_verification adds MONEY_MOVEMENT and aggregates instant account verification data.
Available options:
account_verification,
transactions
Example:
"account_verification"
widget_url.client_redirect_url
string
Only use this option if the widget_type is set to connect_widget.
This determines the redirect destination at the end of OAuth when used with is_mobile_webview: true or oauth_referral_source: 'APP'.
Required when is_mobile_webview: true and ui_message_webview_url_scheme is "mx" or not provided.
Example:
"https://{yoursite.com}"
widget_url.color_scheme
enum<string> | null
This option can be passed to any widget_type but will not affect legacy PFM widgets.
Load the widget with the specified color_scheme; options are light, dark, and browser (respects user's browser setting). Defaults to light.
Available options:
light,
browser,
dark,
null
Example:
"light"
widget_url.connections_use_case_filter
boolean
Only use this option if the widget_type is set to connections_widget.
When true, the widget shows only members with the use_cases set in the same request. use_cases is required when this is true.
Example:
true
widget_url.current_institution_code
string | null
Only use this option if the widget_type is set to connect_widget.
Load the widget into the credential view for the specified institution.
Example:
"mx_bank"
widget_url.current_institution_guid
string
Only use this option if the widget_type is set to connect_widget.
Load the widget into the credential view for the specified institution.
Example:
"INS-f1a3285d-e855-b61f-6aa7-8ae575c0e0e9"
widget_url.current_member_guid
string | null
Only use this option if the widget_type is set to connect_widget.
Load the widget into a specific member that contains an error or requires multifactor authentication. The widget will determine the best view to load based on the member's current state.
This option takes precedence over current_institution_code and current_institution_guid.
Example:
"MBR-7c6f361b-e582-15b6-60c0-358f12466b4b"
widget_url.current_microdeposit_guid
string
Only use this option if the widget_type is set to connect_widget. This loads the Connect Widget to whichever step the microdeposit process is currently in, which may be the verify amounts step, an error state, and so on. This field is required if attempting to load a specific microdeposit for end users to enter amounts.
Example:
"MIC-1234567890"
widget_url.data_request
object
Used for the Connect Widget and Connections Widget. Specifies the data products to retrieve. This replaces the deprecated mode, include_transactions, and include_identity parameters and can't be sent with them.
Hide child attributes
widget_url.data_request.products
enum<string>[]
required
Contains the products you want to aggregate upon a successful connection.
Only use this option if the widget_type is set to spending_widget. When used with the Legacy Spending Widget, filters the widget to these accounts.
Example:
["ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1"]
widget_url.deep_link_params.date_range
object
Only use this option if the widget_type is set to spending_widget. When used with the Legacy Spending Widget, filters the widget to this date range. Set both from and to; from can't be later than to.
Hide child attributes
widget_url.deep_link_params.date_range.from
string
The start date of the range in YYYY-MM-DD format.
Example:
"2023-01-01"
widget_url.deep_link_params.date_range.to
string
The end date of the range in YYYY-MM-DD format.
Example:
"2023-12-31"
widget_url.deep_link_params.launch_integration
string
Only use this option if the widget_type is set to actionable_integration_widget. Launches a deep link integration. Valid value is direct-deposit.
Example:
"direct-deposit"
widget_url.deep_link_params.view
string
When used with the Cash Flow, Settings, or Money Dashboard widget, sets the widget's default view. Valid value for Cash Flow or Money Dashboard Widgets is manage_income. Valid values for the Notifications section of the Settings Widget (notifications_settings_widget) are accounts, budgets, or insights.
Example:
"manage_income"
widget_url.deep_link_params.widget
string
Only use this option if the widget_type is set to master_widget. Launches a specific view in the Master Widget. Valid values are accounts, budgets, cash_flow, debts, finstrong, goals, insights, investments, networth, recurringtransactions, spending, transactions, and trends.
Example:
"budgets"
widget_url.disable_background_agg
boolean
Only use this option if the widget_type is set to connect_widget. This determines whether background aggregation is enabled or disabled for the member created by the Connect Widget. Defaults to false for transaction aggregation and true for account verification. A global default for all members can be set by reaching out to MX.
Example:
false
widget_url.disable_institution_search
boolean | null
Only use this option if the widget_type is set to connect_widget.
Requires one of the following parameters: current_institution_code, current_institution_guid, or current_member_guid.
When set to true, navigating back to the search step triggers the Back to Search event. You must listen for this event and close the widget to avoid trapping the user in the search flow.
Example:
false
widget_url.enable_app2app
boolean
Only use this option if the widget_type is set to connect_widget. This indicates whether OAuth app2app behavior is enabled for institutions that support it. Defaults to true. When set to false, the widget will not direct the end user to the institution's mobile application. This setting is not persistent. This setting currently only affects Chase institutions.
Example:
true
widget_url.include_identity
boolean
Deprecated: Use data_request.products instead to set your products. You can't send this option with data_request.
Only use this option if the widget_type is set to connect_widget. This determines whether account owner identification data (AOI, previously called "identity verification") aggregates after the data that's specified by the mode finishes aggregating. Defaults to false. This can be set in either aggregation or verification mode. Setting this to true will produce the following behaviors:
The widget will only search for and display institutions that support the data the mode (aggregation or verification) is aggregating and AOI.
The member connected postMessage event will not be sent until both aggregations are complete.
Example:
false
widget_url.include_transactions
boolean
Deprecated: Use data_request.products instead to set your products. You can't send this option with data_request.
Only use this option if the widget_type is set to connect_widget. This determines whether transaction data are retrieved. Defaults to true in aggregation mode and false in verification mode. This can be set in either aggregation or verification mode. This option does not affect future foreground or background aggregations.
Example:
true
widget_url.insight_guid
string | null
Only use this option if the widget_type is set to pulse_widget. Set this to the insight guid you want to appear at the top of the insights feed.
Example:
"BET-1234-abcd"
widget_url.iso_country_code
string[]
An array of strings that filters institutions in the widget by the specified country code. Acceptable codes include US, CA, and MX (Mexico).
Example:
["US", "CA"]
widget_url.is_mobile_webview
boolean
This option is for every widget_type. This configures the widget to render in a mobile WebView. JavaScript event postMessages are replaced with URL updates.
When set to true, you must provide one of the following:
ui_message_webview_url_scheme set to a value other than "mx"
client_redirect_url
If ui_message_webview_url_scheme is "mx" or not provided, client_redirect_url is required.
Example:
false
widget_url.microwidget_instance_id
string | null
Only use this option if the widget_type is set to micro_pulse_carousel_widget. Set this to a unique value for each instance of the Micro Insights Widget. This lets us collect unique data for each instance of the widget.
Example:
"Accounts Page"
widget_url.locale
string
Sets the language of the widget.
If you're requesting the Connect or Connections Widgets, you must use the Accept-Language header.
Example:
"fr-CA"
widget_url.mode
string
Deprecated: Use data_request.products instead to set your products. You can't send this option with data_request.
Only use this option if the widget_type is set to connect_widget. mode is the most important option for the Connect Widget. This determines what kind of process Connect will run, which affects how you should set many other options. Defaults to aggregation. aggregation mode retrieves account and transaction data; in other words, this runs a standard aggregation. verification mode retrieves account numbers and routing/transit numbers; in other words, it runs an Instant Account Verification (IAV). By default, verification mode does not retrieve transaction data; this default can be modified with secondary options. By default, background aggregation is disabled for all members created in verification mode; this default can be modified with secondary options.
Example:
"aggregation"
widget_url.oauth_referral_source
string
Only use this option if the widget_type is set to connect_widget. This determines how MX will respond to the result of an OAuth flow. When set to APP, MX will redirect to the URI specified in the ui_message_webview_url_scheme. When set to BROWSER, MX will send a postMessage but not redirect. If is_mobile_webview is true, this defaults to APP. If false, it defaults to BROWSER.
Example:
"BROWSER"
widget_url.style
object
Contains fields to customize the appearance of a widget.
Hide child attributes
widget_url.style.font_name
string
required
Sets the widget's font. Pass any Google font to change it.
Example:
"Roboto"
widget_url.target_origin_referrer
string | null
Only use this option if the widget_type is set to connect_widget or connections_widget. The origin that receives the widget's postMessage events: the exact origin of the page that embeds the widget, such as https://app.example.com. Include the scheme, host, and port (if non-default), with no path or trailing slash. Only this origin receives events.
If omitted, the widget sends events to the origin in the Referer header of the request that loads the widget. Set this option when your site's Referrer-Policy (for example, no-referrer or same-origin) blocks that header and you can't change the policy. Not used when is_mobile_webview is true, because events are sent as URL changes. See Troubleshooting.
Example:
"https://app.example.com"
widget_url.ui_message_webview_url_scheme
string
Only use this option if the widget_type is set to connect_widget. This is a client-defined scheme used in OAuth redirects in WebViews; also used in URL updates when these replace postMessages in WebViews. Defaults to mx.
When this is set to "mx" and is_mobile_webview is true, you must also provide client_redirect_url.
widget_url.update_credentials
boolean
Only use this option if the widget_type is set to connect_widget. Load the widget into a view that allows them to update the current member. Optionally used with current_member_guid. This option should be used sparingly. The best practice is to use current_member_guid and let the widget resolve the issue.
Example:
false
widget_url.use_cases
enum<string>[]
The use case that will be associated with any members created through the widget. Valid values are PFM and/or MONEY_MOVEMENT. This is required if you've met with MX and have opted in to using this field.
Available options:
MONEY_MOVEMENT,
PFM
Example:
["PFM"]
Response
200 - application/json
OK
widget_url
object
required
Hide child attributes
widget_url.type
enum<string> | null
required
This determines which widget URL you'll receive. Additional request parameters may only apply to some widget types.