Obtener imágenes Face Match
curl --request GET \
--url http://api.gu1.ai/api/kyc/face-match/verifications/{id}/document-image \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/api/kyc/face-match/verifications/{id}/document-image"
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}/document-image', 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}/document-image",
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}/document-image"
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}/document-image")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/api/kyc/face-match/verifications/{id}/document-image")
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_bodyFace Match
Obtener imágenes Face Match
Descargar las imágenes de documento y selfie de una verificación Face Match — en la API KYC de gu1 para flujos de verificación de identidad.
GET
/
api
/
kyc
/
face-match
/
verifications
/
{id}
/
document-image
Obtener imágenes Face Match
curl --request GET \
--url http://api.gu1.ai/api/kyc/face-match/verifications/{id}/document-image \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/api/kyc/face-match/verifications/{id}/document-image"
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}/document-image', 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}/document-image",
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}/document-image"
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}/document-image")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/api/kyc/face-match/verifications/{id}/document-image")
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_bodyResumen
Tras un Face Match exitoso, podés descargar las imágenes del documento y del selfie enviados llamando a los dos GET de abajo. Usá el mismoverificationId (UUID) que devuelve el POST (o el id del GET verificación). Misma API key con Authorization: Bearer y permiso de lectura KYC que en el resto de Face Match.
Si para esa verificación no quedó copia disponible de una imagen, el endpoint correspondiente responde 404 (por ejemplo si falló el guardado en ese momento).
Endpoints
Imagen del documento
GET https://api.gu1.ai/api/kyc/face-match/verifications/{verificationId}/document-image
Imagen del selfie
GET https://api.gu1.ai/api/kyc/face-match/verifications/{verificationId}/selfie-image
Parámetros de path
string
required
UUID de la verificación Face Match (el mismo que
verificationId del POST o id del GET uno/listado).Headers
Authorization:Bearer TU_API_KEY(obligatorio)
X-Organization-Id si tu cuenta está limitada por organización.
Respuestas
| HTTP | Descripción |
|---|---|
| 200 | Bytes de la imagen (Content-Type ej. image/jpeg, image/png). |
| 404 | Verificación inexistente, de otra organización, o esa imagen no está disponible para descarga. |
Ejemplos
curl -sS -o documento.jpg \
-H "Authorization: Bearer TU_API_KEY" \
"https://api.gu1.ai/api/kyc/face-match/verifications/UUID_VERIFICACION/document-image"
curl -sS -o selfie.jpg \
-H "Authorization: Bearer TU_API_KEY" \
"https://api.gu1.ai/api/kyc/face-match/verifications/UUID_VERIFICACION/selfie-image"
Relacionado
Was this page helpful?