Skip to main content
POST
/
api
/
v2.1
/
verifications
cURL
curl --request POST \
  --url https://sandbox.finhub.cloud/api/v2.1/verifications \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-Forwarded-For: <x-forwarded-for>' \
  --header 'X-Forwarded-From: <x-forwarded-from>' \
  --header 'X-Tenant-ID: <x-tenant-id>' \
  --header 'deviceId: <deviceid>' \
  --header 'platform: <platform>' \
  --data '
{
  "customerId": "2dac1793-ab48-420c-b0b5-01292302e188",
  "type": "IDENTITY_VERIFICATION",
  "requestedLevel": "TENANT_VERIFIED",
  "requestedByUserId": "0d488f57-57ef-4f9a-88a6-f89121cab838",
  "requestedByTenantId": "97e7ff29-15f3-49ef-9681-3bbfcce4f6cd",
  "notes": "Identity Verification"
}
'
import requests

url = "https://sandbox.finhub.cloud/api/v2.1/verifications"

payload = {
"customerId": "2dac1793-ab48-420c-b0b5-01292302e188",
"type": "IDENTITY_VERIFICATION",
"requestedLevel": "TENANT_VERIFIED",
"requestedByUserId": "0d488f57-57ef-4f9a-88a6-f89121cab838",
"requestedByTenantId": "97e7ff29-15f3-49ef-9681-3bbfcce4f6cd",
"notes": "Identity Verification"
}
headers = {
"X-Forwarded-For": "<x-forwarded-for>",
"X-Tenant-ID": "<x-tenant-id>",
"X-Forwarded-From": "<x-forwarded-from>",
"platform": "<platform>",
"deviceId": "<deviceid>",
"Authorization": "<authorization>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {
'X-Forwarded-For': '<x-forwarded-for>',
'X-Tenant-ID': '<x-tenant-id>',
'X-Forwarded-From': '<x-forwarded-from>',
platform: '<platform>',
deviceId: '<deviceid>',
Authorization: '<authorization>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
customerId: '2dac1793-ab48-420c-b0b5-01292302e188',
type: 'IDENTITY_VERIFICATION',
requestedLevel: 'TENANT_VERIFIED',
requestedByUserId: '0d488f57-57ef-4f9a-88a6-f89121cab838',
requestedByTenantId: '97e7ff29-15f3-49ef-9681-3bbfcce4f6cd',
notes: 'Identity Verification'
})
};

fetch('https://sandbox.finhub.cloud/api/v2.1/verifications', 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.finhub.cloud/api/v2.1/verifications",
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([
'customerId' => '2dac1793-ab48-420c-b0b5-01292302e188',
'type' => 'IDENTITY_VERIFICATION',
'requestedLevel' => 'TENANT_VERIFIED',
'requestedByUserId' => '0d488f57-57ef-4f9a-88a6-f89121cab838',
'requestedByTenantId' => '97e7ff29-15f3-49ef-9681-3bbfcce4f6cd',
'notes' => 'Identity Verification'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"X-Forwarded-For: <x-forwarded-for>",
"X-Forwarded-From: <x-forwarded-from>",
"X-Tenant-ID: <x-tenant-id>",
"deviceId: <deviceid>",
"platform: <platform>"
],
]);

$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://sandbox.finhub.cloud/api/v2.1/verifications"

