Reusable KYC Gateway
Connect users to regulated services with reusable KYC data.
Reusable KYC Gateway lets non-regulated businesses help their users reuse identity verification at regulated partner services. An integrator uses Verify with Sumsub ID to let users verify their identity and authorize sharing. A recipient uses Reusable KYC Share to receive matching data from that account and run its own checks.
The Gateway solution combines the following components with recipient management and data sharing:
- Sumsub ID — The user's account.
- Verify with Sumsub ID — The user-facing verification and authorization flow.
- OpenID Connect (OIDC) — The protocol used to integrate the verification and authorization flow into your product.
For OIDC integration details, see Sumsub ID — OIDC.
How Reusable KYC Gateway works
The flow includes the following participants:
- User. The person who owns or creates a Sumsub ID account and authorizes the integrator and sharing.
- Integrator. The business that offers Verify with Sumsub ID and generates share tokens for recipients.
- Recipient. The regulated partner that receives a share token and reuses matching data against its verification level.
The flow includes the following steps:
- Verify with Sumsub ID. The user signs in to or creates a Sumsub ID account, completes the required steps, and authorizes the integrator to generate and pass share tokens. If the integrator identifies a recipient in the authorization request, the flow also collects permission to share with that recipient.
- Share token generation. When the user moves to a recipient, the integrator generates a Sumsub ID share token for that recipient. If permission for this recipient has not yet been granted, the integrator directs the user to a Sumsub-hosted consent screen.
- Reusable KYC. The recipient submits the token through Reusable KYC via API or SDK. Sumsub checks authorization, retrieves matching data, and applies the recipient's level requirements. Checks run fresh in the recipient's flow to ensure compliance. Sumsub does not copy the Sumsub ID check results, only the input data.
The integrator cannot access the verification data. Sumsub retrieves it from the user's Sumsub ID account after the user authorizes sharing. Consent for one recipient does not apply to another recipient.

User experience
The steps the user sees depend on their Sumsub ID account and the requested level:
-
Existing account. The user signs in. If their account already contains the required data, they proceed to authorization. Otherwise, they complete the missing verification steps.

-
New account. The user confirms their email address, creates a Sumsub ID account and completes the required verification steps before authorization.

If the request identifies a recipient, the consent screen can include that recipient alongside the integrator. Otherwise, the user can be asked for recipient consent later.

