验证 DNS 并激活域名
curl --request POST \
--url https://api.qbank.cl/platform/v1/account/verify-domains/{id}/verify \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/account/verify-domains/{id}/verify"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qbank.cl/platform/v1/account/verify-domains/{id}/verify', 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/account/verify-domains/{id}/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/account/verify-domains/{id}/verify"
req, _ := http.NewRequest("POST", 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.post("https://api.qbank.cl/platform/v1/account/verify-domains/{id}/verify")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/account/verify-domains/{id}/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "vd_3f2b1a09",
"domain": "verify.acme.example",
"status": "active",
"tls_status": "pending",
"instructions": {
"cname_target": "custom-verify.cbpayapp.com",
"cname_host": "verify.acme.example",
"txt_host": "_cbpay-verify.verify.acme.example",
"txt_value": "a1b2c3d4e5f60718293a4b5c6d7e8f90",
"note": "Point the CNAME (DNS-only, no proxy) and publish the TXT, then call verify. Propagation may take a few minutes."
},
"verified_at": "2026-12-02T14:00:00Z",
"checks": {
"txt": {
"ok": true,
"detail": "token found"
},
"cname": {
"ok": true,
"detail": "points to origin"
}
},
"hint": "domain verified; TLS is being provisioned"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "not_found",
"message": "resource not found"
}验证 DNS 并激活域名
对照实时 DNS 检查 TXT 与 CNAME 并激活域名;随后自动签发 TLS,仅在真实 HTTPS 探测成功后链接才使用自定义主机。始终返回 200 及逐项明细(便于轮询);仅当 DNS 不可达时返回 503 dns_check_failed(状态不变)。硬失败将暂停域名,链接回退到规范主机。仅公司账户,owner 角色。
POST
/
v1
/
account
/
verify-domains
/
{id}
/
verify
验证 DNS 并激活域名
curl --request POST \
--url https://api.qbank.cl/platform/v1/account/verify-domains/{id}/verify \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qbank.cl/platform/v1/account/verify-domains/{id}/verify"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qbank.cl/platform/v1/account/verify-domains/{id}/verify', 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/account/verify-domains/{id}/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/account/verify-domains/{id}/verify"
req, _ := http.NewRequest("POST", 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.post("https://api.qbank.cl/platform/v1/account/verify-domains/{id}/verify")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/account/verify-domains/{id}/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "vd_3f2b1a09",
"domain": "verify.acme.example",
"status": "active",
"tls_status": "pending",
"instructions": {
"cname_target": "custom-verify.cbpayapp.com",
"cname_host": "verify.acme.example",
"txt_host": "_cbpay-verify.verify.acme.example",
"txt_value": "a1b2c3d4e5f60718293a4b5c6d7e8f90",
"note": "Point the CNAME (DNS-only, no proxy) and publish the TXT, then call verify. Propagation may take a few minutes."
},
"verified_at": "2026-12-02T14:00:00Z",
"checks": {
"txt": {
"ok": true,
"detail": "token found"
},
"cname": {
"ok": true,
"detail": "points to origin"
}
},
"hint": "domain verified; TLS is being provisioned"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "not_found",
"message": "resource not found"
}