Generate KYC link
curl --request POST \
--url https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link \
--header 'API-KEY: <api-key>'import requests
url = "https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link"
headers = {"API-KEY": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'API-KEY': '<api-key>'}};
fetch('https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link")
.header("API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"url": "https://in.sumsub.com/websdk/p/sbx_example",
"userId": "6c4ba9af-978a-45ff-953f-729c593f14af",
"ttlSeconds": 3600,
"expiresAt": "2026-09-09T18:36:03Z"
}{
"code": "401",
"message": "Authentication Failed!",
"name": "PartnerOnboarding failed to process"
}{
"code": "403",
"message": "Onboarding is not permitted for this country",
"name": "PartnerOnboardingCreate failed to process"
}{
"code": "404",
"message": "Not found",
"name": "PartnerOnboardingGet failed to process"
}{
"code": "409",
"message": "This customer's KYC is already completed; a new verification link is not needed",
"name": "PartnerOnboardingKycLink failed to process"
}Generate KYC link
Returns a hosted verification URL the customer can open in a browser — an alternative to uploading documents through the API. The response says how long the link lasts.
POST
/
api
/
v0
/
customer
/
{userId}
/
kyc-link
Generate KYC link
curl --request POST \
--url https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link \
--header 'API-KEY: <api-key>'import requests
url = "https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link"
headers = {"API-KEY": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'API-KEY': '<api-key>'}};
fetch('https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link")
.header("API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-api.endl.xyz/api/v0/customer/{userId}/kyc-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"url": "https://in.sumsub.com/websdk/p/sbx_example",
"userId": "6c4ba9af-978a-45ff-953f-729c593f14af",
"ttlSeconds": 3600,
"expiresAt": "2026-09-09T18:36:03Z"
}{
"code": "401",
"message": "Authentication Failed!",
"name": "PartnerOnboarding failed to process"
}{
"code": "403",
"message": "Onboarding is not permitted for this country",
"name": "PartnerOnboardingCreate failed to process"
}{
"code": "404",
"message": "Not found",
"name": "PartnerOnboardingGet failed to process"
}{
"code": "409",
"message": "This customer's KYC is already completed; a new verification link is not needed",
"name": "PartnerOnboardingKycLink failed to process"
}