curl --request POST \
--url https://your-instance.example.com/api/organizations/transfer/execute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"scanVersion": "scan-2026-05-18T14:30:00Z-abc123",
"userId": "5f7b1c2e8a1d4e0012c3b4a6",
"targetOrganizationId": "5f7b1c2e8a1d4e0012c3b401",
"targetDepartmentId": "5f7b1c2e8a1d4e0012c3b510",
"newAccessRole": "SALES_REP",
"reassigneeUserId": "5f7b1c2e8a1d4e0012c3b4a8",
"agentRemaps": [
{
"fromAgentId": "5f7b1c2e8a1d4e0012c3b610",
"toAgentId": "5f7b1c2e8a1d4e0012c3b611"
}
]
}
'import requests
url = "https://your-instance.example.com/api/organizations/transfer/execute"
payload = {
"scanVersion": "scan-2026-05-18T14:30:00Z-abc123",
"userId": "5f7b1c2e8a1d4e0012c3b4a6",
"targetOrganizationId": "5f7b1c2e8a1d4e0012c3b401",
"targetDepartmentId": "5f7b1c2e8a1d4e0012c3b510",
"newAccessRole": "SALES_REP",
"reassigneeUserId": "5f7b1c2e8a1d4e0012c3b4a8",
"agentRemaps": [
{
"fromAgentId": "5f7b1c2e8a1d4e0012c3b610",
"toAgentId": "5f7b1c2e8a1d4e0012c3b611"
}
]
}
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({
scanVersion: 'scan-2026-05-18T14:30:00Z-abc123',
userId: '5f7b1c2e8a1d4e0012c3b4a6',
targetOrganizationId: '5f7b1c2e8a1d4e0012c3b401',
targetDepartmentId: '5f7b1c2e8a1d4e0012c3b510',
newAccessRole: 'SALES_REP',
reassigneeUserId: '5f7b1c2e8a1d4e0012c3b4a8',
agentRemaps: [
{fromAgentId: '5f7b1c2e8a1d4e0012c3b610', toAgentId: '5f7b1c2e8a1d4e0012c3b611'}
]
})
};
fetch('https://your-instance.example.com/api/organizations/transfer/execute', 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://your-instance.example.com/api/organizations/transfer/execute",
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([
'scanVersion' => 'scan-2026-05-18T14:30:00Z-abc123',
'userId' => '5f7b1c2e8a1d4e0012c3b4a6',
'targetOrganizationId' => '5f7b1c2e8a1d4e0012c3b401',
'targetDepartmentId' => '5f7b1c2e8a1d4e0012c3b510',
'newAccessRole' => 'SALES_REP',
'reassigneeUserId' => '5f7b1c2e8a1d4e0012c3b4a8',
'agentRemaps' => [
[
'fromAgentId' => '5f7b1c2e8a1d4e0012c3b610',
'toAgentId' => '5f7b1c2e8a1d4e0012c3b611'
]
]
]),
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://your-instance.example.com/api/organizations/transfer/execute"
payload := strings.NewReader("{\n \"scanVersion\": \"scan-2026-05-18T14:30:00Z-abc123\",\n \"userId\": \"5f7b1c2e8a1d4e0012c3b4a6\",\n \"targetOrganizationId\": \"5f7b1c2e8a1d4e0012c3b401\",\n \"targetDepartmentId\": \"5f7b1c2e8a1d4e0012c3b510\",\n \"newAccessRole\": \"SALES_REP\",\n \"reassigneeUserId\": \"5f7b1c2e8a1d4e0012c3b4a8\",\n \"agentRemaps\": [\n {\n \"fromAgentId\": \"5f7b1c2e8a1d4e0012c3b610\",\n \"toAgentId\": \"5f7b1c2e8a1d4e0012c3b611\"\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://your-instance.example.com/api/organizations/transfer/execute")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"scanVersion\": \"scan-2026-05-18T14:30:00Z-abc123\",\n \"userId\": \"5f7b1c2e8a1d4e0012c3b4a6\",\n \"targetOrganizationId\": \"5f7b1c2e8a1d4e0012c3b401\",\n \"targetDepartmentId\": \"5f7b1c2e8a1d4e0012c3b510\",\n \"newAccessRole\": \"SALES_REP\",\n \"reassigneeUserId\": \"5f7b1c2e8a1d4e0012c3b4a8\",\n \"agentRemaps\": [\n {\n \"fromAgentId\": \"5f7b1c2e8a1d4e0012c3b610\",\n \"toAgentId\": \"5f7b1c2e8a1d4e0012c3b611\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/organizations/transfer/execute")
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 \"scanVersion\": \"scan-2026-05-18T14:30:00Z-abc123\",\n \"userId\": \"5f7b1c2e8a1d4e0012c3b4a6\",\n \"targetOrganizationId\": \"5f7b1c2e8a1d4e0012c3b401\",\n \"targetDepartmentId\": \"5f7b1c2e8a1d4e0012c3b510\",\n \"newAccessRole\": \"SALES_REP\",\n \"reassigneeUserId\": \"5f7b1c2e8a1d4e0012c3b4a8\",\n \"agentRemaps\": [\n {\n \"fromAgentId\": \"5f7b1c2e8a1d4e0012c3b610\",\n \"toAgentId\": \"5f7b1c2e8a1d4e0012c3b611\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"transferId": "5f7b1c2e8a1d4e0012c3b900",
"status": "in_progress"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}Execute a cross-organization user transfer (SuperAdmin only)
Kicks off an asynchronous transfer of a user (and their owned data: contacts, conversations, automations, workflows, webchat configs, acquired items, email/calendar/sheets integrations, voice numbers, etc.) into a target organization. Requires a fresh scanVersion from /transfer/scan and a reassigneeUserId that owns whatever cannot be moved. SUPERADMIN only.
curl --request POST \
--url https://your-instance.example.com/api/organizations/transfer/execute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"scanVersion": "scan-2026-05-18T14:30:00Z-abc123",
"userId": "5f7b1c2e8a1d4e0012c3b4a6",
"targetOrganizationId": "5f7b1c2e8a1d4e0012c3b401",
"targetDepartmentId": "5f7b1c2e8a1d4e0012c3b510",
"newAccessRole": "SALES_REP",
"reassigneeUserId": "5f7b1c2e8a1d4e0012c3b4a8",
"agentRemaps": [
{
"fromAgentId": "5f7b1c2e8a1d4e0012c3b610",
"toAgentId": "5f7b1c2e8a1d4e0012c3b611"
}
]
}
'import requests
url = "https://your-instance.example.com/api/organizations/transfer/execute"
payload = {
"scanVersion": "scan-2026-05-18T14:30:00Z-abc123",
"userId": "5f7b1c2e8a1d4e0012c3b4a6",
"targetOrganizationId": "5f7b1c2e8a1d4e0012c3b401",
"targetDepartmentId": "5f7b1c2e8a1d4e0012c3b510",
"newAccessRole": "SALES_REP",
"reassigneeUserId": "5f7b1c2e8a1d4e0012c3b4a8",
"agentRemaps": [
{
"fromAgentId": "5f7b1c2e8a1d4e0012c3b610",
"toAgentId": "5f7b1c2e8a1d4e0012c3b611"
}
]
}
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({
scanVersion: 'scan-2026-05-18T14:30:00Z-abc123',
userId: '5f7b1c2e8a1d4e0012c3b4a6',
targetOrganizationId: '5f7b1c2e8a1d4e0012c3b401',
targetDepartmentId: '5f7b1c2e8a1d4e0012c3b510',
newAccessRole: 'SALES_REP',
reassigneeUserId: '5f7b1c2e8a1d4e0012c3b4a8',
agentRemaps: [
{fromAgentId: '5f7b1c2e8a1d4e0012c3b610', toAgentId: '5f7b1c2e8a1d4e0012c3b611'}
]
})
};
fetch('https://your-instance.example.com/api/organizations/transfer/execute', 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://your-instance.example.com/api/organizations/transfer/execute",
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([
'scanVersion' => 'scan-2026-05-18T14:30:00Z-abc123',
'userId' => '5f7b1c2e8a1d4e0012c3b4a6',
'targetOrganizationId' => '5f7b1c2e8a1d4e0012c3b401',
'targetDepartmentId' => '5f7b1c2e8a1d4e0012c3b510',
'newAccessRole' => 'SALES_REP',
'reassigneeUserId' => '5f7b1c2e8a1d4e0012c3b4a8',
'agentRemaps' => [
[
'fromAgentId' => '5f7b1c2e8a1d4e0012c3b610',
'toAgentId' => '5f7b1c2e8a1d4e0012c3b611'
]
]
]),
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://your-instance.example.com/api/organizations/transfer/execute"
payload := strings.NewReader("{\n \"scanVersion\": \"scan-2026-05-18T14:30:00Z-abc123\",\n \"userId\": \"5f7b1c2e8a1d4e0012c3b4a6\",\n \"targetOrganizationId\": \"5f7b1c2e8a1d4e0012c3b401\",\n \"targetDepartmentId\": \"5f7b1c2e8a1d4e0012c3b510\",\n \"newAccessRole\": \"SALES_REP\",\n \"reassigneeUserId\": \"5f7b1c2e8a1d4e0012c3b4a8\",\n \"agentRemaps\": [\n {\n \"fromAgentId\": \"5f7b1c2e8a1d4e0012c3b610\",\n \"toAgentId\": \"5f7b1c2e8a1d4e0012c3b611\"\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://your-instance.example.com/api/organizations/transfer/execute")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"scanVersion\": \"scan-2026-05-18T14:30:00Z-abc123\",\n \"userId\": \"5f7b1c2e8a1d4e0012c3b4a6\",\n \"targetOrganizationId\": \"5f7b1c2e8a1d4e0012c3b401\",\n \"targetDepartmentId\": \"5f7b1c2e8a1d4e0012c3b510\",\n \"newAccessRole\": \"SALES_REP\",\n \"reassigneeUserId\": \"5f7b1c2e8a1d4e0012c3b4a8\",\n \"agentRemaps\": [\n {\n \"fromAgentId\": \"5f7b1c2e8a1d4e0012c3b610\",\n \"toAgentId\": \"5f7b1c2e8a1d4e0012c3b611\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/organizations/transfer/execute")
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 \"scanVersion\": \"scan-2026-05-18T14:30:00Z-abc123\",\n \"userId\": \"5f7b1c2e8a1d4e0012c3b4a6\",\n \"targetOrganizationId\": \"5f7b1c2e8a1d4e0012c3b401\",\n \"targetDepartmentId\": \"5f7b1c2e8a1d4e0012c3b510\",\n \"newAccessRole\": \"SALES_REP\",\n \"reassigneeUserId\": \"5f7b1c2e8a1d4e0012c3b4a8\",\n \"agentRemaps\": [\n {\n \"fromAgentId\": \"5f7b1c2e8a1d4e0012c3b610\",\n \"toAgentId\": \"5f7b1c2e8a1d4e0012c3b611\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"transferId": "5f7b1c2e8a1d4e0012c3b900",
"status": "in_progress"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Version token returned by the prior scan call; rejected if stale to prevent applying an out-of-date transfer plan.
1User being transferred; must match the userId from the matching scan.
Destination organization for the user; must match the targetOrganizationId from the matching scan.
Access role the user receives in the target organization.
ADMIN, DEPARTMENT_HEAD, SALES_REP User in the source org who inherits the transferring user's owned resources (contacts, conversations, automations, workflows, webchat configs, prompts); must differ from userId.
Optional department within the target organization the user joins; the user is added as a manager when newAccessRole is DEPARTMENT_HEAD, otherwise as a member.
Optional remappings applied to the transferring user's automations so each fromAgentId is swapped to the corresponding toAgentId owned by the reassignee.
Show child attributes
Show child attributes