读取授权请求(公开,持有人)
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"
}读取授权请求(公开,持有人)
consent_url 背后的授权请求公开视图。URL 中的令牌即是能力凭证(128 位随机数,每个授权唯一):无需登录,未知令牌返回通用 404(防枚举)。响应刻意保持最小化:doc_id 仅显示最后 4 个字符,邮箱、持有人身份和内部 id 绝不暴露。按 IP 限流。
GET
/
consent
/
{token}
读取授权请求(公开,持有人)
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"
}路径参数
嵌入在 consent_url 中的不透明授权令牌。
响应
面向持有人的授权请求摘要。
最后修改于 2026年8月22日
⌘I