Register your verification subdomain
curl --request POST \
--url https://api.qbank.cl/platform/v1/account/verify-domains \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "verify.acme.example"
}
'import requests
url = "https://api.qbank.cl/platform/v1/account/verify-domains"
payload = { "domain": "verify.acme.example" }
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({domain: 'verify.acme.example'})
};
fetch('https://api.qbank.cl/platform/v1/account/verify-domains', 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",
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([
'domain' => 'verify.acme.example'
]),
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/account/verify-domains"
payload := strings.NewReader("{\n \"domain\": \"verify.acme.example\"\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/account/verify-domains")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"verify.acme.example\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/account/verify-domains")
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 \"domain\": \"verify.acme.example\"\n}"
response = http.request(request)
puts response.read_body{
"id": "vd_3f2b1a09",
"domain": "verify.acme.example",
"status": "pending",
"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."
},
"hint": "add the DNS records, wait for propagation, then call verify"
}{
"error": "invalid_json",
"message": "request body is not valid JSON: unknown field"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}Register your verification subdomain
Registers a custom subdomain (e.g. verify.yourcompany.com) so the KYC/KYB links you create are served with your host plus your brand styles (the brand travels with the invite, not the host). Returns DNS instructions: point the CNAME (DNS-only, no proxy) and publish the TXT token, then call verify. Company accounts only, owner role. One domain per account (v1): delete it first to replace. 409 domain_claimed never reveals the current owner. 503 custom_domains_unavailable while the environment has no origin target provisioned.
POST
/
v1
/
account
/
verify-domains
Register your verification subdomain
curl --request POST \
--url https://api.qbank.cl/platform/v1/account/verify-domains \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "verify.acme.example"
}
'import requests
url = "https://api.qbank.cl/platform/v1/account/verify-domains"
payload = { "domain": "verify.acme.example" }
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({domain: 'verify.acme.example'})
};
fetch('https://api.qbank.cl/platform/v1/account/verify-domains', 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",
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([
'domain' => 'verify.acme.example'
]),
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/account/verify-domains"
payload := strings.NewReader("{\n \"domain\": \"verify.acme.example\"\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/account/verify-domains")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"verify.acme.example\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/account/verify-domains")
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 \"domain\": \"verify.acme.example\"\n}"
response = http.request(request)
puts response.read_body{
"id": "vd_3f2b1a09",
"domain": "verify.acme.example",
"status": "pending",
"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."
},
"hint": "add the DNS records, wait for propagation, then call verify"
}{
"error": "invalid_json",
"message": "request body is not valid JSON: unknown field"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}