Listar links de consentimiento
curl --request GET \
--url https://api.qbank.cl/platform/v1/qscore/consents \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/qscore/consents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qbank.cl/platform/v1/qscore/consents', 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/qscore/consents",
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 := "https://api.qbank.cl/platform/v1/qscore/consents"
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("https://api.qbank.cl/platform/v1/qscore/consents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/qscore/consents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"consents": [
{
"consent_id": "c1a2b3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"subject_id": "7e8f9a0b-1c2d-4e3f-8a9b-0c1d2e3f4a5b",
"channel": "link",
"status": "granted",
"purpose": "credit_evaluation",
"consent_url": "https://business.cbpayapp.com/consent/cns_4f9a2b7c1d8e4a0f9b3c6d5e8a7f1c2d",
"email": "maria@example.com",
"holder_name": "Maria Jose Contreras Soto",
"created_at": "2026-08-09T15:00:00Z",
"updated_at": "2026-08-10T09:21:44Z",
"expires_at": "2026-08-16T15:00:00Z",
"granted_at": "2026-08-10T09:21:44Z"
}
],
"total": 1,
"page": 1,
"page_size": 50
}Listar links de consentimiento
Lista los links de consentimiento de tu cuenta (mas recientes primero), paginado. Los filtros de fecha from y to (zona horaria de la organización, ambos inclusivos) son obligatorios; page parte en 1 y page_size por defecto es 50 (maximo 200). Los consents de otras cuentas jamas son visibles (aislamiento por cuenta).
GET
/
v1
/
qscore
/
consents
Listar links de consentimiento
curl --request GET \
--url https://api.qbank.cl/platform/v1/qscore/consents \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/qscore/consents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qbank.cl/platform/v1/qscore/consents', 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/qscore/consents",
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 := "https://api.qbank.cl/platform/v1/qscore/consents"
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("https://api.qbank.cl/platform/v1/qscore/consents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/qscore/consents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"consents": [
{
"consent_id": "c1a2b3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"subject_id": "7e8f9a0b-1c2d-4e3f-8a9b-0c1d2e3f4a5b",
"channel": "link",
"status": "granted",
"purpose": "credit_evaluation",
"consent_url": "https://business.cbpayapp.com/consent/cns_4f9a2b7c1d8e4a0f9b3c6d5e8a7f1c2d",
"email": "maria@example.com",
"holder_name": "Maria Jose Contreras Soto",
"created_at": "2026-08-09T15:00:00Z",
"updated_at": "2026-08-10T09:21:44Z",
"expires_at": "2026-08-16T15:00:00Z",
"granted_at": "2026-08-10T09:21:44Z"
}
],
"total": 1,
"page": 1,
"page_size": 50
}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 consulta
Fecha inicial (YYYY-MM-DD, zona horaria de la organización, inclusiva).
Fecha final (YYYY-MM-DD, zona horaria de la organización, inclusiva).
Filtrar por estado del consent.
Opciones disponibles:
pending, granted, revoked, expired Rango requerido:
x <= 200Respuesta
Lista paginada de consents.