Export the private key
curl --request POST \
--url https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Custody migration to the client cold wallet"
}
'import requests
url = "https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export"
payload = { "reason": "Custody migration to the client cold wallet" }
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({reason: 'Custody migration to the client cold wallet'})
};
fetch('https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export', 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/segregated-wallets/{walletID}/export",
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([
'reason' => 'Custody migration to the client cold wallet'
]),
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/segregated-wallets/{walletID}/export"
payload := strings.NewReader("{\n \"reason\": \"Custody migration to the client cold wallet\"\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/segregated-wallets/{walletID}/export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Custody migration to the client cold wallet\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export")
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 \"reason\": \"Custody migration to the client cold wallet\"\n}"
response = http.request(request)
puts response.read_body{
"wallet": {
"wallet_id": "b7e3a1c2-9f4d-4a8b-8c1e-2d3f4a5b6c7d",
"chain": "tron",
"asset": "USDT",
"address": "TRmSZRaMAqLEevAdGwo3R43bRBXamWR5bd",
"exported": true,
"exported_at": "2026-07-11T12:10:00Z"
},
"private_key_hex": "<64 hex>",
"export": {
"custody": "shared",
"warning": "anyone holding this private key controls the wallet funds; the wallet remains operational in the platform"
}
}{
"error": "human_session_required",
"message": "this operation handles private key material and requires a signed-in user session with 2FA; API keys are not allowed"
}{
"error": "export_unavailable",
"message": "private key export is not enabled on this environment"
}Export the private key
Returns the wallet’s private key (shared custody: the wallet stays operational in the platform after export). The most sensitive operation of the product: requires a signed-in user session with 2FA (API keys rejected), a verified account and a reason of at least 20 characters kept in the audit trail. Each export fires the wallet_key_exported webhook. Bills the wallet_export fee.
POST
/
v1
/
segregated-wallets
/
{walletID}
/
export
Export the private key
curl --request POST \
--url https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Custody migration to the client cold wallet"
}
'import requests
url = "https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export"
payload = { "reason": "Custody migration to the client cold wallet" }
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({reason: 'Custody migration to the client cold wallet'})
};
fetch('https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export', 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/segregated-wallets/{walletID}/export",
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([
'reason' => 'Custody migration to the client cold wallet'
]),
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/segregated-wallets/{walletID}/export"
payload := strings.NewReader("{\n \"reason\": \"Custody migration to the client cold wallet\"\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/segregated-wallets/{walletID}/export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Custody migration to the client cold wallet\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export")
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 \"reason\": \"Custody migration to the client cold wallet\"\n}"
response = http.request(request)
puts response.read_body{
"wallet": {
"wallet_id": "b7e3a1c2-9f4d-4a8b-8c1e-2d3f4a5b6c7d",
"chain": "tron",
"asset": "USDT",
"address": "TRmSZRaMAqLEevAdGwo3R43bRBXamWR5bd",
"exported": true,
"exported_at": "2026-07-11T12:10:00Z"
},
"private_key_hex": "<64 hex>",
"export": {
"custody": "shared",
"warning": "anyone holding this private key controls the wallet funds; the wallet remains operational in the platform"
}
}{
"error": "human_session_required",
"message": "this operation handles private key material and requires a signed-in user session with 2FA; API keys are not allowed"
}{
"error": "export_unavailable",
"message": "private key export is not enabled on this environment"
}Authorizations
Session JWT (from register/login) or API key (pk_...).
X-API-Key: <token> is accepted as an alternative header.
Headers
Path Parameters
Body
application/json
At least 20 characters; kept in the audit trail.
Response
The private key (store securely).
The response is of type object.
Last modified on July 19, 2026
⌘I