Get Sumsub ID share token

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Use this method to obtain a Sumsub ID share token so as to share the Sumsub ID profile with your partner as described in Sumsub ID Connect.

📘

Notes

  • By default, the Sumsub ID share token expires after 1800 seconds, unless otherwise specified in the request.
  • This method requires the Share applicants data dashboard permission. App tokens and team members must have a role that includes this permission; otherwise, the request fails with a permission error.

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": "snd-id-con-a-WRT7FRBRfdejpsDR8a_cYeX9BU32QP_I_Hyc93saZcg5965PfGzrHGDEdrTRseop",
          "forClientId": "CoolCompanyLtd",
          "ttlInSecs": "1800"  
        }'

Response explained

In the response, you will get a new Sumsub ID share token.

The following fields are returned:

FieldTypeDescription
tokenStringThe share token generated upon execution of the request.
forClientIdStringUnique partner identifier as specified in the request.
sharingAllowedBooleanChecks if Sumsub ID account has already given authorisation to share with the provided forClientID

Response examples

If the request is successfully sent and processed, you will get a response like the one below.

{
  "token": "_act-snsId-08c4d85d-d0ae-43d6-81e9-a57d4f8e3768",
  "forClientId": "internal_staff",
  "sharingAllowed": true
}

If the request fails, you will receive an HTTP response containing an error code along with a message explaining the error. For example:

{
  "code": 400,
  "correlationId": "acd9fed2554d53a5a49ccbdhtu57jg87",
  "description": "'forClientId' and 'sumsubIdConnectToken' must be provided for creating Sumsub ID share token"
}

Error codes with descriptions

Error codeError nameDescription
10600sumsub-id-profile-not-foundThe profile associated with the Sumsub ID Connect token could not be found. This could be because the profile was deleted.
10601sumsub-id-profile-blockedThe profile associated with the Sumsub ID Connect token has been blocked and cannot be used.
10602sumsub-id-app-disconnectedThe profile associated with the Sumsub ID Connect token has revoked the connection between their Sumsub ID and your app.
10603sumsub-id-access-token-invalidSumsub ID Connect token is malformed or expired.
10604sumsub-id-connect-disabledSumsub ID Connect is not enabled for your client key.

Body Params
string
required

Access token that you can obtain through either installing the Sumsub package and using this method, or the standard OAuth 2.0 protocol.

string
required

Unique identifier of the partner with whom the applicantId can be shared (ask the partner for their id).

You can also obtain this identifier in the following ways:

  • From the Dashboard — visible in the top-left corner of the applicant profile, adjacent to the applicant ID.
  • From the Get applicant data API response — in the root clientId field.
int32
Defaults to 1800

Lifespan of the generated token in seconds (30 minutes by default).

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!