curl --request POST \
--url https://app.gtm-api.com/email/v4/api/email-account-health/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"filter": {
"sid": {
"eq": "<string>",
"in": [
"<string>"
]
},
"email_account_sid": {
"eq": "<string>",
"in": [
"<string>"
]
},
"health_score": {
"eq": 50,
"ne": 50,
"gte": 50,
"lte": 50,
"gt": 50,
"lt": 50
},
"warmup_level": {
"in": [],
"nin": []
},
"bounce_rate_30d": {
"gte": 0.5,
"lte": 0.5,
"gt": 0.5,
"lt": 0.5,
"is_null": true
},
"created_at": {
"gte": "<string>",
"lte": "<string>",
"gt": "<string>",
"lt": "<string>"
},
"deleted_at": {
"gte": "<string>",
"lte": "<string>",
"is_null": true
}
},
"page_size": 250,
"cursor": "<string>"
}
'import requests
url = "https://app.gtm-api.com/email/v4/api/email-account-health/search"
payload = {
"filter": {
"sid": {
"eq": "<string>",
"in": ["<string>"]
},
"email_account_sid": {
"eq": "<string>",
"in": ["<string>"]
},
"health_score": {
"eq": 50,
"ne": 50,
"gte": 50,
"lte": 50,
"gt": 50,
"lt": 50
},
"warmup_level": {
"in": [],
"nin": []
},
"bounce_rate_30d": {
"gte": 0.5,
"lte": 0.5,
"gt": 0.5,
"lt": 0.5,
"is_null": True
},
"created_at": {
"gte": "<string>",
"lte": "<string>",
"gt": "<string>",
"lt": "<string>"
},
"deleted_at": {
"gte": "<string>",
"lte": "<string>",
"is_null": True
}
},
"page_size": 250,
"cursor": "<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({
filter: {
sid: {eq: '<string>', in: ['<string>']},
email_account_sid: {eq: '<string>', in: ['<string>']},
health_score: {eq: 50, ne: 50, gte: 50, lte: 50, gt: 50, lt: 50},
warmup_level: {in: [], nin: []},
bounce_rate_30d: {gte: 0.5, lte: 0.5, gt: 0.5, lt: 0.5, is_null: true},
created_at: {gte: '<string>', lte: '<string>', gt: '<string>', lt: '<string>'},
deleted_at: {gte: '<string>', lte: '<string>', is_null: true}
},
page_size: 250,
cursor: '<string>'
})
};
fetch('https://app.gtm-api.com/email/v4/api/email-account-health/search', 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/email/v4/api/email-account-health/search",
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([
'filter' => [
'sid' => [
'eq' => '<string>',
'in' => [
'<string>'
]
],
'email_account_sid' => [
'eq' => '<string>',
'in' => [
'<string>'
]
],
'health_score' => [
'eq' => 50,
'ne' => 50,
'gte' => 50,
'lte' => 50,
'gt' => 50,
'lt' => 50
],
'warmup_level' => [
'in' => [
],
'nin' => [
]
],
'bounce_rate_30d' => [
'gte' => 0.5,
'lte' => 0.5,
'gt' => 0.5,
'lt' => 0.5,
'is_null' => true
],
'created_at' => [
'gte' => '<string>',
'lte' => '<string>',
'gt' => '<string>',
'lt' => '<string>'
],
'deleted_at' => [
'gte' => '<string>',
'lte' => '<string>',
'is_null' => true
]
],
'page_size' => 250,
'cursor' => '<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/email/v4/api/email-account-health/search"
payload := strings.NewReader("{\n \"filter\": {\n \"sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"email_account_sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"health_score\": {\n \"eq\": 50,\n \"ne\": 50,\n \"gte\": 50,\n \"lte\": 50,\n \"gt\": 50,\n \"lt\": 50\n },\n \"warmup_level\": {\n \"in\": [],\n \"nin\": []\n },\n \"bounce_rate_30d\": {\n \"gte\": 0.5,\n \"lte\": 0.5,\n \"gt\": 0.5,\n \"lt\": 0.5,\n \"is_null\": true\n },\n \"created_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"gt\": \"<string>\",\n \"lt\": \"<string>\"\n },\n \"deleted_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"is_null\": true\n }\n },\n \"page_size\": 250,\n \"cursor\": \"<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://app.gtm-api.com/email/v4/api/email-account-health/search")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filter\": {\n \"sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"email_account_sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"health_score\": {\n \"eq\": 50,\n \"ne\": 50,\n \"gte\": 50,\n \"lte\": 50,\n \"gt\": 50,\n \"lt\": 50\n },\n \"warmup_level\": {\n \"in\": [],\n \"nin\": []\n },\n \"bounce_rate_30d\": {\n \"gte\": 0.5,\n \"lte\": 0.5,\n \"gt\": 0.5,\n \"lt\": 0.5,\n \"is_null\": true\n },\n \"created_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"gt\": \"<string>\",\n \"lt\": \"<string>\"\n },\n \"deleted_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"is_null\": true\n }\n },\n \"page_size\": 250,\n \"cursor\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/email/v4/api/email-account-health/search")
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 \"filter\": {\n \"sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"email_account_sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"health_score\": {\n \"eq\": 50,\n \"ne\": 50,\n \"gte\": 50,\n \"lte\": 50,\n \"gt\": 50,\n \"lt\": 50\n },\n \"warmup_level\": {\n \"in\": [],\n \"nin\": []\n },\n \"bounce_rate_30d\": {\n \"gte\": 0.5,\n \"lte\": 0.5,\n \"gt\": 0.5,\n \"lt\": 0.5,\n \"is_null\": true\n },\n \"created_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"gt\": \"<string>\",\n \"lt\": \"<string>\"\n },\n \"deleted_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"is_null\": true\n }\n },\n \"page_size\": 250,\n \"cursor\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodySearch email account health
List the health snapshots of the team’s mailboxes: health_score (0 to 100), warmup_level, sent and bounce, complaint, reply and open rates of the last 30 days, the DNS state and tips (what to fix, worst first). Each row is one capture, so a mailbox has a history. Use it for which mailboxes are at risk (health_score lt 50, sort health_score asc) and how one mailbox moved over time (email_account_sid with a created_at range). For the latest snapshot of a mailbox use get_email_account or search_email_accounts with include health; for the bounces behind a rate, search_email_bounce_log. A snapshot is taken on a schedule and cannot be forced. Requires can_view_email_accounts.
Contract:
- MCP tool
search_email_account_health, registry packagemcp.email/email_account_health, mountemail.accounts. - Operation
search, response envelopesearch. - Flags: read only.
curl --request POST \
--url https://app.gtm-api.com/email/v4/api/email-account-health/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"filter": {
"sid": {
"eq": "<string>",
"in": [
"<string>"
]
},
"email_account_sid": {
"eq": "<string>",
"in": [
"<string>"
]
},
"health_score": {
"eq": 50,
"ne": 50,
"gte": 50,
"lte": 50,
"gt": 50,
"lt": 50
},
"warmup_level": {
"in": [],
"nin": []
},
"bounce_rate_30d": {
"gte": 0.5,
"lte": 0.5,
"gt": 0.5,
"lt": 0.5,
"is_null": true
},
"created_at": {
"gte": "<string>",
"lte": "<string>",
"gt": "<string>",
"lt": "<string>"
},
"deleted_at": {
"gte": "<string>",
"lte": "<string>",
"is_null": true
}
},
"page_size": 250,
"cursor": "<string>"
}
'import requests
url = "https://app.gtm-api.com/email/v4/api/email-account-health/search"
payload = {
"filter": {
"sid": {
"eq": "<string>",
"in": ["<string>"]
},
"email_account_sid": {
"eq": "<string>",
"in": ["<string>"]
},
"health_score": {
"eq": 50,
"ne": 50,
"gte": 50,
"lte": 50,
"gt": 50,
"lt": 50
},
"warmup_level": {
"in": [],
"nin": []
},
"bounce_rate_30d": {
"gte": 0.5,
"lte": 0.5,
"gt": 0.5,
"lt": 0.5,
"is_null": True
},
"created_at": {
"gte": "<string>",
"lte": "<string>",
"gt": "<string>",
"lt": "<string>"
},
"deleted_at": {
"gte": "<string>",
"lte": "<string>",
"is_null": True
}
},
"page_size": 250,
"cursor": "<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({
filter: {
sid: {eq: '<string>', in: ['<string>']},
email_account_sid: {eq: '<string>', in: ['<string>']},
health_score: {eq: 50, ne: 50, gte: 50, lte: 50, gt: 50, lt: 50},
warmup_level: {in: [], nin: []},
bounce_rate_30d: {gte: 0.5, lte: 0.5, gt: 0.5, lt: 0.5, is_null: true},
created_at: {gte: '<string>', lte: '<string>', gt: '<string>', lt: '<string>'},
deleted_at: {gte: '<string>', lte: '<string>', is_null: true}
},
page_size: 250,
cursor: '<string>'
})
};
fetch('https://app.gtm-api.com/email/v4/api/email-account-health/search', 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/email/v4/api/email-account-health/search",
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([
'filter' => [
'sid' => [
'eq' => '<string>',
'in' => [
'<string>'
]
],
'email_account_sid' => [
'eq' => '<string>',
'in' => [
'<string>'
]
],
'health_score' => [
'eq' => 50,
'ne' => 50,
'gte' => 50,
'lte' => 50,
'gt' => 50,
'lt' => 50
],
'warmup_level' => [
'in' => [
],
'nin' => [
]
],
'bounce_rate_30d' => [
'gte' => 0.5,
'lte' => 0.5,
'gt' => 0.5,
'lt' => 0.5,
'is_null' => true
],
'created_at' => [
'gte' => '<string>',
'lte' => '<string>',
'gt' => '<string>',
'lt' => '<string>'
],
'deleted_at' => [
'gte' => '<string>',
'lte' => '<string>',
'is_null' => true
]
],
'page_size' => 250,
'cursor' => '<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/email/v4/api/email-account-health/search"
payload := strings.NewReader("{\n \"filter\": {\n \"sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"email_account_sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"health_score\": {\n \"eq\": 50,\n \"ne\": 50,\n \"gte\": 50,\n \"lte\": 50,\n \"gt\": 50,\n \"lt\": 50\n },\n \"warmup_level\": {\n \"in\": [],\n \"nin\": []\n },\n \"bounce_rate_30d\": {\n \"gte\": 0.5,\n \"lte\": 0.5,\n \"gt\": 0.5,\n \"lt\": 0.5,\n \"is_null\": true\n },\n \"created_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"gt\": \"<string>\",\n \"lt\": \"<string>\"\n },\n \"deleted_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"is_null\": true\n }\n },\n \"page_size\": 250,\n \"cursor\": \"<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://app.gtm-api.com/email/v4/api/email-account-health/search")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filter\": {\n \"sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"email_account_sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"health_score\": {\n \"eq\": 50,\n \"ne\": 50,\n \"gte\": 50,\n \"lte\": 50,\n \"gt\": 50,\n \"lt\": 50\n },\n \"warmup_level\": {\n \"in\": [],\n \"nin\": []\n },\n \"bounce_rate_30d\": {\n \"gte\": 0.5,\n \"lte\": 0.5,\n \"gt\": 0.5,\n \"lt\": 0.5,\n \"is_null\": true\n },\n \"created_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"gt\": \"<string>\",\n \"lt\": \"<string>\"\n },\n \"deleted_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"is_null\": true\n }\n },\n \"page_size\": 250,\n \"cursor\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/email/v4/api/email-account-health/search")
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 \"filter\": {\n \"sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"email_account_sid\": {\n \"eq\": \"<string>\",\n \"in\": [\n \"<string>\"\n ]\n },\n \"health_score\": {\n \"eq\": 50,\n \"ne\": 50,\n \"gte\": 50,\n \"lte\": 50,\n \"gt\": 50,\n \"lt\": 50\n },\n \"warmup_level\": {\n \"in\": [],\n \"nin\": []\n },\n \"bounce_rate_30d\": {\n \"gte\": 0.5,\n \"lte\": 0.5,\n \"gt\": 0.5,\n \"lt\": 0.5,\n \"is_null\": true\n },\n \"created_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"gt\": \"<string>\",\n \"lt\": \"<string>\"\n },\n \"deleted_at\": {\n \"gte\": \"<string>\",\n \"lte\": \"<string>\",\n \"is_null\": true\n }\n },\n \"page_size\": 250,\n \"cursor\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Headers
Body
Request body of search_email_account_health.
Response
search success envelope.