curl --request POST \
--url https://api.baselayer.com/identities/principals/{principal_ref}/reverify \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.baselayer.com/identities/principals/{principal_ref}/reverify"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.baselayer.com/identities/principals/{principal_ref}/reverify', 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.baselayer.com/identities/principals/{principal_ref}/reverify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-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://api.baselayer.com/identities/principals/{principal_ref}/reverify"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-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://api.baselayer.com/identities/principals/{principal_ref}/reverify")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.baselayer.com/identities/principals/{principal_ref}/reverify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "PENDING",
"reference_id": "<string>"
}{
"code": 1,
"message": "Could not locate the resource for the given URI.",
"metadata": {}
}{
"code": 6202,
"message": "A re-verification for this identity is already in flight.",
"metadata": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Re-verify an identity from its stored verification
Starts a fresh verification of the person behind a principal_ref from the fields their current verification recorded — nothing is collected from you and no stored field is echoed back. Verification runs asynchronously exactly like a direct submission: the request is accepted with a 202 and a submission id — poll GET /identity_submissions/{submission_id} or subscribe to the OnboardingSession.completed webhook. The reference survives re-verification; on completion the new verification supersedes the old one.
curl --request POST \
--url https://api.baselayer.com/identities/principals/{principal_ref}/reverify \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.baselayer.com/identities/principals/{principal_ref}/reverify"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.baselayer.com/identities/principals/{principal_ref}/reverify', 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.baselayer.com/identities/principals/{principal_ref}/reverify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-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://api.baselayer.com/identities/principals/{principal_ref}/reverify"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-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://api.baselayer.com/identities/principals/{principal_ref}/reverify")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.baselayer.com/identities/principals/{principal_ref}/reverify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "PENDING",
"reference_id": "<string>"
}{
"code": 1,
"message": "Could not locate the resource for the given URI.",
"metadata": {}
}{
"code": 6202,
"message": "A re-verification for this identity is already in flight.",
"metadata": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Path Parameters
Response
Response
Body for the submission routes: the accepted, asynchronous submission.
KYC/KYB run asynchronously — the response never carries a verification
result. Poll GET /identity_submissions/{submission_id} or subscribe to
the OnboardingSession.completed webhook for the outcome and refs.
Unique id of the accepted submission — the handle for status polling, and the session id the OnboardingSession.completed webhook carries.
Lifecycle state of the verification workflow.
PENDING, EXECUTING, WAITING, COMPLETED, FAILED, EXPIRED, CANCELLED Caller-supplied correlation id.