Invite an existing account to the company
curl --request POST \
--url https://api.qbank.cl/platform/v1/members/invite \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "ops@example.com",
"role": "operator"
}
'import requests
url = "https://api.qbank.cl/platform/v1/members/invite"
payload = {
"email": "ops@example.com",
"role": "operator"
}
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({email: 'ops@example.com', role: 'operator'})
};
fetch('https://api.qbank.cl/platform/v1/members/invite', 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/members/invite",
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([
'email' => 'ops@example.com',
'role' => 'operator'
]),
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/members/invite"
payload := strings.NewReader("{\n \"email\": \"ops@example.com\",\n \"role\": \"operator\"\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/members/invite")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"ops@example.com\",\n \"role\": \"operator\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/members/invite")
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 \"email\": \"ops@example.com\",\n \"role\": \"operator\"\n}"
response = http.request(request)
puts response.read_body{
"invite_id": "7f3a9c1e-4b5d-4e6f-8a9b-0c1d2e3f4a5b",
"company_account_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"company_name": "Acme SpA",
"email": "ops@example.com",
"role": "operator",
"status": "pending",
"invited_by": "owner@example.com",
"delivery": "link",
"expires_at": "2026-12-02T12:00:00Z",
"created_at": "2026-11-25T12:00:00Z"
}{
"error": "invalid_role",
"message": "role must be operator or viewer"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "account_required",
"message": "this endpoint requires an account credential"
}{
"error": "invitee_not_found",
"message": "no account in this organization uses that email; they must create their account first"
}{
"error": "already_member",
"message": "that email already has access to this company"
}Invite an existing account to the company
Invites an account that already exists in the organization to operate in this company as operator or viewer. Owner-only, company accounts only, OTP-protected (member_add) and idempotent (Idempotency-Key). The invitee accepts from their own session; on accept a linked login is created (same credential, company-scoped role).
POST
/
v1
/
members
/
invite
Invite an existing account to the company
curl --request POST \
--url https://api.qbank.cl/platform/v1/members/invite \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "ops@example.com",
"role": "operator"
}
'import requests
url = "https://api.qbank.cl/platform/v1/members/invite"
payload = {
"email": "ops@example.com",
"role": "operator"
}
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({email: 'ops@example.com', role: 'operator'})
};
fetch('https://api.qbank.cl/platform/v1/members/invite', 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/members/invite",
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([
'email' => 'ops@example.com',
'role' => 'operator'
]),
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/members/invite"
payload := strings.NewReader("{\n \"email\": \"ops@example.com\",\n \"role\": \"operator\"\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/members/invite")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"ops@example.com\",\n \"role\": \"operator\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/members/invite")
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 \"email\": \"ops@example.com\",\n \"role\": \"operator\"\n}"
response = http.request(request)
puts response.read_body{
"invite_id": "7f3a9c1e-4b5d-4e6f-8a9b-0c1d2e3f4a5b",
"company_account_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"company_name": "Acme SpA",
"email": "ops@example.com",
"role": "operator",
"status": "pending",
"invited_by": "owner@example.com",
"delivery": "link",
"expires_at": "2026-12-02T12:00:00Z",
"created_at": "2026-11-25T12:00:00Z"
}{
"error": "invalid_role",
"message": "role must be operator or viewer"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "account_required",
"message": "this endpoint requires an account credential"
}{
"error": "invitee_not_found",
"message": "no account in this organization uses that email; they must create their account first"
}{
"error": "already_member",
"message": "that email already has access to this company"
}Authorizations
Body
application/json
Response
Invitation created (pending).