Create a verification link
curl --request POST \
--url https://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session', 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://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"status": 201,
"message": "Verification session created",
"data": {
"cardholderId": "chl_01HXYZ1234ABCDEF5678",
"sessionId": "ses_9f2c4e1a7b",
"verificationUrl": "https://verify.example/session/ses_9f2c4e1a7b",
"kycStatus": "PENDING",
"regenerated": false
}
}Cardholders
Create a Verification Link
Open a verification session the cardholder completes themselves. POST /cardholders//kyc/session. Managed KYC only. Requires cardholders:write scope.
POST
/
cardholders
/
{id}
/
kyc
/
session
Create a verification link
curl --request POST \
--url https://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session', 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://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.fyatu.com/api/v3.20/cardholders/{id}/kyc/session")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"status": 201,
"message": "Verification session created",
"data": {
"cardholderId": "chl_01HXYZ1234ABCDEF5678",
"sessionId": "ses_9f2c4e1a7b",
"verificationUrl": "https://verify.example/session/ses_9f2c4e1a7b",
"kycStatus": "PENDING",
"regenerated": false
}
}Overview
Opens a verification session that the cardholder completes themselves, and returns the link to hand them. This is the Managed KYC counterpart to sending documents: if you do not hold your cardholders’ identity documents, ask for a link instead. The decision arrives on your webhook asCARDHOLDER_KYC_APPROVED, CARDHOLDER_KYC_REJECTED or
CARDHOLDER_KYC_REVIEW_PENDING. Match it to the session with sessionId.
When to Call This
- You are on Managed KYC and the cardholder’s
kycStatusis anything other thanAPPROVED: never submitted,PENDING,REJECTED, or the retiredWAIVED. - Again for the same cardholder when a verification was rejected or abandoned. A new link
replaces the old one; the response says so with
regenerated: true, and the earlier link is no longer the current one.
APPROVED, or who is TERMINATED, is refused: a link means nothing
for either.
On Delegated KYC you verify your own cardholders: submit their identity documents with
Initiate KYC instead. Asking for a link answers
403
with DELEGATED_KYC_USE_DOCUMENTS.Request
No body. The cardholder is identified by the path.curl -X POST https://api.fyatu.com/api/v3.20/cardholders/chl_01HXYZ1234ABCDEF5678/kyc/session \
-H "Authorization: Bearer $FYATU_API_KEY"
const resp = await fetch(
'https://api.fyatu.com/api/v3.20/cardholders/chl_01HXYZ1234ABCDEF5678/kyc/session',
{ method: 'POST', headers: { 'Authorization': `Bearer ${process.env.FYATU_API_KEY}` } }
);
const { data } = await resp.json();
// send data.verificationUrl to the cardholder; keep data.sessionId to match the webhook
import os, requests
resp = requests.post(
'https://api.fyatu.com/api/v3.20/cardholders/chl_01HXYZ1234ABCDEF5678/kyc/session',
headers={'Authorization': f'Bearer {os.environ["FYATU_API_KEY"]}'}
)
data = resp.json()['data']
# send data['verificationUrl'] to the cardholder; keep data['sessionId'] to match the webhook
Success Response (201)
{
"success": true,
"status": 201,
"message": "Verification session created",
"data": {
"cardholderId": "chl_01HXYZ1234ABCDEF5678",
"sessionId": "ses_9f2c4e1a7b",
"verificationUrl": "https://verify.example/session/ses_9f2c4e1a7b",
"kycStatus": "PENDING",
"regenerated": false
}
}
| Field | Description |
|---|---|
sessionId | Identifies this session on the KYC webhook that carries the decision |
verificationUrl | The link the cardholder opens to verify |
kycStatus | The cardholder’s KYC status once the session is open |
regenerated | true when this replaced an existing session |
Error Codes
| Code | HTTP | Cause |
|---|---|---|
DELEGATED_KYC_USE_DOCUMENTS | 403 | Your business is on Delegated KYC; send documents with POST /cardholders/{id}/kyc |
CARDHOLDER_NOT_FOUND | 404 | No such cardholder under your business |
KYC_ALREADY_APPROVED | 409 | The cardholder is already approved |
CARDHOLDER_TERMINATED | 422 | The cardholder is terminated |
SERVICE_UNAVAILABLE | 503 | Verification is temporarily unavailable; try again |

