Leer una solicitud de consentimiento (publico, titular)
curl --request GET \
--url https://api.qbank.cl/platform/consent/{token}import requests
url = "https://api.qbank.cl/platform/consent/{token}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.qbank.cl/platform/consent/{token}', 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/consent/{token}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.qbank.cl/platform/consent/{token}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qbank.cl/platform/consent/{token}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/consent/{token}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "pending",
"purpose": "credit_evaluation",
"country": "CL",
"subject_type": "person",
"doc_id": "********678-5",
"org": {
"name": "ACME SpA",
"website": "https://acme.example.com",
"logo_url": "https://cdn.example.com/acme/logo.png"
},
"expires_at": "2026-08-16T15:00:00Z"
}{
"error": "not_found",
"message": "consent not found"
}{
"error": "rate_limited",
"message": "too many requests"
}Leer una solicitud de consentimiento (publico, titular)
Vista publica de la solicitud de consentimiento detras de una consent_url. El token de la URL ES la capacidad (128 bits aleatorios, unico por consent): no se requiere login, y un token desconocido responde un 404 generico (anti-enumeracion). La respuesta es minima a proposito: doc_id va enmascarado a sus ultimos 4 caracteres, y el email, la identidad del titular y los ids internos jamas se exponen. Con rate limit por IP.
GET
/
consent
/
{token}
Leer una solicitud de consentimiento (publico, titular)
curl --request GET \
--url https://api.qbank.cl/platform/consent/{token}import requests
url = "https://api.qbank.cl/platform/consent/{token}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.qbank.cl/platform/consent/{token}', 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/consent/{token}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.qbank.cl/platform/consent/{token}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qbank.cl/platform/consent/{token}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/consent/{token}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "pending",
"purpose": "credit_evaluation",
"country": "CL",
"subject_type": "person",
"doc_id": "********678-5",
"org": {
"name": "ACME SpA",
"website": "https://acme.example.com",
"logo_url": "https://cdn.example.com/acme/logo.png"
},
"expires_at": "2026-08-16T15:00:00Z"
}{
"error": "not_found",
"message": "consent not found"
}{
"error": "rate_limited",
"message": "too many requests"
}Parámetros de ruta
Token opaco del consent embebido en la consent_url.
Respuesta
Resumen de la solicitud para el titular.