Generate Share Token Using Sumsub API
POSThttps://api.sumsub.com/resources/accessTokens/shareToken
Contact Hello Clever Support team to get Sumsub
Client ID.
See the Sumsub
Authentication documentation (https://docs.sumsub.com/reference/authentication) to add the required headers to the Sumsub
API request.
Request
- application/json
Body
applicantIdstringrequired
The applicant's ID in the Sumsub
system.
forClientIdstringrequired
Contact Hello Clever Support team to get Client ID.
ttlInSecsint32
The lifespan of the generated token in seconds.
Responses
- 200
- application/json
- Schema
- Example (auto)
- Example
Schema
tokenstringrequired
forClientIdstringrequired
{
"token": "string",
"forClientId": "string"
}
{
"token": "_act-12345-67890-abcde-98765",
"forClientId": "helloclever.co"
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.sumsub.com/resources/accessTokens/shareToken");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"applicantId\": \"string\",\n \"forClientId\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear