Skip to main content
GET
/
api
/
kyc
/
face-match
/
verifications
/
{id}
Obtener verificación Face Match
curl --request GET \
  --url http://api.gu1.ai/api/kyc/face-match/verifications/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "http://api.gu1.ai/api/kyc/face-match/verifications/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('http://api.gu1.ai/api/kyc/face-match/verifications/{id}', 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 => "http://api.gu1.ai/api/kyc/face-match/verifications/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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 := "http://api.gu1.ai/api/kyc/face-match/verifications/{id}"

req, _ := http.NewRequest("GET", 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.get("http://api.gu1.ai/api/kyc/face-match/verifications/{id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("http://api.gu1.ai/api/kyc/face-match/verifications/{id}")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

Resumen

Devuelve una verificación de Face Match por su id (el mismo UUID que se devuelve como verificationId en la respuesta del POST Face Match o en el endpoint de listado). Úsalo para consultar el detalle de una verificación pasada (auditoría, soporte o vistas de detalle). Puntos clave:
  • Scoped a tu organización; devuelve 404 si el ID no existe o pertenece a otra organización.
  • Mismos campos que cada ítem del listado: id, entityId, status, match, score, threshold, createdAt y rutas de imágenes opcionales.
Para descargar los bytes del documento y del selfie almacenados, usá Obtener imágenes Face Match (/document-image y /selfie-image).

Solicitud

Endpoint

GET https://api.gu1.ai/api/kyc/face-match/verifications/:id

Parámetros de path

id
string
required
UUID de la verificación Face Match (el mismo que verificationId del POST o del listado).

Headers

{
  "Authorization": "Bearer YOUR_API_KEY"
}
Incluye X-Organization-Id si tu cuenta está scoped por organización.

Respuesta

Éxito (200 OK)

Objeto único de verificación:
CampoTipoDescripción
idstringUUID de la verificación.
organizationIdstringOrganización que posee el registro.
entityIdstring | nullID de la entidad persona si se envió en la solicitud.
statusstringapproved | declined | in_review | failed.
matchbooleanSi las caras se consideraron coincidentes.
scorenumber | nullPuntaje de similitud 0–100 (null cuando status es failed).
requestIdstring | nullID interno de la solicitud (soporte).
vendorDatastring | nullReferencia del cliente en la solicitud.
errorMessagestring | nullMensaje de error cuando status es failed.
triggeredByUserIdstring | nullUsuario que llamó a la API.
createdAtstringTimestamp ISO.
documentStoragePathstring | nullRuta de almacenamiento de la imagen del documento (auditoría).
selfieStoragePathstring | nullRuta de almacenamiento de la selfie (auditoría).
storageProviderstring | nulls3 o local.
thresholdnumber | nullUmbral de puntaje usado en esta verificación (configuración de la org en ese momento).

Respuestas de error

CódigoHTTPDescripción
NOT_FOUND404El ID de verificación no existe o pertenece a otra organización.
UNAUTHORIZED401API key o contexto de organización ausente o inválido.

Ejemplo

const id = 'a1b2c3d4-e5f6-7890-abcd-ef1234567890';
const response = await fetch(`https://api.gu1.ai/api/kyc/face-match/verifications/${id}`, {
  headers: { 'Authorization': 'Bearer YOUR_API_KEY' },
});
const verification = await response.json();
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.gu1.ai/api/kyc/face-match/verifications/a1b2c3d4-e5f6-7890-abcd-ef1234567890"

Próximos pasos

Face Match (POST)

Verificar documento + selfie en una llamada

Listar validaciones

Listar validaciones KYC por entidad