curl --request POST \
--url https://api.byzantine.fi/v1/submit/init-verification \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"beneficiaryId": "550e8400-e29b-41d4-a716-446655440000",
"language": "en",
"successUrl": "https://app.example.com/kyc/done",
"rejectUrl": "https://app.example.com/kyc/refused"
}
'import requests
url = "https://api.byzantine.fi/v1/submit/init-verification"
payload = {
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"beneficiaryId": "550e8400-e29b-41d4-a716-446655440000",
"language": "en",
"successUrl": "https://app.example.com/kyc/done",
"rejectUrl": "https://app.example.com/kyc/refused"
}
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
accountId: '550e8400-e29b-41d4-a716-446655440000',
beneficiaryId: '550e8400-e29b-41d4-a716-446655440000',
language: 'en',
successUrl: 'https://app.example.com/kyc/done',
rejectUrl: 'https://app.example.com/kyc/refused'
})
};
fetch('https://api.byzantine.fi/v1/submit/init-verification', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"mode": "link",
"expiresAt": "2023-11-07T05:31:56Z",
"verificationStatus": "active",
"beneficiaryId": "550e8400-e29b-41d4-a716-446655440000",
"verificationUrl": "https://in.sumsub.com/websdk/p/sbx_uni_...",
"accessToken": "<string>"
}Initialize a verification session
Hand the KYC or KYB of an account over to the Sumsub Web SDK, so the customer provides what the
API submission did not cover (identity document, selfie, proof of address, company documents…)
and answers the remaining questionnaires. Data already submitted through create-*-account,
update-*-account or add-associated-person is kept and not asked again.
Call it after create-individual-account or create-entity-account. Without beneficiaryId
the session verifies the account owner (individual) or the entity; with it, the beneficiary or
representative of an entity account. Beneficiaries a company declares in the Web SDK are created
by Byzantine and announced through a customer.* event carrying their beneficiaryId.
mode selects the return value: link, a page hosted by Sumsub valid 24 hours, or
access_token, a 10-minute token for a Web SDK embedded in your frontend, to renew through the
SDK refresh callback by calling this endpoint again. The link and the token are not stored.
Progress is reported through the customer.* events and the get-*-details endpoints.
curl --request POST \
--url https://api.byzantine.fi/v1/submit/init-verification \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"beneficiaryId": "550e8400-e29b-41d4-a716-446655440000",
"language": "en",
"successUrl": "https://app.example.com/kyc/done",
"rejectUrl": "https://app.example.com/kyc/refused"
}
'import requests
url = "https://api.byzantine.fi/v1/submit/init-verification"
payload = {
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"beneficiaryId": "550e8400-e29b-41d4-a716-446655440000",
"language": "en",
"successUrl": "https://app.example.com/kyc/done",
"rejectUrl": "https://app.example.com/kyc/refused"
}
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
accountId: '550e8400-e29b-41d4-a716-446655440000',
beneficiaryId: '550e8400-e29b-41d4-a716-446655440000',
language: 'en',
successUrl: 'https://app.example.com/kyc/done',
rejectUrl: 'https://app.example.com/kyc/refused'
})
};
fetch('https://api.byzantine.fi/v1/submit/init-verification', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"mode": "link",
"expiresAt": "2023-11-07T05:31:56Z",
"verificationStatus": "active",
"beneficiaryId": "550e8400-e29b-41d4-a716-446655440000",
"verificationUrl": "https://in.sumsub.com/websdk/p/sbx_uni_...",
"accessToken": "<string>"
}Headers
Body
Account (and optionally beneficiary) to verify, and how to show the Web SDK
Response
Verification session opened
Response body of init-verification. Exactly one of verificationUrl and accessToken is set,
according to mode. Neither is stored by Byzantine: call the endpoint again for a new one.

