Import the phone address book
curl --request POST \
--url https://api.qbank.cl/platform/v1/contacts/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"name": "Carlos Soto",
"phones": [
"+56 9 8765 4321"
]
},
{
"name": "Ana Perez",
"phones": [
"912345678"
]
}
]
}
'import requests
url = "https://api.qbank.cl/platform/v1/contacts/import"
payload = { "contacts": [
{
"name": "Carlos Soto",
"phones": ["+56 9 8765 4321"]
},
{
"name": "Ana Perez",
"phones": ["912345678"]
}
] }
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({
contacts: [
{name: 'Carlos Soto', phones: ['+56 9 8765 4321']},
{name: 'Ana Perez', phones: ['912345678']}
]
})
};
fetch('https://api.qbank.cl/platform/v1/contacts/import', 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/contacts/import",
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([
'contacts' => [
[
'name' => 'Carlos Soto',
'phones' => [
'+56 9 8765 4321'
]
],
[
'name' => 'Ana Perez',
'phones' => [
'912345678'
]
]
]
]),
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/contacts/import"
payload := strings.NewReader("{\n \"contacts\": [\n {\n \"name\": \"Carlos Soto\",\n \"phones\": [\n \"+56 9 8765 4321\"\n ]\n },\n {\n \"name\": \"Ana Perez\",\n \"phones\": [\n \"912345678\"\n ]\n }\n ]\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/contacts/import")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contacts\": [\n {\n \"name\": \"Carlos Soto\",\n \"phones\": [\n \"+56 9 8765 4321\"\n ]\n },\n {\n \"name\": \"Ana Perez\",\n \"phones\": [\n \"912345678\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/contacts/import")
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 \"contacts\": [\n {\n \"name\": \"Carlos Soto\",\n \"phones\": [\n \"+56 9 8765 4321\"\n ]\n },\n {\n \"name\": \"Ana Perez\",\n \"phones\": [\n \"912345678\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"imported": 2,
"matched": 1,
"total": 2,
"contacts": [
{
"name": "Carlos Soto",
"phone": "+56987654321",
"contact_id": "3f8a1b2c-4d5e-6f70-8a9b-0c1d2e3f4a5b",
"has_cbpay": true
},
{
"name": "Ana Perez",
"phone": "+56912345678",
"contact_id": "9c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
"has_cbpay": false
}
]
}{
"error": "batch_too_large",
"message": "send up to 1000 contacts per request (paginate the upload)"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}Import the phone address book
Uploads up to 1,000 contacts per request (paginate beyond that). Phones are normalized to E.164; existing contacts are never duplicated; has_cbpay tells you which contacts already have an active account of your same operator (match by phone).
POST
/
v1
/
contacts
/
import
Import the phone address book
curl --request POST \
--url https://api.qbank.cl/platform/v1/contacts/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"name": "Carlos Soto",
"phones": [
"+56 9 8765 4321"
]
},
{
"name": "Ana Perez",
"phones": [
"912345678"
]
}
]
}
'import requests
url = "https://api.qbank.cl/platform/v1/contacts/import"
payload = { "contacts": [
{
"name": "Carlos Soto",
"phones": ["+56 9 8765 4321"]
},
{
"name": "Ana Perez",
"phones": ["912345678"]
}
] }
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({
contacts: [
{name: 'Carlos Soto', phones: ['+56 9 8765 4321']},
{name: 'Ana Perez', phones: ['912345678']}
]
})
};
fetch('https://api.qbank.cl/platform/v1/contacts/import', 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/contacts/import",
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([
'contacts' => [
[
'name' => 'Carlos Soto',
'phones' => [
'+56 9 8765 4321'
]
],
[
'name' => 'Ana Perez',
'phones' => [
'912345678'
]
]
]
]),
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/contacts/import"
payload := strings.NewReader("{\n \"contacts\": [\n {\n \"name\": \"Carlos Soto\",\n \"phones\": [\n \"+56 9 8765 4321\"\n ]\n },\n {\n \"name\": \"Ana Perez\",\n \"phones\": [\n \"912345678\"\n ]\n }\n ]\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/contacts/import")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contacts\": [\n {\n \"name\": \"Carlos Soto\",\n \"phones\": [\n \"+56 9 8765 4321\"\n ]\n },\n {\n \"name\": \"Ana Perez\",\n \"phones\": [\n \"912345678\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/contacts/import")
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 \"contacts\": [\n {\n \"name\": \"Carlos Soto\",\n \"phones\": [\n \"+56 9 8765 4321\"\n ]\n },\n {\n \"name\": \"Ana Perez\",\n \"phones\": [\n \"912345678\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"imported": 2,
"matched": 1,
"total": 2,
"contacts": [
{
"name": "Carlos Soto",
"phone": "+56987654321",
"contact_id": "3f8a1b2c-4d5e-6f70-8a9b-0c1d2e3f4a5b",
"has_cbpay": true
},
{
"name": "Ana Perez",
"phone": "+56912345678",
"contact_id": "9c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
"has_cbpay": false
}
]
}{
"error": "batch_too_large",
"message": "send up to 1000 contacts per request (paginate the upload)"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}Authorizations
Session JWT (from register/login) or API key (pk_...).
X-API-Key: <token> is accepted as an alternative header.
Body
application/json
Maximum array length:
1000Show child attributes
Show child attributes
Last modified on July 18, 2026
⌘I