Retry email server run
curl --request POST \
--url https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/retry \
--header 'Authorization: Bearer <token>' \
--header 'Team-SID: <api-key>'import requests
url = "https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/retry"
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Team-SID': '<api-key>'}
};
fetch('https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/retry', 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}/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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"
"net/http"
"io"
)
func main() {
url := "https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/retry"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
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}/retry")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/retry")
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>'
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"name": "<string>",
"plan": "starter",
"location": "hel1",
"status": "provisioning",
"suspended_reason": "payment_failed",
"complimentary": true,
"seats_cap": 1,
"seats_used": 1,
"ipv4": "<string>",
"release": "<string>",
"run": {
"verb": "<string>",
"status": "<string>",
"phase": "<string>",
"phase_index": 1,
"phase_count": 1,
"started_at": "<string>",
"error_code": "<string>"
},
"price": {
"amount": "<string>",
"currency": "<string>",
"interval": "<string>"
},
"renews_at": "<string>",
"paid_through": "<string>",
"failed_error_code": "<string>",
"created_at": "<string>",
"provisioned_at": "<string>",
"suspended_at": "<string>",
"updated_at": "<string>"
},
"result": {},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}email_boxes
Retry email server run
Retry the failed lifecycle run of an email server (a build, a plan change, a mailbox move or a delete): orchestration resumes it at the phase that failed. Read the failure first in search_email_boxes (run.status failed, run.error_code). No charge. 409 email_box_no_failed_run when the server’s newest run did not fail; 409 email_box_busy while one is still running. Requires can_manage_billing.
Contract:
- MCP tool
retry_email_box_run, registry packagemcp.id/email_boxes, mountid.billing. - Operation
action, response envelopeaction. - Flags: none.
POST
/
api
/
email-boxes
/
{sid}
/
retry
Retry email server run
curl --request POST \
--url https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/retry \
--header 'Authorization: Bearer <token>' \
--header 'Team-SID: <api-key>'import requests
url = "https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/retry"
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Team-SID': '<api-key>'}
};
fetch('https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/retry', 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}/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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"
"net/http"
"io"
)
func main() {
url := "https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/retry"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
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}/retry")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/id/v4/api/email-boxes/{sid}/retry")
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>'
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"name": "<string>",
"plan": "starter",
"location": "hel1",
"status": "provisioning",
"suspended_reason": "payment_failed",
"complimentary": true,
"seats_cap": 1,
"seats_used": 1,
"ipv4": "<string>",
"release": "<string>",
"run": {
"verb": "<string>",
"status": "<string>",
"phase": "<string>",
"phase_index": 1,
"phase_count": 1,
"started_at": "<string>",
"error_code": "<string>"
},
"price": {
"amount": "<string>",
"currency": "<string>",
"interval": "<string>"
},
"renews_at": "<string>",
"paid_through": "<string>",
"failed_error_code": "<string>",
"created_at": "<string>",
"provisioned_at": "<string>",
"suspended_at": "<string>",
"updated_at": "<string>"
},
"result": {},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Authorizations
Path Parameters
Response
action success envelope.