payload := strings.NewReader("{\n \"customerId\": \"2dac1793-ab48-420c-b0b5-01292302e188\",\n \"type\": \"IDENTITY_VERIFICATION\",\n \"requestedLevel\": \"TENANT_VERIFIED\",\n \"requestedByUserId\": \"0d488f57-57ef-4f9a-88a6-f89121cab838\",\n \"requestedByTenantId\": \"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd\",\n \"notes\": \"Identity Verification\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-Forwarded-For", "<x-forwarded-for>")
req.Header.Add("X-Tenant-ID", "<x-tenant-id>")
req.Header.Add("X-Forwarded-From", "<x-forwarded-from>")
req.Header.Add("platform", "<platform>")
req.Header.Add("deviceId", "<deviceid>")
req.Header.Add("Authorization", "<authorization>")
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://sandbox.finhub.cloud/api/v2.1/verifications")
.header("X-Forwarded-For", "<x-forwarded-for>")
.header("X-Tenant-ID", "<x-tenant-id>")
.header("X-Forwarded-From", "<x-forwarded-from>")
.header("platform", "<platform>")
.header("deviceId", "<deviceid>")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"customerId\": \"2dac1793-ab48-420c-b0b5-01292302e188\",\n \"type\": \"IDENTITY_VERIFICATION\",\n \"requestedLevel\": \"TENANT_VERIFIED\",\n \"requestedByUserId\": \"0d488f57-57ef-4f9a-88a6-f89121cab838\",\n \"requestedByTenantId\": \"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd\",\n \"notes\": \"Identity Verification\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://sandbox.finhub.cloud/api/v2.1/verifications")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Forwarded-For"] = '<x-forwarded-for>'
request["X-Tenant-ID"] = '<x-tenant-id>'
request["X-Forwarded-From"] = '<x-forwarded-from>'
request["platform"] = '<platform>'
request["deviceId"] = '<deviceid>'
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customerId\": \"2dac1793-ab48-420c-b0b5-01292302e188\",\n \"type\": \"IDENTITY_VERIFICATION\",\n \"requestedLevel\": \"TENANT_VERIFIED\",\n \"requestedByUserId\": \"0d488f57-57ef-4f9a-88a6-f89121cab838\",\n \"requestedByTenantId\": \"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd\",\n \"notes\": \"Identity Verification\"\n}"

response = http.request(request)
puts response.read_body

Create Verification

Creates a verification request for individual or organization onboarding.

Endpoint

POST /api/v2.1/verifications

Common Defaults

  • requestedLevel: TENANT_VERIFIED
  • B2C type: IDENTITY_VERIFICATION
  • B2B type: BUSINESS_VERIFICATION

Required Headers

B2C Example

{
  "customerId": "2dac1793-ab48-420c-b0b5-01292302e188",
  "type": "IDENTITY_VERIFICATION",
  "requestedLevel": "TENANT_VERIFIED",
  "requestedByUserId": "0d488f57-57ef-4f9a-88a6-f89121cab838",
  "requestedByTenantId": "97e7ff29-15f3-49ef-9681-3bbfcce4f6cd",
  "notes": "Identity Verification"
}

B2B Example

{
  "customerId": "f458d016-56bb-43a6-856c-4d0456b2c38c",
  "type": "BUSINESS_VERIFICATION",
  "requestedLevel": "TENANT_VERIFIED",
  "requestedByUserId": "da9a15d2-1eb9-4804-a812-b58b03f33018",
  "requestedByTenantId": "97e7ff29-15f3-49ef-9681-3bbfcce4f6cd",
  "notes": "Business Verification"
}

Response Example

200
{
  "code": 200,
  "data": {
    "verificationId": "825f84a5-a709-4e58-a80f-b51871d94cfb",
    "status": "PENDING",
    "verificationType": "KYC"
  },
  "message": "Success"
}

Headers

X-Forwarded-For
string
required
X-Tenant-ID
string
required
X-Forwarded-From
string
required
platform
string
required
deviceId
string
required
Authorization
string
required

Body

application/json
customerId
string
required
Example:

"2dac1793-ab48-420c-b0b5-01292302e188"

type
string
required
Example:

"IDENTITY_VERIFICATION"

requestedLevel
string
required
Example:

"TENANT_VERIFIED"

requestedByUserId
string
required
Example:

"0d488f57-57ef-4f9a-88a6-f89121cab838"

requestedByTenantId
string
required
Example:

"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd"

notes
string
required
Example:

"Identity Verification"

Response

200

Verification created