Check verification status
curl --request POST \
--url https://api.connect.verifyyou.com/v2/verification/status \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"token": "vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"external_id": "user_123"
}
'import requests
url = "https://api.connect.verifyyou.com/v2/verification/status"
payload = {
"token": "vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"external_id": "user_123"
}
headers = {
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({token: 'vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890', external_id: 'user_123'})
};
fetch('https://api.connect.verifyyou.com/v2/verification/status', 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.connect.verifyyou.com/v2/verification/status",
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([
'token' => 'vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'external_id' => 'user_123'
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <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.connect.verifyyou.com/v2/verification/status"
payload := strings.NewReader("{\n \"token\": \"vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"external_id\": \"user_123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-KEY", "<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.connect.verifyyou.com/v2/verification/status")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"external_id\": \"user_123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.connect.verifyyou.com/v2/verification/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"token\": \"vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"external_id\": \"user_123\"\n}"
response = http.request(request)
puts response.read_body{
"verification_complete": true,
"external_id": "user_123"
}{
"status": "failure",
"failure_code": "INVALID_API_ACCESS",
"failure_reason": "token or external_id required"
}{
"status": "failure",
"failure_code": "INVALID_API_KEY",
"failure_reason": "API key is missing or invalid"
}{
"status": "failure",
"failure_code": "DOES_NOT_EXIST",
"failure_reason": "Token not found"
}{
"status": "failure",
"failure_code": "EXPIRED",
"failure_reason": "Verification token has expired. Use external_id instead."
}{
"status": "failure",
"failure_code": "INTERNAL_ERROR",
"failure_reason": "An unexpected error occurred"
}{
"status": "failure",
"failure_code": "SERVICE_TEMPORARILY_UNAVAILABLE",
"failure_reason": "Service is temporarily unavailable for maintenance. Please try again later."
}API Reference
Check verification status
Look up whether a verification has been completed. Supply either the
short-lived token from the redirect callback, or the external_id
you used when creating the verification.
An in-flight verification (created but the user hasn’t finished the
liveness check yet) returns 200 with verification_complete: false,
safe to poll. 404 is only returned when the token or external_id
has no matching verification at all.
Tokens expire after 15 minutes. After expiry, use external_id instead.
POST
/
v2
/
verification
/
status
Check verification status
curl --request POST \
--url https://api.connect.verifyyou.com/v2/verification/status \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"token": "vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"external_id": "user_123"
}
'import requests
url = "https://api.connect.verifyyou.com/v2/verification/status"
payload = {
"token": "vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"external_id": "user_123"
}
headers = {
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({token: 'vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890', external_id: 'user_123'})
};
fetch('https://api.connect.verifyyou.com/v2/verification/status', 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.connect.verifyyou.com/v2/verification/status",
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([
'token' => 'vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'external_id' => 'user_123'
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <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.connect.verifyyou.com/v2/verification/status"
payload := strings.NewReader("{\n \"token\": \"vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"external_id\": \"user_123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-KEY", "<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.connect.verifyyou.com/v2/verification/status")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"external_id\": \"user_123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.connect.verifyyou.com/v2/verification/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"token\": \"vt:a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"external_id\": \"user_123\"\n}"
response = http.request(request)
puts response.read_body{
"verification_complete": true,
"external_id": "user_123"
}{
"status": "failure",
"failure_code": "INVALID_API_ACCESS",
"failure_reason": "token or external_id required"
}{
"status": "failure",
"failure_code": "INVALID_API_KEY",
"failure_reason": "API key is missing or invalid"
}{
"status": "failure",
"failure_code": "DOES_NOT_EXIST",
"failure_reason": "Token not found"
}{
"status": "failure",
"failure_code": "EXPIRED",
"failure_reason": "Verification token has expired. Use external_id instead."
}{
"status": "failure",
"failure_code": "INTERNAL_ERROR",
"failure_reason": "An unexpected error occurred"
}{
"status": "failure",
"failure_code": "SERVICE_TEMPORARILY_UNAVAILABLE",
"failure_reason": "Service is temporarily unavailable for maintenance. Please try again later."
}Authorizations
Your VerifyYou API key.
Body
application/json
Provide either token or external_id (at least one is required).
⌘I