The user can revoke the integrator's permission from their Sumsub ID account. If revoked, the user will still be able to give permission again if prompted by the integrator.
Setup for integrators
Before starting, sign up for Reusable KYC Gateway with Sumsub and receive your integrator client key. Configure a client secret and return URL. In the Dashboard, go to Configurations → Developers → OIDC Settings. Keep the secret on your backend.
Step 1: Add recipients
Add the partner services that will receive the verification data as recipients in the Dashboard. For instructions, see this article.
You can then generate Sumsub ID share tokens using their client IDs.
Step 2: Configure Gateway flow
Start the Gateway flow (Verify with Sumsub ID) using an OpenID Connect (OIDC) authorization code request. Your application builds an authorization URL and opens it when the user clicks your button or link. Use the authorization endpoint from the OIDC discovery document. For the complete authorization and token exchange flow, see this article.
For Gateway, openid, share and offline_access are be enabled by default. To receive a refresh token, include offline_access in the authorization request.
| Scope | Purpose |
|---|---|
openid | Identifies the request as an OIDC request and enables an ID token. |
share | Requests permission for the integrator to generate and pass Sumsub ID share tokens. |
email | Requests the email address of the user, if access has been granted. |
offline_access | Requests a refresh token for ongoing access, if access has been granted. |
Authorization request parameters
Use the following parameters to build the authorization URL. Names in this table are the query parameter names; URL-encode their values.
| Parameter | Required | Description |
|---|---|---|
response_type | Yes | Set to code to request an authorization code. |
client_id | Yes | The OIDC client ID of the integrator from OIDC Settings. This identifies your application. |
redirect_uri | Yes | A return URL registered in your OIDC settings for the environment. It must match the registered URL exactly. For a popup, its origin must match the page that opens the popup. |
scope | Yes | Space-separated scopes. Use openid share for the default Gateway flow. |
state | Yes | A unique, unpredictable value for matching the response to the request and protecting the transaction. Validate the returned value. |
code_challenge | Yes for PKCE | The base64url-encoded SHA-256 hash of the code verifier for the transaction, without padding. Retain the verifier for the code exchange. |
code_challenge_method | Yes for PKCE | Set to S256. |
response_mode | No | Use web_message for a popup or query for the current tab. Defaults to query. |
for_client_id | No | The client ID of one recipient already added as your sharing partner. Identifies the recipient for onboarding and consent. Requires the share scope. |
login_hint | No | An email address to prefill. The user can edit it. |
prompt | No | Controls re-authentication or re-consent. See this article for supported values. |
nonce | Recommended | A unique value to associate the ID token with this request. Validate it in the returned ID token. |
ui_locales | No | Space-separated language tags indicating the preferred UI languages. |
Build Gateway authorization URL
The following example starts a Gateway flow for one recipient. It uses web_message to return the result to the page that opened a popup:
https://id.sumsub.com/api/snsId/oauth/authorize?response_type=code&client_id=example-integrator&redirect_uri=https%3A%2F%2Fapp.example.com%2Foidc%2Fcallback&scope=openid%20share%20offline_access&state=example-state&code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM&code_challenge_method=S256&response_mode=web_message&for_client_id=example-recipient- Replace the example client IDs and return URL with your own values.
- Generate a new unpredictable
stateand PKCE verifier for each request, then calculate the corresponding challenge. Do not reuse the example values. - Register the return URL in OIDC Settings.
- To open the flow in the current tab, use the same parameters with
response_mode=query. - For Sandbox, use
https://id-sbx.sumsub.comand the Sandbox client settings.
Choose recipient and collect consent
Pass the client ID of the recipient as for_client_id to identify the recipient for this flow. Sumsub uses the configured onboarding level of the recipient when available. When the user is asked to consent, the screen presents both:
- Permission for the integrator to generate and pass share tokens on the user's behalf.
- Permission for the named recipient to access the user's Sumsub ID data through the sharing flow.
Note the following:
- The recipient must be a configured sharing partner.
- Sumsub rejects an invalid recipient or a request containing
for_client_idwithout thesharescope. - Passing the recipient does not grant consent without the user's authorization. If the required permissions have already been granted, the flow can proceed without asking for them again. Consent for one recipient does not apply to another.
If you omit for_client_id, the authorization request does not identify a recipient for the combined consent screen. Collect permission for each recipient separately when needed, as described in Step 5: Collect consent for recipient. The recipient-specific onboarding level is not selected by that request.
Choose how to open flow
The authorization request is the same on desktop and mobile. Choose how to open it using response_mode:
| Where the user starts | Recommended approach | response_mode | How the result reaches your application |
|---|---|---|---|
| Desktop browser | Popup, with a current-tab fallback if the popup is blocked. |
| The popup sends a message to the page that opened it. The fallback redirects to your registered return URL. |
| Mobile browser or mobile app browser | Current-tab redirect. | query | Sumsub redirects to your registered return URL. Your application resumes the transaction there. |
Open flow on desktop
Use a popup on the desktop to keep your application page visible while the user completes Verify with Sumsub ID. A popup also lets your page receive the authorization response without navigating away. Browsers can block popups, so your application must handle that case.
To start the flow:
- When the user selects your button or link, call
window.opensynchronously in the click handler. Open a blank window first. If you wait for a network request before callingwindow.open, the browser may no longer treat it as a user-initiated popup and may block it. - If the popup opens, keep the returned window handle. Prepare the authorization request and navigate the popup to the authorization URL with
response_mode=web_message. Register your message handler before navigating the popup so it is ready to receive the response. - If
window.openreturnsnull, the popup was blocked. Navigate the current tab to the authorization URL withresponse_mode=queryinstead. Save the transaction information before navigating. Sumsub cannot start the popup flow when the browser blocks the window, because the authorization request never reaches Sumsub. - On success, validate the response and send the authorization code to your backend for exchange. If the user declines or closes the popup before completion, handle the error or incomplete flow and let the user try again.
Keep the connection between the popup and your page: do not open the popup with noopener or noreferrer. The page that opens it must be on the origin of the registered redirect_uri. See Allow popup messages for the required browser policy and message checks.
The following example illustrates where to open the popup and how to fall back. Your application implements the functions used to prepare and save the transaction and handle its response:
button.addEventListener('click', async () => {
// Open immediately, before any asynchronous work.
const popup = window.open('about:blank', 'sumsub_id', 'popup,width=480,height=720');
try {
// Create state and PKCE values and build the authorization URL.
const transaction = await prepareGatewayTransaction();
const url = new URL(transaction.authorizationUrl);
if (!popup) {
// The browser blocked the popup; resume on the registered return page.
await saveTransactionForReturn(transaction);
url.searchParams.set('response_mode', 'query');
window.location.assign(url.toString());
return;
}
url.searchParams.set('response_mode', 'web_message');
watchAuthorizationPopup(popup, transaction);
popup.location.href = url.toString();
} catch (error) {
if (popup && !popup.closed) popup.close();
showFlowError(error);
}
});prepareGatewayTransactioncreates a freshstateand PKCE verifier and builds the URL described above.watchAuthorizationPopupvalidates messages and handles popup closure.saveTransactionForReturnstores the transaction securely so the return page can resume it. Do not expose the client secret in your frontend.
Open flow on mobile
On mobile, redirect the current tab to the authorization URL using response_mode=query. The verification flow uses the available screen space, and a current-tab redirect avoids relying on popup behavior in mobile and in-app browsers.
Before leaving your page, save the state, PKCE verifier, and any information needed to resume the transaction. The original page unloads during a redirect. Use storage appropriate to your application and browser context. If a mobile app opens a separate browser, ensure the return URL and transaction storage work across that transition.
Register the return URL in the matching Sandbox or Production OIDC settings.
To open the flow in the current tab:
- Prepare the authorization URL and set
response_mode=query. - Save the transaction information, then redirect the current tab to the URL.
- When Sumsub returns the user to the registered
redirect_uri, compare the returnedstatewith the saved value. If it does not match or the transaction is missing, stop and start a new flow. - If the response contains an OAuth error, handle it in your application. If it contains an authorization code, send the code and the original PKCE verifier to your backend for exchange. Clear the saved transaction after it is handled.
NoteIf the user closes or leaves the browser before returning, your return page does not receive a result. Allow the user to start again.
Allow popup messages
For the desktop popup, Sumsub sends the authorization response to the page that opened it using window.opener. The Cross-Origin-Opener-Policy (COOP) header of the browser can break that relationship:
- Use
Cross-Origin-Opener-Policy: same-origin-allow-popups, or omit the COOP header, on the page that opens the popup. - Do not use
Cross-Origin-Opener-Policy: same-originfor that page. It can isolate the popup, causing the window handle to report it as closed and preventing messages from reaching your page. - Sumsub sends messages only to the origin of the registered
redirect_uri. Open the popup from a page on that origin.
ImportantAccept a message only if
event.sourceis the popup you opened andevent.originishttps://id.sumsub.comin Production orhttps://id-sbx.sumsub.comin Sandbox. Validate the response and itsstatebefore sending the authorization code to your backend.Monitor the popup handle for closure, including on focus or visibility changes and with a periodic fallback. A closed popup without a valid response is an incomplete flow.
To troubleshoot a popup that immediately appears closed or does not return a message, check the COOP response header of the opening page, the origin of the registered return URL, the environment, and whether the browser or an extension blocked the popup. For the message format and code exchange, see Sumsub ID — OIDC.
NoteThe integrator receives the subject identifier and, if requested with the
Step 3: Exchange authorization code
After the user grants the requested permissions, validate the response and exchange the authorization code on your backend using the token endpoint from OIDC discovery.
Use the same redirect URI and PKCE verifier used for the request. Exchange the code as soon as you receive it. Store the resulting tokens securely against your internal user record. See this article for the complete flow.
Step 4: Generate Sumsub ID share token
When the user proceeds to a recipient, use this API method to generate a Sumsub ID share token for that recipient. Provide the OIDC access token of the user and the client ID of the recipient.
Sign the request with your app token and secret key. The app token must have the Share applicants data permission.
Request example:
curl -X POST 'https://api.sumsub.com/resources/accessTokens/sumsubIdShareToken' \
-H 'Content-Type: application/json' \
-H 'X-App-Token: <your-app-token>' \
-H 'X-App-Access-Sig: <your-signature>' \
-H 'X-App-Access-Ts: <unix-timestamp>' \
-d '{"sumsubIdConnectToken":"<access_token>","forClientId":"<recipient_client_id>","ttlInSecs":1800}'The default token lifetime is 1800 seconds. The response includes token, forClientId, and sharingAllowed.
sharingAllowed indicates whether the user has already authorized this integrator to share their Sumsub ID data with the specified recipient at the time the token is generated. Consent is specific to the user, integrator, and recipient.
- If
sharingAllowedistrue, pass the share token to the recipient. - If
sharingAllowedisfalse, collect the consent of the user for that recipient before proceeding.
ImportantDo not validate, parse, or analyze the token content in your integration code. The token format is not fixed. Treat the token as an arbitrary string with a maximum length of 1 KB. Sumsub ID share tokens are single-use. Generate a new token each time you pass a user to a recipient.
Step 5: Collect consent for recipient
If recipient consent was not collected during the initial authorization flow and sharingAllowed is false, use this API method to generate a share consent link. Authenticate with the OIDC access token of the user and include the signed request headers. Direct the user to the returned Sumsub-hosted page before the link expires after five minutes.
After the user accepts or declines, Sumsub returns them to the specified redirectUri with a signed JWT in the token query parameter. Validate the response and check sharingAllowed.
If sharingAllowed is false, stop and do not pass the token. If it is true, pass the share token generated before consent to the recipient, provided it has not expired or already been used.
Step 6: Pass share token to recipient
Pass the token to the recipient, preferably through a secure backend-to-backend channel. The recipient submits it through Reusable KYC via API or SDK. The user can revoke their connection from their Sumsub ID account.
After revocation, the integrator must obtain authorization again to generate share tokens.
Setup for recipients
Subscribe to Reusable KYC Gateway, ensure Reusable KYC is enabled, and add the integrator as a donor in the Dashboard. If your account is on a self-service plan, Reusable KYC is enabled by default.
The Dashboard lists integrators under Donor. The integrator is not the source of KYC data.
Reuse data via API
Submit the token through this API method, with the verification level of the recipient.
Request example:
curl -X POST \
'https://api.sumsub.com/resources/api/reusableIdentity/reuse?shareToken=<share_token>&levelName=<recipient_level_name>' \
-H 'X-App-Token: <your-app-token>' \
-H 'X-App-Access-Sig: <your-signature>' \
-H 'X-App-Access-Ts: <unix-timestamp>'URL-encode the query parameter values and sign the request with the credentials of the recipient.
Sumsub does the following:
- Checks that the user authorized sharing with your client ID.
- Retrieves matching data.
- Runs the Reusable KYC flow against your level.
- Creates or updates the applicant on your side.
If the data satisfies the requirements and all checks pass, Sumsub approves the applicant. If requirements are not met, follow the outcome returned by the reuse flow.
Your app token must have the Create applicants permission. See this API method for request details and outcomes.
Reuse data via SDK
Include the Sumsub ID share token when generating an SDK access token.
Request example:
curl -X POST 'https://api.sumsub.com/resources/accessTokens/sdk' \
-H 'Content-Type: application/json' \
-H 'X-App-Token: <your-app-token>' \
-H 'X-App-Access-Sig: <your-signature>' \
-H 'X-App-Access-Ts: <unix-timestamp>' \
-d '{"userId":"<your_user_id>","levelName":"<recipient_level_name>","shareToken":"<share_token>","ttlInSecs":600}'Use the credentials and level of the recipient. The SDK starts the Sumsub ID reuse flow, where the user selects the data to share, completes a Liveness check, and submits the data to your level. For details, see this article.
What recipient receives
The recipient receives an applicant profile, matching documents, and data from the Sumsub ID account of the user.
With Share, the applicant also undergoes checks as per the steps configured in the level of the recipient.
Share partner level with integrator
Use partner levels to communicate your verification requirements to a Gateway integrator:
- Configure the verification level that describes the data and steps you require.
- Add the integrator as a sharing partner (donor) and share the level with them. For more instructions, see this article.
- The integrator has the shared level automatically available. In the Dashboard, go to Configurations → Developers → OIDC Settings. Open the Onboarding settings.
The integrator selects a Default onboarding level. Under Custom settings for recipients, the integrator selects the recipient and chooses either the default level or the level shared by that recipient, then saves the settings. - To start a journey for a specific recipient, the integrator includes the client ID of the recipient as
for_client_idin the authorization request. Sumsub uses the configured recipient level when available. Existing data is reused and the user completes missing requirements.
The integrator passes a share token to you. Reuse it against your recipient level as described above.
Partner level behavior
- If no recipient-specific level is selected, the default onboarding level is used.
- Sumsub maintains a copy of the shared level for Gateway and synchronizes supported changes. If a level is unshared or the partnership ends, coordinate with Sumsub and the integrator before relying on it for new flows.
- Database validation and AML configurations are excluded from copying and synchronization. Configure them on the appropriate side.
Test Reusable KYC Gateway in Sandbox
Sandbox and Production use separate Sumsub ID accounts, data, client settings, credentials, and return URLs. Before going live, configure both the integrator and recipient in Sandbox.
For testing purposes, the same Sandbox client key can act as both the integrator and the recipient.
Step 1: Configure Sandbox
To start testing in Sandbox mode, do the following:
- Switch to Sandbox mode in the Dashboard.
- Configure the recipient partnership and recipient verification level.
- In OIDC Settings, register the Sandbox return URL and generate a Sandbox client secret.
- Use the Sandbox discovery URL
https://id-sbx.sumsub.com/.well-known/openid-configurationand its endpoints.
Step 2: Run verification and sharing flow
Test the full integration flow in the Sandbox environment:
- Start the authorization flow, create or sign in to a Sandbox Sumsub ID account, complete any required verification, and authorize the integrator.
- Exchange the code using Sandbox settings. Include
for_client_idto test combined integrator and recipient consent. Also test a flow without it and collect recipient consent separately when required. - Generate a Sandbox share token and pass it to the recipient. Reuse it against the Sandbox level of the recipient. Use the appropriate Sandbox credentials for signed API requests.
Step 3: Check outcomes and repeatability
Configure a Sandbox verification preset for the level of the recipient:
- In Sandbox mode, go to Configurations → Developers → Verification test modes.
- Create or open a preset. Enable Automated applicant review and Reusable KYC, and set Face match to Always approve. Save the preset.
- Go to Configurations → Applicant verification → Individual levels, open the level of the recipient, and select the preset for Sandbox testing on the Configurations tab. Save the level.
- For the integrator copy of a shared partner level, configure its Sandbox preset separately.
The recipient can now test reuse against the configured Sandbox level.
Use Sandbox verification templates to exercise verification outcomes. Temporary email addresses can be used for Sandbox Sumsub ID accounts.
Sumsub automatically cleans up Sandbox accounts after 30 days of inactivity.
Data privacy (GDPR/UK GDPR)
The Verify with Sumsub ID flow and per-recipient consent screen collect user authorization for data transfer from Sumsub ID to the recipient. Integrators and recipients remain responsible for their own data-protection obligations, including GDPR and UK GDPR obligations where applicable.
Updated 5 days ago