Create a contact
curl --request POST \
--url https://api.qbank.cl/platform/v1/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "Carlos Soto",
"phone": "+56987654321",
"email": "carlos@mail.com",
"favorite": true
}
'import requests
url = "https://api.qbank.cl/platform/v1/contacts"
payload = {
"display_name": "Carlos Soto",
"phone": "+56987654321",
"email": "carlos@mail.com",
"favorite": True
}
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({
display_name: 'Carlos Soto',
phone: '+56987654321',
email: 'carlos@mail.com',
favorite: true
})
};
fetch('https://api.qbank.cl/platform/v1/contacts', 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",
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([
'display_name' => 'Carlos Soto',
'phone' => '+56987654321',
'email' => 'carlos@mail.com',
'favorite' => true
]),
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"
payload := strings.NewReader("{\n \"display_name\": \"Carlos Soto\",\n \"phone\": \"+56987654321\",\n \"email\": \"carlos@mail.com\",\n \"favorite\": true\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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"display_name\": \"Carlos Soto\",\n \"phone\": \"+56987654321\",\n \"email\": \"carlos@mail.com\",\n \"favorite\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/contacts")
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 \"display_name\": \"Carlos Soto\",\n \"phone\": \"+56987654321\",\n \"email\": \"carlos@mail.com\",\n \"favorite\": true\n}"
response = http.request(request)
puts response.read_body{
"contact_id": "3f8a1b2c-4d5e-6f70-8a9b-0c1d2e3f4a5b",
"display_name": "Carlos Soto",
"phone": "+56987654321",
"email": "carlos@mail.com",
"has_cbpay": true,
"cbpay_account_id": "389d34a3-6c61-4782-b822-95ac173068dc",
"source": "manual",
"favorite": true,
"created_at": "2026-07-10T15:00:00Z",
"updated_at": "2026-07-10T15:00:00Z"
}{
"error": "invalid_phone",
"message": "phone could not be normalized to E.164 (send +<country><number>)"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "duplicate",
"message": "duplicate"
}Create a contact
Adds a contact manually. The phone is normalized to E.164 (local numbers use your account’s country) and matched against accounts of your operator to fill has_cbpay.
POST
/
v1
/
contacts
Create a contact
curl --request POST \
--url https://api.qbank.cl/platform/v1/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "Carlos Soto",
"phone": "+56987654321",
"email": "carlos@mail.com",
"favorite": true
}
'import requests
url = "https://api.qbank.cl/platform/v1/contacts"
payload = {
"display_name": "Carlos Soto",
"phone": "+56987654321",
"email": "carlos@mail.com",
"favorite": True
}
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({
display_name: 'Carlos Soto',
phone: '+56987654321',
email: 'carlos@mail.com',
favorite: true
})
};
fetch('https://api.qbank.cl/platform/v1/contacts', 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",
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([
'display_name' => 'Carlos Soto',
'phone' => '+56987654321',
'email' => 'carlos@mail.com',
'favorite' => true
]),
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"
payload := strings.NewReader("{\n \"display_name\": \"Carlos Soto\",\n \"phone\": \"+56987654321\",\n \"email\": \"carlos@mail.com\",\n \"favorite\": true\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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"display_name\": \"Carlos Soto\",\n \"phone\": \"+56987654321\",\n \"email\": \"carlos@mail.com\",\n \"favorite\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/contacts")
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 \"display_name\": \"Carlos Soto\",\n \"phone\": \"+56987654321\",\n \"email\": \"carlos@mail.com\",\n \"favorite\": true\n}"
response = http.request(request)
puts response.read_body{
"contact_id": "3f8a1b2c-4d5e-6f70-8a9b-0c1d2e3f4a5b",
"display_name": "Carlos Soto",
"phone": "+56987654321",
"email": "carlos@mail.com",
"has_cbpay": true,
"cbpay_account_id": "389d34a3-6c61-4782-b822-95ac173068dc",
"source": "manual",
"favorite": true,
"created_at": "2026-07-10T15:00:00Z",
"updated_at": "2026-07-10T15:00:00Z"
}{
"error": "invalid_phone",
"message": "phone could not be normalized to E.164 (send +<country><number>)"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "duplicate",
"message": "duplicate"
}Authorizations
Session JWT (from register/login) or API key (pk_...).
X-API-Key: <token> is accepted as an alternative header.
Response
Contact created.
E.164.
True when the phone matches an active account of your operator.
Linked account (present when has_cbpay is true).
Available options:
manual, import, transfer, payout, crypto Present on the detail endpoint.
Show child attributes
Show child attributes
Last modified on July 19, 2026
⌘I