Updating Items via Link
Use update mode to add permissions to Items, or to resolve ITEM_LOGIN_REQUIRED status

When to use update mode
Update mode is used to update authentication or authorization for an Item. The most common reason for this is when access to an existing Item stops working: if the end user changes a password, if multi-factor authentication (MFA) requirements change, or if the login becomes locked. An Item can also require its authentication to be refreshed with update mode if it was only authorized for a limited amount of time and the authorization has expired or is nearing expiration, which can happen to Items from institutions that use OAuth flows in Plaid Link.
Update mode can also be used to request permission to access data that the user did not originally grant during the initial link flow. This can include specific OAuth permissions, or access to new accounts or additional product scopes. Update mode can be used to manage permissions granted via OAuth, as well as permissions granted directly through Plaid via Account Select or the opt-in Data Transparency Messaging beta.
Beginning in April 2023, existing Items at institutions that use OAuth, that are not currently using Account Select v2, will use Account Select v2 when the update mode flow is completed for that Item.
Resolving ITEM_LOGIN_REQUIRED or PENDING_EXPIRATION errors
Receiving an ITEM_LOGIN_REQUIRED
error or a PENDING_EXPIRATION
webhook indicates that the Item should be re-initialized via update mode.
If you receive the ITEM_LOGIN_REQUIRED
error after calling a Plaid endpoint, implement Link in update mode during the user flow, and ask the user to re-authenticate before proceeding to the next step in your flow.
If you receive the ITEM_LOGIN_REQUIRED
error via the ITEM: ERROR
webhook, or if you receive the PENDING_EXPIRATION
webhook, re-authenticate with Link in update mode when the user is next in your app. You will need to tell your user (using in-app messaging and/or notifications such as email or text message) to return to your app to fix their Item.
When resolving these errors, for most institutions, Plaid will present an abbreviated re-authentication flow requesting only the minimum user input required to repair the Item. For example, if the Item entered an error state because the user's OTP token expired, the user may be prompted to provide another OTP token, but not to fully re-login to the institution.
Requesting additional product permissions or accounts
Update mode can also be used to collect additional permissions.
If using Account Select v2, you can use update mode to request your users to share new accounts with you. Receiving a NEW_ACCOUNTS_AVAILABLE
webhook indicates that Plaid has detected new accounts that you may want to ask your users to share.
If using Data Transparency Messaging, update mode can be used to request permissions for additional product scopes.
Update mode can also be used to request additional consents or permissions, which may be required when adding certain products. For more details, see Using update mode to request additional consent for products.
Triggering update mode for an OAuth institution will cause the user to re-enter the OAuth flow. They can then grant any required OAuth permissions they failed to grant originally, or restore OAuth permissions they may have revoked. The update mode flow for OAuth institutions will also contain guidance recommending which permissions the user should grant: for more details, see the OAuth documentation.
When an Item is sent through update mode, users can also choose to revoke access they had previously granted. If you lose access to necessary accounts or OAuth permissions after the user completes the update mode flow, you may need to send the user through update mode again. For more details, see Managing consent revocation. To prevent users from revoking access to the Auth or Identity products, you can also use [Update Mode with Product Validations]((#resolving-access_not_granted-or-no_auth_accounts-errors-via-product-validations).
Using update mode
To use update mode for an Item, initialize Link with a link_token
configured with the access_token
for the Item that you wish to update. Note that no products should be specified when creating a link_token
for update mode, unless you are using update mode to add Assets or Income. You can obtain a link_token
using the /link/token/create
endpoint.
If you're using update mode to refresh an OAuth institution, ensure you configure the Link token with a redirect URI, as described in Configure your Link token with your redirect URI.
Select group for content switcher1// Create a one-time use link_token for the Item.2// This link_token can be used to initialize Link3// in update mode for the user4const configs = {5 user: {6 client_user_id: 'UNIQUE_USER_ID',7 },8 client_name: 'Your App Name Here',9 country_codes: [CountryCode.Us],10 language: 'en',11 webhook: 'https://webhook.sample.com',12 access_token: 'ENTER_YOUR_ACCESS_TOKEN_HERE',13};14app.post('/create_link_token', async (request, response, next) => {15 const linkTokenResponse = await client.linkTokenCreate(configs);1617 // Use the link_token to initialize Link18 response.json({ link_token: linkTokenResponse.data.link_token });19});
Link auto-detects the appropriate institution and handles the credential and multi-factor authentication process, if needed.
An Item's access_token
does not change when using Link in update mode, so there is no need to repeat the exchange token process.
1// Initialize Link with the token parameter2// set to the generated link_token for the Item3const linkHandler = Plaid.create({4 token: 'GENERATED_LINK_TOKEN',5 onSuccess: (public_token, metadata) => {6 // You do not need to repeat the /item/public_token/exchange7 // process when a user uses Link in update mode.8 // The Item's access_token has not changed.9 },10 onExit: (err, metadata) => {11 // The user exited the Link flow.12 if (err != null) {13 // The user encountered a Plaid API error prior14 // to exiting.15 }16 // metadata contains the most recent API request ID and the17 // Link session ID. Storing this information is helpful18 // for support.19 },20});
Link will automatically detect the institution ID associated with the link_token
and present the appropriate credential view to your user.
If your integration is still using a public_token
to open Link in update mode, see the migration guide to upgrade to link_tokens
. You can also see the maintenance guide to troubleshoot any public_token
issues.
When an Item is restored from the ITEM_LOGIN_REQUIRED
state via update mode, if it has been initialized with a product that sends Item webhooks (such as Transactions or Investments), the next webhook fired for the Item will include data for all missed information back to the last time Plaid made a successful connection to the Item.
Using update mode to request new accounts
You can allow end users to add new accounts to an Item by enabling Account Select when initializing Link in update mode. To do so, first initialize Link for update mode by creating a link_token
using the /link/token/create
endpoint. For OAuth institutions, ensure you configure the Link token with a redirect URI, as described in Configure your Link token with your redirect URI.
In addition, make sure you specify the following:
The
update.account_selection_enabled
flag set to true. To ensure you are able to use this flag, check that your Plaid library meets the minimum version required.A
link_customization_name
for a customization that enables Account Select v2. The settings on this customization will determine which View Behavior for the Account Select pane is shown in update flow.(Optional) Any
account_filters
to specify account filtering. Note that this field cannot be set for update mode if account selection isn’t enabled. Once your user has updated their account selection, all selected accounts will be shared in theaccounts
field in theonSuccess()
callback from Link. Any de-selected accounts will no longer be shared with you. You will only be able to receive data for these accounts the user selects in update mode going forward.
This update mode flow can also be used to remove accounts from an Item. We recommend that you remove any data associated with accounts that your user has de-selected. Note that Chase is an exception to the ability to remove accounts via update mode; to remove access to a specific account on a Chase Item, the end user must do so through the online Chase Security Center.
1curl -X POST https://sandbox.plaid.com/link/token/create \2-H 'Content-Type: application/json' \3-d '{4 "client_id": "CLIENT_ID",5 "secret": "SECRET",6 "client_name": "My App",7 "user": { "client_user_id": "UNIQUE_USER_ID" },8 "country_codes": ["US"],9 "language": "en",10 "webhook": "https://webhook.sample.com",11 "access_token": "ENTER_YOUR_ACCESS_TOKEN",12 "link_customization_name": "account_selection_v2_customization",13 "update": { "account_selection_enabled": true }14}'
When using the Assets product specifically, if a user selects additional accounts during update mode but does not successfully complete the Link flow, Assets authorization will be revoked from the Item. If this occurs, have the user go through a new Link flow in order to generate an Asset Report, or, if you have Data Transparency Messaging enabled, use update mode to re-authorize the Item for assets, as described in the next section.
If you are using update mode to add a debitable checkings or savings account in response to a NO_AUTH_ACCOUNTS
error, see Resolving NO_ACCESS_GRANTED
or NO_AUTH_ACCOUNTS
errors via product validations for a better method to resolve this error.
Using update mode to request additional consent for products
You will need to use update mode to request additional consent for products in the following situations: if you are adding Assets or Income, if you are using Data Transparency Messaging, or if you receive an ACCESS_NOT_GRANTED
or NO_AUTH_ACCOUNTS
error after attempting to add Identity or Auth to an Item.
Requesting additional consent for Assets or Bank Income
Because Assets and Income may be used for underwriting use cases, they require additional user consent. To add Assets or Income to an Item that did not previously have those products enabled, you will need to send the user through update mode.
The process to do this is the same as described in Using update mode, except that you will also include the products
array in the request with the value assets
or income
for the product you wish to add.
If the user connected their account less than two years ago, they can bypass the Link credentials pane and complete just the consent panes. Otherwise, they will be prompted to complete the full flow.
Requesting additional consent for Data Transparency Messaging
If you have Data Transparency Messaging enabled, you need user consent to access new products. To do so, first initialize Link for update mode by creating a link_token
using the /link/token/create
endpoint. For OAuth institutions, ensure you configure the Link token with a redirect URI, as described in Configure your Link token with your redirect URI.
In addition, make sure you specify the following:
- The
additional_consented_products
field should be set to include any new products you want to gather consent for.- For example, if Link was initialized with just Transactions and you want to upgrade to Identity, you would pass in
identity
to theadditional_consented_products
field. - To see the currently authorized and consented products on an Item, use the
/item/get
endpoint
- For example, if Link was initialized with just Transactions and you want to upgrade to Identity, you would pass in
- The
link_customization_name
should be set to a customization with Data Transparency Messaging enabled. The use case string should also be broadened to include your reasons for accessing the new data. If the use case is not customized, the default use case will be present on the Data Transparency Messaging pane.
If the upgrade was successful, you will receive the onSuccess()
callback and you will have access to the API endpoints for all of the products you passed into Link update mode. The new products will only be billed once the related API endpoints are called, even if they would otherwise be billed upon Item initialization (e.g., Transactions).
Resolving ACCESS_NOT_GRANTED or NO_AUTH_ACCOUNTS errors via Product Validations
Update Mode with Product Validations is currently in beta. To request access, contact support or your Plaid account manager. If you attempt to use this flow before being granted access, the update mode flow will work, but the product validations will not be applied.
The Auth and Identity products can be added to an Item post-Link, by calling an Auth or Identity related endpoint, rather than including auth
or identity
in the products array. However, if the user did not share the necessary permissions or accounts to support these products, the Item will enter a NO_ACCESS_GRANTED
or NO_AUTH_ACCOUNTS
error state. Update Mode with Product Validations (UMPV) applies product-specific validations to the selections a user makes in the update mode flow, resulting in higher conversion than resolving these errors via regular update mode.
The process to use UMPV is the same as described in Using update mode, except that you will also include the products
array in the request with the value auth
and/or identity
for the product(s) you wish to validate.
UMPV will enforce the same level of product validation as is normally used on an initial Link attempt: the user will be instructed on which permissions to grant, and if they do not make these selections, they will be prompted to go back through the flow. In the case of NO_AUTH_ACCOUNTS
, the account selection flow will also be automatically enabled if necessary.
UMPV can also be used preventatively, to prevent users in the update mode flow from accidentally removing permissions they have already granted. Applying UMPV to any update mode session for an Auth- or Identity-enabled Item will prompt users to fix their selections if they remove the accounts or permissions required for these products.
UMPV can only be used for auth
or identity
. It is also not compatible with Requesting additional consent for Assets or Bank Income; the two cannot be used in a single update mode flow, although they can be used on the same Item, via separate update mode sessions.
Testing update mode
Update mode can be tested in the Sandbox using the /sandbox/item/reset_login
endpoint, which will force a given Item into an ITEM_LOGIN_REQUIRED
state.
Example React code in Plaid Pattern
For a real-life example that illustrates the handling of update mode, see linkTokens.js and LaunchLink.tsx. These files contain the Link update mode code for the React-based Plaid Pattern sample app.
Account selection screens in update mode
To demonstrate the user experience of various update mode flows, below are screenshots of update mode that correspond to different Account Select V2 settings.