Move a mailbox to another sender profile
curl --request POST \
--url https://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"to_sender_profile_sid": "<string>"
}
'import requests
url = "https://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move"
payload = { "to_sender_profile_sid": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({to_sender_profile_sid: '<string>'})
};
fetch('https://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move', 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://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move",
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([
'to_sender_profile_sid' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <api-key>"
],
]);
$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://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move"
payload := strings.NewReader("{\n \"to_sender_profile_sid\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
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://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"to_sender_profile_sid\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"to_sender_profile_sid\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"variables": {},
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"label": "<string>",
"linkedin_account_sid": "<string>",
"linkedin_source": "cloud",
"linkedin_status": "active",
"linkedin_status_reason": "<string>",
"linkedin_has_sn": true,
"linkedin_recruiter_status": "active",
"linkedin_history_since": "<string>",
"linkedin_history_scope": "all",
"email_account_sid": "<string>",
"avatar_url": "<string>",
"assignee_user_sid": "<string>",
"history_sync": {
"status": "pending",
"requested_at": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"threads_seen": 1,
"threads_imported": 1,
"messages_imported": 1,
"skipped": 1,
"synced_through": "<string>",
"error": "<string>"
},
"mailboxes": [
{
"email_account_sid": "<string>",
"address": "<string>",
"display_name": "<string>",
"provider": "<string>",
"status": "<string>",
"status_reason": "<string>",
"is_primary": true,
"sending_limits": {
"daily_limit": 123,
"min_interval_seconds": 123,
"sending_window": {}
},
"warmup_config": {
"enabled": true,
"ramp_start_daily": 123,
"ramp_step_per_day": 123,
"target_daily": 123
},
"signature_html": "<string>",
"bcc": [
"<string>"
],
"track_opens": true,
"track_clicks": true,
"email_tracking_domain_sid": "<string>",
"history_since": "<string>",
"history_scope": "all",
"connected_at": "<string>",
"synced_at": "<string>"
}
],
"deleted_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"result": {
"mailboxes": [
{
"email_account_sid": "<string>",
"address": "<string>",
"display_name": "<string>",
"provider": "<string>",
"status": "<string>",
"status_reason": "<string>",
"is_primary": true,
"sending_limits": {
"daily_limit": 123,
"min_interval_seconds": 123,
"sending_window": {}
},
"warmup_config": {
"enabled": true,
"ramp_start_daily": 123,
"ramp_step_per_day": 123,
"target_daily": 123
},
"signature_html": "<string>",
"bcc": [
"<string>"
],
"track_opens": true,
"track_clicks": true,
"email_tracking_domain_sid": "<string>",
"history_since": "<string>",
"history_scope": "all",
"connected_at": "<string>",
"synced_at": "<string>"
}
],
"to": {
"sid": "<string>",
"team_sid": "<string>",
"name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"variables": {},
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"label": "<string>",
"linkedin_account_sid": "<string>",
"linkedin_source": "cloud",
"linkedin_status": "active",
"linkedin_status_reason": "<string>",
"linkedin_has_sn": true,
"linkedin_recruiter_status": "active",
"linkedin_history_since": "<string>",
"linkedin_history_scope": "all",
"email_account_sid": "<string>",
"avatar_url": "<string>",
"assignee_user_sid": "<string>",
"history_sync": {
"status": "pending",
"requested_at": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"threads_seen": 1,
"threads_imported": 1,
"messages_imported": 1,
"skipped": 1,
"synced_through": "<string>",
"error": "<string>"
},
"mailboxes": [
{
"email_account_sid": "<string>",
"address": "<string>",
"display_name": "<string>",
"provider": "<string>",
"status": "<string>",
"status_reason": "<string>",
"is_primary": true,
"sending_limits": {
"daily_limit": 123,
"min_interval_seconds": 123,
"sending_window": {}
},
"warmup_config": {
"enabled": true,
"ramp_start_daily": 123,
"ramp_step_per_day": 123,
"target_daily": 123
},
"signature_html": "<string>",
"bcc": [
"<string>"
],
"track_opens": true,
"track_clicks": true,
"email_tracking_domain_sid": "<string>",
"history_since": "<string>",
"history_scope": "all",
"connected_at": "<string>",
"synced_at": "<string>"
}
],
"deleted_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}sender_profiles
Move a mailbox to another sender profile
Move a mailbox from this sender profile to another of the workspace (to_sender_profile_sid). Nothing changes on gtm-api.com: it stays connected and syncing, with its settings, history window and import scope. Its conversations move with it, so this sender profile loses them and may be left with no channel. 422 same_sender_profile, 404 when this sender profile does not hold it or the other is gone, 409 mailbox_already_connected, 403 when your role or share does not cover both sender profiles.
Contract:
- MCP tool
move_sender_profile_mailbox, registry packagemcp.unibox/sender_profiles, mountsender-accounts. - Operation
action, response envelopeaction. - Flags: dangerous: the MCP layer gates it behind a preview/commit token, and the effect cannot be undone through this API.
POST
/
api
/
sender-profiles
/
{sid}
/
mailboxes
/
{emailAccountSid}
/
move
Move a mailbox to another sender profile
curl --request POST \
--url https://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"to_sender_profile_sid": "<string>"
}
'import requests
url = "https://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move"
payload = { "to_sender_profile_sid": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({to_sender_profile_sid: '<string>'})
};
fetch('https://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move', 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://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move",
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([
'to_sender_profile_sid' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <api-key>"
],
]);
$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://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move"
payload := strings.NewReader("{\n \"to_sender_profile_sid\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
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://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"to_sender_profile_sid\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api2.getsales.io/unibox/v1/api/sender-profiles/{sid}/mailboxes/{emailAccountSid}/move")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"to_sender_profile_sid\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"variables": {},
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"label": "<string>",
"linkedin_account_sid": "<string>",
"linkedin_source": "cloud",
"linkedin_status": "active",
"linkedin_status_reason": "<string>",
"linkedin_has_sn": true,
"linkedin_recruiter_status": "active",
"linkedin_history_since": "<string>",
"linkedin_history_scope": "all",
"email_account_sid": "<string>",
"avatar_url": "<string>",
"assignee_user_sid": "<string>",
"history_sync": {
"status": "pending",
"requested_at": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"threads_seen": 1,
"threads_imported": 1,
"messages_imported": 1,
"skipped": 1,
"synced_through": "<string>",
"error": "<string>"
},
"mailboxes": [
{
"email_account_sid": "<string>",
"address": "<string>",
"display_name": "<string>",
"provider": "<string>",
"status": "<string>",
"status_reason": "<string>",
"is_primary": true,
"sending_limits": {
"daily_limit": 123,
"min_interval_seconds": 123,
"sending_window": {}
},
"warmup_config": {
"enabled": true,
"ramp_start_daily": 123,
"ramp_step_per_day": 123,
"target_daily": 123
},
"signature_html": "<string>",
"bcc": [
"<string>"
],
"track_opens": true,
"track_clicks": true,
"email_tracking_domain_sid": "<string>",
"history_since": "<string>",
"history_scope": "all",
"connected_at": "<string>",
"synced_at": "<string>"
}
],
"deleted_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"result": {
"mailboxes": [
{
"email_account_sid": "<string>",
"address": "<string>",
"display_name": "<string>",
"provider": "<string>",
"status": "<string>",
"status_reason": "<string>",
"is_primary": true,
"sending_limits": {
"daily_limit": 123,
"min_interval_seconds": 123,
"sending_window": {}
},
"warmup_config": {
"enabled": true,
"ramp_start_daily": 123,
"ramp_step_per_day": 123,
"target_daily": 123
},
"signature_html": "<string>",
"bcc": [
"<string>"
],
"track_opens": true,
"track_clicks": true,
"email_tracking_domain_sid": "<string>",
"history_since": "<string>",
"history_scope": "all",
"connected_at": "<string>",
"synced_at": "<string>"
}
],
"to": {
"sid": "<string>",
"team_sid": "<string>",
"name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"variables": {},
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"label": "<string>",
"linkedin_account_sid": "<string>",
"linkedin_source": "cloud",
"linkedin_status": "active",
"linkedin_status_reason": "<string>",
"linkedin_has_sn": true,
"linkedin_recruiter_status": "active",
"linkedin_history_since": "<string>",
"linkedin_history_scope": "all",
"email_account_sid": "<string>",
"avatar_url": "<string>",
"assignee_user_sid": "<string>",
"history_sync": {
"status": "pending",
"requested_at": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"threads_seen": 1,
"threads_imported": 1,
"messages_imported": 1,
"skipped": 1,
"synced_through": "<string>",
"error": "<string>"
},
"mailboxes": [
{
"email_account_sid": "<string>",
"address": "<string>",
"display_name": "<string>",
"provider": "<string>",
"status": "<string>",
"status_reason": "<string>",
"is_primary": true,
"sending_limits": {
"daily_limit": 123,
"min_interval_seconds": 123,
"sending_window": {}
},
"warmup_config": {
"enabled": true,
"ramp_start_daily": 123,
"ramp_step_per_day": 123,
"target_daily": 123
},
"signature_html": "<string>",
"bcc": [
"<string>"
],
"track_opens": true,
"track_clicks": true,
"email_tracking_domain_sid": "<string>",
"history_since": "<string>",
"history_scope": "all",
"connected_at": "<string>",
"synced_at": "<string>"
}
],
"deleted_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Authorizations
Path Parameters
Body
application/json
Response
action success envelope.