Move mailboxes into email server
curl --request POST \
--url https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"from_email_box_sid": "<string>",
"email_account_sids": [
"<string>"
]
}
'import requests
url = "https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in"
payload = {
"from_email_box_sid": "<string>",
"email_account_sids": ["<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({from_email_box_sid: '<string>', email_account_sids: ['<string>']})
};
fetch('https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in', 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://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in",
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([
'from_email_box_sid' => '<string>',
'email_account_sids' => [
'<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://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in"
payload := strings.NewReader("{\n \"from_email_box_sid\": \"<string>\",\n \"email_account_sids\": [\n \"<string>\"\n ]\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://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"from_email_box_sid\": \"<string>\",\n \"email_account_sids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in")
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 \"from_email_box_sid\": \"<string>\",\n \"email_account_sids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": "<unknown>",
"result": {
"run": {
"verb": "<string>",
"status": "<string>",
"phase": "<string>",
"phase_index": 1,
"phase_count": 1,
"started_at": "<string>",
"error_code": "<string>"
}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}email_boxes
Move mailboxes into email server
Move mailboxes from another email server of the workspace into this one (sid receives): up to 100, all on from_email_box_sid, both servers active. Runs in the background (result.run); the mailboxes stop syncing until they land, and a failure before the import puts them back. Hosted mailboxes and ones with mail queued to send stay. Watch run in search_email_boxes; retry_email_box_run resumes a failed move. 409 not_enough_seats (free, needed), email_box_busy. Requires can_update_email_accounts.
Contract:
- MCP tool
move_in_email_box_mailboxes, registry packagemcp.id/email_boxes, mountid.billing. - Operation
action, response envelopeaction. - Flags: none.
POST
/
api
/
email-boxes
/
{sid}
/
move-in
Move mailboxes into email server
curl --request POST \
--url https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"from_email_box_sid": "<string>",
"email_account_sids": [
"<string>"
]
}
'import requests
url = "https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in"
payload = {
"from_email_box_sid": "<string>",
"email_account_sids": ["<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({from_email_box_sid: '<string>', email_account_sids: ['<string>']})
};
fetch('https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in', 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://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in",
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([
'from_email_box_sid' => '<string>',
'email_account_sids' => [
'<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://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in"
payload := strings.NewReader("{\n \"from_email_box_sid\": \"<string>\",\n \"email_account_sids\": [\n \"<string>\"\n ]\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://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"from_email_box_sid\": \"<string>\",\n \"email_account_sids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/move-in")
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 \"from_email_box_sid\": \"<string>\",\n \"email_account_sids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": "<unknown>",
"result": {
"run": {
"verb": "<string>",
"status": "<string>",
"phase": "<string>",
"phase_index": 1,
"phase_count": 1,
"started_at": "<string>",
"error_code": "<string>"
}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Authorizations
Path Parameters
Body
application/json
Request body of move_in_email_box_mailboxes.