Verification Sessions
Create a verification session
POST
/
v1
/
verification_sessions
Create a verification session
curl --request POST \
--url https://api.yorlet.com/v1/verification_sessions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"types": [],
"metadata": {},
"client_reference_id": "<string>",
"options": {
"income": {
"require_income_reference": true
},
"monitor": {
"continuous_screening": true
}
},
"provided_details": {
"dob": {
"day": 16,
"month": 6,
"year": 5949
},
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>"
},
"related_customer": "<string>",
"related_owner_person": "<string>",
"return_url": "<string>",
"send_email": false
}
'import requests
url = "https://api.yorlet.com/v1/verification_sessions"
payload = {
"types": [],
"metadata": {},
"client_reference_id": "<string>",
"options": {
"income": { "require_income_reference": True },
"monitor": { "continuous_screening": True }
},
"provided_details": {
"dob": {
"day": 16,
"month": 6,
"year": 5949
},
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>"
},
"related_customer": "<string>",
"related_owner_person": "<string>",
"return_url": "<string>",
"send_email": False
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
types: [],
metadata: {},
client_reference_id: '<string>',
options: {
income: {require_income_reference: true},
monitor: {continuous_screening: true}
},
provided_details: {
dob: {day: 16, month: 6, year: 5949},
email: '[email protected]',
first_name: '<string>',
last_name: '<string>',
phone: '<string>'
},
related_customer: '<string>',
related_owner_person: '<string>',
return_url: '<string>',
send_email: false
})
};
fetch('https://api.yorlet.com/v1/verification_sessions', 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://api.yorlet.com/v1/verification_sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'types' => [
],
'metadata' => [
],
'client_reference_id' => '<string>',
'options' => [
'income' => [
'require_income_reference' => true
],
'monitor' => [
'continuous_screening' => true
]
],
'provided_details' => [
'dob' => [
'day' => 16,
'month' => 6,
'year' => 5949
],
'email' => '[email protected]',
'first_name' => '<string>',
'last_name' => '<string>',
'phone' => '<string>'
],
'related_customer' => '<string>',
'related_owner_person' => '<string>',
'return_url' => '<string>',
'send_email' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.yorlet.com/v1/verification_sessions"
payload := strings.NewReader("{\n \"types\": [],\n \"metadata\": {},\n \"client_reference_id\": \"<string>\",\n \"options\": {\n \"income\": {\n \"require_income_reference\": true\n },\n \"monitor\": {\n \"continuous_screening\": true\n }\n },\n \"provided_details\": {\n \"dob\": {\n \"day\": 16,\n \"month\": 6,\n \"year\": 5949\n },\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"related_customer\": \"<string>\",\n \"related_owner_person\": \"<string>\",\n \"return_url\": \"<string>\",\n \"send_email\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.yorlet.com/v1/verification_sessions")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"types\": [],\n \"metadata\": {},\n \"client_reference_id\": \"<string>\",\n \"options\": {\n \"income\": {\n \"require_income_reference\": true\n },\n \"monitor\": {\n \"continuous_screening\": true\n }\n },\n \"provided_details\": {\n \"dob\": {\n \"day\": 16,\n \"month\": 6,\n \"year\": 5949\n },\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"related_customer\": \"<string>\",\n \"related_owner_person\": \"<string>\",\n \"return_url\": \"<string>\",\n \"send_email\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.yorlet.com/v1/verification_sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"types\": [],\n \"metadata\": {},\n \"client_reference_id\": \"<string>\",\n \"options\": {\n \"income\": {\n \"require_income_reference\": true\n },\n \"monitor\": {\n \"continuous_screening\": true\n }\n },\n \"provided_details\": {\n \"dob\": {\n \"day\": 16,\n \"month\": 6,\n \"year\": 5949\n },\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"related_customer\": \"<string>\",\n \"related_owner_person\": \"<string>\",\n \"return_url\": \"<string>\",\n \"send_email\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created": 123,
"object": "verification_session",
"completed_at": 123,
"credit_check": {
"next_action": {
"type": "pending_identity"
},
"status": "<string>"
},
"identity": {
"last_error": {
"code": "<string>",
"reason": "<string>"
},
"next_action": {
"type": "use_yorlet_sdk",
"use_yorlet_sdk": {
"client_secret": "<string>"
}
},
"status": "<string>"
},
"income": {
"next_action": {
"type": "pending_income"
},
"status": "<string>"
},
"monitor": {
"next_action": {
"type": "pending_identity"
},
"status": "processing"
},
"options": {
"identity": {
"allowed_types": [
"driving_licence"
]
},
"income": {
"affordability_check": {
"amount": 123,
"interval": "month",
"inverval_count": 123
},
"require_income_reference": true
},
"monitor": {
"continuous_screening": true
}
},
"provided_details": {
"dob": {
"day": 16,
"month": 6,
"year": 5949
},
"first_name": "<string>",
"email": "[email protected]",
"last_name": "<string>",
"phone": "<string>"
},
"requirements": {
"completed": [
"credit_check"
],
"currently_due": [
"credit_check"
]
},
"return_url": "<string>",
"right_to_rent": {
"next_action": {
"type": "pending_identity",
"dob_required": true
},
"status": "requires_input",
"type": "gb_resident"
},
"status": "pending",
"types": [
"identity"
],
"url": "<string>",
"verified_outputs": {
"affordability": {
"cost_to_income_ratio": 123
},
"first_name": "<string>",
"last_name": "<string>"
},
"verification_report": {
"id": "<string>",
"created": 123,
"object": "verification_report",
"identity": {
"dob": {
"day": 16,
"month": 6,
"year": 5949
},
"expiration_date": 123,
"first_name": "<string>",
"issuing_country": "<string>",
"last_name": "<string>",
"status": "unverified",
"type": "<string>"
},
"income": {
"affordability": {
"cost_to_income_ratio": 123
},
"status": "unverified",
"type": "permanent_employment",
"verification": {
"bank_account": {
"items": [
{
"bank_name": "<string>",
"income_sources": [
{
"category": "<string>",
"description": "<string>",
"total": 123
}
]
}
],
"sources": 123,
"total_monthly": 123,
"total_yearly": 123
},
"document": {
"items": [
{
"employer_name": "<string>",
"employee_name": "<string>",
"pay_stubs": [
{
"gross_earnings": 123,
"net_pay": 123,
"pay_date": 123,
"pay_frequency": "<string>"
}
]
}
],
"total_monthly": 123,
"total_yearly": 123
},
"type": "bank_account"
}
},
"right_to_rent": {
"checked_at": 123,
"conditions": "<string>",
"dob": {
"day": 16,
"month": 6,
"year": 5949
},
"dob_verification": "verified",
"expires_at": 123,
"pdf": "<string>",
"reference_number": "<string>",
"screenshot": "<string>",
"share_code": "<string>",
"status": "unverified",
"time_limit": "unlimited",
"type": "gb_resident"
},
"status": "unverified",
"types": [
"identity"
],
"verification_session": "<string>",
"account": "<string>",
"deleted": false
},
"account": "<string>",
"deleted": false,
"manually_reviewed": false
}Body
application/json
Response
200 - application/json
Returns the verification session object if the request succeeded.
Was this page helpful?
Create a verification session
curl --request POST \
--url https://api.yorlet.com/v1/verification_sessions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"types": [],
"metadata": {},
"client_reference_id": "<string>",
"options": {
"income": {
"require_income_reference": true
},
"monitor": {
"continuous_screening": true
}
},
"provided_details": {
"dob": {
"day": 16,
"month": 6,
"year": 5949
},
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>"
},
"related_customer": "<string>",
"related_owner_person": "<string>",
"return_url": "<string>",
"send_email": false
}
'import requests
url = "https://api.yorlet.com/v1/verification_sessions"
payload = {
"types": [],
"metadata": {},
"client_reference_id": "<string>",
"options": {
"income": { "require_income_reference": True },
"monitor": { "continuous_screening": True }
},
"provided_details": {
"dob": {
"day": 16,
"month": 6,
"year": 5949
},
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>"
},
"related_customer": "<string>",
"related_owner_person": "<string>",
"return_url": "<string>",
"send_email": False
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
types: [],
metadata: {},
client_reference_id: '<string>',
options: {
income: {require_income_reference: true},
monitor: {continuous_screening: true}
},
provided_details: {
dob: {day: 16, month: 6, year: 5949},
email: '[email protected]',
first_name: '<string>',
last_name: '<string>',
phone: '<string>'
},
related_customer: '<string>',
related_owner_person: '<string>',
return_url: '<string>',
send_email: false
})
};
fetch('https://api.yorlet.com/v1/verification_sessions', 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://api.yorlet.com/v1/verification_sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'types' => [
],
'metadata' => [
],
'client_reference_id' => '<string>',
'options' => [
'income' => [
'require_income_reference' => true
],
'monitor' => [
'continuous_screening' => true
]
],
'provided_details' => [
'dob' => [
'day' => 16,
'month' => 6,
'year' => 5949
],
'email' => '[email protected]',
'first_name' => '<string>',
'last_name' => '<string>',
'phone' => '<string>'
],
'related_customer' => '<string>',
'related_owner_person' => '<string>',
'return_url' => '<string>',
'send_email' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.yorlet.com/v1/verification_sessions"
payload := strings.NewReader("{\n \"types\": [],\n \"metadata\": {},\n \"client_reference_id\": \"<string>\",\n \"options\": {\n \"income\": {\n \"require_income_reference\": true\n },\n \"monitor\": {\n \"continuous_screening\": true\n }\n },\n \"provided_details\": {\n \"dob\": {\n \"day\": 16,\n \"month\": 6,\n \"year\": 5949\n },\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"related_customer\": \"<string>\",\n \"related_owner_person\": \"<string>\",\n \"return_url\": \"<string>\",\n \"send_email\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.yorlet.com/v1/verification_sessions")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"types\": [],\n \"metadata\": {},\n \"client_reference_id\": \"<string>\",\n \"options\": {\n \"income\": {\n \"require_income_reference\": true\n },\n \"monitor\": {\n \"continuous_screening\": true\n }\n },\n \"provided_details\": {\n \"dob\": {\n \"day\": 16,\n \"month\": 6,\n \"year\": 5949\n },\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"related_customer\": \"<string>\",\n \"related_owner_person\": \"<string>\",\n \"return_url\": \"<string>\",\n \"send_email\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.yorlet.com/v1/verification_sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"types\": [],\n \"metadata\": {},\n \"client_reference_id\": \"<string>\",\n \"options\": {\n \"income\": {\n \"require_income_reference\": true\n },\n \"monitor\": {\n \"continuous_screening\": true\n }\n },\n \"provided_details\": {\n \"dob\": {\n \"day\": 16,\n \"month\": 6,\n \"year\": 5949\n },\n \"email\": \"[email protected]\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"phone\": \"<string>\"\n },\n \"related_customer\": \"<string>\",\n \"related_owner_person\": \"<string>\",\n \"return_url\": \"<string>\",\n \"send_email\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created": 123,
"object": "verification_session",
"completed_at": 123,
"credit_check": {
"next_action": {
"type": "pending_identity"
},
"status": "<string>"
},
"identity": {
"last_error": {
"code": "<string>",
"reason": "<string>"
},
"next_action": {
"type": "use_yorlet_sdk",
"use_yorlet_sdk": {
"client_secret": "<string>"
}
},
"status": "<string>"
},
"income": {
"next_action": {
"type": "pending_income"
},
"status": "<string>"
},
"monitor": {
"next_action": {
"type": "pending_identity"
},
"status": "processing"
},
"options": {
"identity": {
"allowed_types": [
"driving_licence"
]
},
"income": {
"affordability_check": {
"amount": 123,
"interval": "month",
"inverval_count": 123
},
"require_income_reference": true
},
"monitor": {
"continuous_screening": true
}
},
"provided_details": {
"dob": {
"day": 16,
"month": 6,
"year": 5949
},
"first_name": "<string>",
"email": "[email protected]",
"last_name": "<string>",
"phone": "<string>"
},
"requirements": {
"completed": [
"credit_check"
],
"currently_due": [
"credit_check"
]
},
"return_url": "<string>",
"right_to_rent": {
"next_action": {
"type": "pending_identity",
"dob_required": true
},
"status": "requires_input",
"type": "gb_resident"
},
"status": "pending",
"types": [
"identity"
],
"url": "<string>",
"verified_outputs": {
"affordability": {
"cost_to_income_ratio": 123
},
"first_name": "<string>",
"last_name": "<string>"
},
"verification_report": {
"id": "<string>",
"created": 123,
"object": "verification_report",
"identity": {
"dob": {
"day": 16,
"month": 6,
"year": 5949
},
"expiration_date": 123,
"first_name": "<string>",
"issuing_country": "<string>",
"last_name": "<string>",
"status": "unverified",
"type": "<string>"
},
"income": {
"affordability": {
"cost_to_income_ratio": 123
},
"status": "unverified",
"type": "permanent_employment",
"verification": {
"bank_account": {
"items": [
{
"bank_name": "<string>",
"income_sources": [
{
"category": "<string>",
"description": "<string>",
"total": 123
}
]
}
],
"sources": 123,
"total_monthly": 123,
"total_yearly": 123
},
"document": {
"items": [
{
"employer_name": "<string>",
"employee_name": "<string>",
"pay_stubs": [
{
"gross_earnings": 123,
"net_pay": 123,
"pay_date": 123,
"pay_frequency": "<string>"
}
]
}
],
"total_monthly": 123,
"total_yearly": 123
},
"type": "bank_account"
}
},
"right_to_rent": {
"checked_at": 123,
"conditions": "<string>",
"dob": {
"day": 16,
"month": 6,
"year": 5949
},
"dob_verification": "verified",
"expires_at": 123,
"pdf": "<string>",
"reference_number": "<string>",
"screenshot": "<string>",
"share_code": "<string>",
"status": "unverified",
"time_limit": "unlimited",
"type": "gb_resident"
},
"status": "unverified",
"types": [
"identity"
],
"verification_session": "<string>",
"account": "<string>",
"deleted": false
},
"account": "<string>",
"deleted": false,
"manually_reviewed": false
}