Confirmar un documento KYC subido
curl --request POST \
--url https://api.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "public-api/2026/07/10/cedula.jpg",
"category": "identity",
"filename": "cedula.jpg",
"content_type": "image/jpeg"
}
'import requests
url = "https://api.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm"
payload = {
"key": "public-api/2026/07/10/cedula.jpg",
"category": "identity",
"filename": "cedula.jpg",
"content_type": "image/jpeg"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
key: 'public-api/2026/07/10/cedula.jpg',
category: 'identity',
filename: 'cedula.jpg',
content_type: 'image/jpeg'
})
};
fetch('https://api.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm', 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.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm",
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([
'key' => 'public-api/2026/07/10/cedula.jpg',
'category' => 'identity',
'filename' => 'cedula.jpg',
'content_type' => 'image/jpeg'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm"
payload := strings.NewReader("{\n \"key\": \"public-api/2026/07/10/cedula.jpg\",\n \"category\": \"identity\",\n \"filename\": \"cedula.jpg\",\n \"content_type\": \"image/jpeg\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"public-api/2026/07/10/cedula.jpg\",\n \"category\": \"identity\",\n \"filename\": \"cedula.jpg\",\n \"content_type\": \"image/jpeg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"public-api/2026/07/10/cedula.jpg\",\n \"category\": \"identity\",\n \"filename\": \"cedula.jpg\",\n \"content_type\": \"image/jpeg\"\n}"
response = http.request(request)
puts response.read_body{
"status": "received",
"ocr": "queued"
}{
"error": "invalid_key",
"message": "the upload key does not match a presigned upload"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "not_found",
"message": "resource not found"
}Confirmar un documento KYC subido
Paso 3 del flujo de documentos. Adjunta el archivo subido a la submission y encola su validación OCR; el resultado llega por el webhook kyc_document_validated.
POST
/
v1
/
kyc
/
submissions
/
{submissionID}
/
documents
/
confirm
Confirmar un documento KYC subido
curl --request POST \
--url https://api.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "public-api/2026/07/10/cedula.jpg",
"category": "identity",
"filename": "cedula.jpg",
"content_type": "image/jpeg"
}
'import requests
url = "https://api.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm"
payload = {
"key": "public-api/2026/07/10/cedula.jpg",
"category": "identity",
"filename": "cedula.jpg",
"content_type": "image/jpeg"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
key: 'public-api/2026/07/10/cedula.jpg',
category: 'identity',
filename: 'cedula.jpg',
content_type: 'image/jpeg'
})
};
fetch('https://api.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm', 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.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm",
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([
'key' => 'public-api/2026/07/10/cedula.jpg',
'category' => 'identity',
'filename' => 'cedula.jpg',
'content_type' => 'image/jpeg'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm"
payload := strings.NewReader("{\n \"key\": \"public-api/2026/07/10/cedula.jpg\",\n \"category\": \"identity\",\n \"filename\": \"cedula.jpg\",\n \"content_type\": \"image/jpeg\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"public-api/2026/07/10/cedula.jpg\",\n \"category\": \"identity\",\n \"filename\": \"cedula.jpg\",\n \"content_type\": \"image/jpeg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/kyc/submissions/{submissionID}/documents/confirm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"public-api/2026/07/10/cedula.jpg\",\n \"category\": \"identity\",\n \"filename\": \"cedula.jpg\",\n \"content_type\": \"image/jpeg\"\n}"
response = http.request(request)
puts response.read_body{
"status": "received",
"ocr": "queued"
}{
"error": "invalid_key",
"message": "the upload key does not match a presigned upload"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "not_found",
"message": "resource not found"
}Autorizaciones
JWT de sesión (de register/login) o llave de API (pk_...).
X-API-Key: <token> se acepta como header alternativo.
Parámetros de ruta
Cuerpo
application/json
Última modificación el 18 de julio de 2026
⌘I