All Sumsub API requests require authentication using an app token and a signed request signature. The app token identifies your integration, while the signature — generated with HMAC-SHA256 — ensures each request is tamper-proof and tied to a specific timestamp. Together, they are passed as HTTP headers on every call.
Generate app token
An app token authenticates your requests to the Sumsub API. You can create one in the Dashboard — see App Tokens for instructions. For Web and Mobile SDK integrations, see Generate Access Token.
NoteThe full-sized app token and secret key values are shown in the Dashboard only once — at the moment you create the token; make sure to save it to a secure location on your device. Once created, you will not be able to make any changes.
Make requests
All requests must contain the following headers:
X-App-Token— an app token that you generate in the Dashboard.X-App-Access-Sig— a request signature in the HEX format and lowercase.X-App-Access-Ts— a number of seconds since Unix Epoch in UTC.
AttentionAll API requests must be sent over HTTPS; plain HTTP requests will be refused. You must include your
X-App-Tokenheader in all requests.
Sign requests
The X-App-Access-Sig header value is an HMAC-SHA256 signature computed using your secret key (provided upon app token generation) over the concatenation of the following:
- The value of the
X-App-Access-Tsheader as a string. - An HTTP method in uppercase, for example,
GETorPOST. - The request URI, excluding the host, starting with a slash, and including all query parameters, for example,
/resources/applicants/123?fields=info. - The request body exactly as sent. Omit if there is no body, for example, for
GETrequests.
The following is an example of the string to be signed to get an access token:
1607551635POST/resources/accessTokens/sdk{"ttlInSecs": 600, "userId": "johndoeID", "levelName": "basic-kyc-level"}
NoteYour timestamp must be within 1 minute of the API server time. Make sure the time on your servers is correct.
Examples of how you can sign your requests:
Applicant visibility
The applicants that API methods return depend on the permissions and restrictions of the app token or team member that sends the request. Some settings widen the set of visible applicants, others narrow it.
Settings that affect visibility
The following table describes a few examples of settings that can widen or narrow the set of applicants returned in the response.
| Setting | Effect |
|---|---|
| View approved applicants permission | Widens the set. Without it, approved applicants (the review is completed with the GREEN answer) are hidden. |
| Source keys on the app token or team member | Narrows the set. If source keys are set, only applicants with one of these source keys are visible. |
| View only applicants created by this account access limitation | Narrows the set. The team member sees only the applicants they created themselves or that came through links they generated. |
NoteFor the full list of settings that restrict functionality and visibility, see User roles.
Error when access is not allowed
If the permissions of the app token or team member do not allow access to the applicant, or if a restriction excludes it, the method returns 404 Not Found, not 403 Forbidden. For example, Get applicant data returns 404 Not Found for an approved applicant if the View approved applicants permission is not assigned. The same applies to methods that update an applicant.
If you get 404 Not Found for an applicant that exists, check the settings above.
Sandbox-only access
The Sandbox-only access role setting does not filter applicants. In the production environment, it blocks the request completely with 403 Forbidden. In Sandbox, nothing changes. For app tokens, the environment is defined by where the token was created: a Sandbox token works with Sandbox data only.