Для ИИ-агентов
MCP-сервер SendHQ
Give an AI agent full, safe control of one SendHQ workspace: send and receive email, verify domains, publish templates, and investigate deliverability through 104 strictly typed tools. Written for agents first; humans welcome.
curl -fsSL https://downloads.sendhq.cc/install.sh | sh
claude mcp add sendhq --env SENDHQ_API_KEY=re_your_key -- sendhq mcpЧто это за сервер
The SendHQ MCP server lets an AI agent operate one SendHQ workspace through the Model Context Protocol: send email (single, batch, templated, replies, attachments, idempotent retries), read and search sent and received mail (subjects, bodies, and attachment names) and its delivery events, organize mail into labels with auto-filing rules, manage drafts and private attachments, author and publish hosted templates, add and verify domains and their DNS, set up inbound receiving and inbound addresses, inspect deliverability, bounces, complaints, and suppressions, run newsletters (consented contacts with tags and custom fields, segments, lists with signup forms, welcome emails, and newsletter sites, and broadcasts with pre-send checks, test sends, scheduling, and bot-filtered open and click reports), and read account usage, billing state, analytics, and API-key metadata.
Это локальный stdio-сервер, встроенный в CLI-бинарник sendhq. Ваш MCP-клиент запускает sendhq mcp как дочерний процесс и общается с ним по JSON-RPC через stdin/stdout. Каждый вызов инструмента превращается в один документированный запрос к REST API SendHQ по адресу https://sendhq.cc/api/v1, аутентифицированный API-ключом вашего рабочего пространства, поэтому у MCP-сервера ровно те же права, что и у этого ключа, и не больше.
- 104 tools in 9 groups, generated from one catalog that is also published as tools.json.
- Строгие JSON Schema: неизвестные аргументы, неверные типы и отсутствующие обязательные поля отклоняются локально, до того как что-либо попадёт в SendHQ.
- Структурированные ошибки со стабильным
code, HTTP-статусомstatus, пояснениемexplanation, конкретным способом исправленияremedyи признаком того, поможет ли повторная попытка. - Каждый инструмент, который отправляет реальные письма или удаляет данные, сообщает об этом в первых словах своего описания и снабжён аннотациями безопасности MCP.
- Режим
--read-onlyскрывает все инструменты, которые отправляют письма или что-либо изменяют. - Ничего не логируется. В stdout передаются только сообщения протокола; API-ключ и содержимое писем никогда не попадают в логи.
https://sendhq.cc/api/mcp (поиск по ценам и документации, без доступа к аккаунту). Сервер, описанный на этой странице, — полноценный, с доступом к аккаунту; он работает локально или как размещённый коннектор, описанный ниже.Use SendHQ in Claude, ChatGPT and Grok
Установка не нужна: SendHQ также запускает этот сервер как размещённый коннектор по адресу https://mcp.sendhq.cc/mcp с теми же инструментами. Вместо того чтобы вставлять ключ, вы входите в свой аккаунт SendHQ.
Claude
- Откройте Settings → Connectors и найдите SendHQ в каталоге или выберите Add custom connector и вставьте
https://mcp.sendhq.cc/mcp. - Нажмите Connect, войдите в SendHQ, проверьте запрашиваемый доступ и нажмите Allow.
- Попросите Claude проверить ваш почтовый ящик, отправить письмо с вашего подтверждённого домена или объяснить причину отказа.
ChatGPT
- Open Settings → Security and login and turn on Developer mode.
- Go to chatgpt.com/plugins, click Create MCP app, name it SendHQ and enter
https://mcp.sendhq.cc/mcp. - Sign in to SendHQ and click Allow, then pick SendHQ from the tools menu in a new chat.
Grok
- Go to grok.com/connectors, click New Connector, then Custom.
- Enter
https://mcp.sendhq.cc/mcp, sign in to SendHQ and click Allow.
Muse by Meta
In Muse, open Connectors and search for SendHQ. Click Connect, sign in to SendHQ and click Allow.
Подтверждение действий и отключение
- The
request_featuretool sends a feature request to the SendHQ team with your account details, so we can follow up by email. - Инструменты, которые отправляют реальные письма или удаляют данные, помечены соответствующим образом. Будет ли ассистент сначала спрашивать вас, настраивается для каждого инструмента в самом ассистенте: в Claude выберите Needs approval для этих инструментов в разделе Settings → Connectors → SendHQ.
- Коннектор получает собственный API-ключ, названный по имени ассистента (например, «Claude (AI connector)»). Удалите его в разделе API Keys, чтобы немедленно отключить коннектор.
- Он не может создавать или отзывать API-ключи и менять настройки оплаты. Вложения отправляются и возвращаются в base64; доступа к локальным файлам нет.
- Unpaid workspaces (integration trial) can deliver only to the account email or a mailbox-simulator test address.
Вопросы: postmaster@sendhq.cc. Конфиденциальность: sendhq.cc/privacy.
Установка
Установите бинарник sendhq (Linux, macOS и Windows на x86-64 и arm64). Установщик проверяет контрольную сумму релиза и по умолчанию помещает бинарник в ~/.local/bin.
curl -fsSL https://downloads.sendhq.cc/install.sh | shirm https://downloads.sendhq.cc/install.ps1 | iexsendhq version
SENDHQ_API_KEY=re_your_key sendhq doctorСоздайте API-ключ в панели управления по адресу https://sendhq.cc/app#/keys. MCP-сервер не умеет создавать ключи. Сервер запускается одной командой:
SENDHQ_API_KEY=re_your_key sendhq mcpОбычно вручную её запускать не нужно: это делает MCP-клиент. Если запустить её в терминале, она будет ждать JSON-RPC на stdin.
Настройка клиента
Claude Code
claude mcp add sendhq --env SENDHQ_API_KEY=re_your_key -- sendhq mcp
# read-only variant
claude mcp add sendhq-readonly --env SENDHQ_API_KEY=re_your_key -- sendhq mcp --read-onlyДобавьте --scope user, чтобы сервер был доступен во всех проектах, или --scope project, чтобы записать его в .mcp.json проекта. Для общего .mcp.json берите ключ из переменной окружения, а не коммитьте его; Claude Code подставляет значения ${VAR} в .mcp.json.
{
"mcpServers": {
"sendhq": {
"command": "sendhq",
"args": [
"mcp"
],
"env": {
"SENDHQ_API_KEY": "${SENDHQ_API_KEY}"
}
}
}
}OpenAI Codex
[mcp_servers.sendhq]
command = "sendhq"
args = ["mcp"]
env = { SENDHQ_API_KEY = "re_your_key" }Или из командной строки: codex mcp add sendhq --env SENDHQ_API_KEY=re_your_key -- sendhq mcp.
Claude Desktop
Отредактируйте claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\) и перезапустите приложение. Десктопные приложения не наследуют PATH вашей оболочки, поэтому укажите абсолютный путь к бинарнику (which sendhq).
{
"mcpServers": {
"sendhq": {
"command": "/Users/you/.local/bin/sendhq",
"args": [
"mcp"
],
"env": {
"SENDHQ_API_KEY": "re_your_key"
}
}
}
}Любой другой MCP-клиент
Настройте stdio-сервер с командой sendhq, аргументами ["mcp"] (при необходимости "--read-only") и переменными окружения, перечисленными ниже. Сервер поддерживает версии протокола MCP 2024-11-05, 2025-03-26, 2025-06-18 и 2025-11-25 и реализует initialize, ping, tools/list и tools/call. Результаты инструментов содержат и текстовый JSON-блок, и structuredContent.
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"probe","version":"1"}}}
{"jsonrpc":"2.0","method":"notifications/initialized"}
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_service_health","arguments":{}}}Размещённого HTTP-транспорта для сервера с доступом к аккаунту нет. Удалённому MCP-эндпоинту с правом записи потребовался бы OAuth для каждого пользователя, которого SendHQ не предлагает; локальный бинарник хранит ключ на той машине, где он и так уже есть.
Переменные окружения и флаги
| Переменная или флаг | Обязательна | Назначение |
|---|---|---|
SENDHQ_API_KEY | да | API-ключ рабочего пространства (re_…). Нужен всем инструментам, кроме get_service_health. Без него сервер всё равно запускается, но каждый вызов возвращает структурированную ошибку auth_error с объяснением, как это исправить. |
SENDHQ_API_BASE_URL | нет | Базовый URL API. По умолчанию https://sendhq.cc/api/v1. Используйте только для локального или тестового (staging) развёртывания. SENDHQ_BASE_URL принимается как устаревший псевдоним. |
SENDHQ_MCP_READ_ONLY | нет | 1, true или yes работают как --read-only. |
--read-only | нет | Открывать только инструменты, которые не отправляют письма и не меняют состояние. Скрытые инструменты также отклоняются при вызове по имени. |
SENDHQ_PROFILE / --profile | нет | Использовать ключ, сохранённый командой sendhq auth login в хранилище ключей ОС, вместо SENDHQ_API_KEY. Если заданы оба, приоритет у переменной окружения. |
Ключ передаётся только в заголовке Authorization: Bearer на настроенный базовый URL. Он никогда не выводится, не логируется, не повторяется в ошибках и не включается в результаты инструментов.
Модель безопасности для агентов
- Sends real email.
send_email,send_batch,send_template_test,send_broadcast,send_broadcast_test,schedule_broadcast(at the scheduled time), andsend_broadcast_to_moredeliver mail to real people and consume delivery credits. Their descriptions start withSENDS REAL EMAIL. Call them only when the user explicitly asked for that specific message to be sent, with the recipients, sender, and content confirmed. - Destructive.
delete_email,delete_draft,delete_attachment,delete_domain,delete_inbox,remove_suppression, the campaign deletes (delete_contact,delete_list,remove_list_contact,delete_broadcast,cancel_broadcast,delete_segment,delete_contact_field), andbulk_update_contactsare markeddestructiveHint: trueand their descriptions start withDESTRUCTIVE. Confirm with the user first.remove_suppressionweakens a safety block and is appropriate only when a human confirms the address works again. - Изменяет состояние. Создание и изменение черновиков, шаблонов, доменов и почтовых ящиков, публикация шаблонов и запуск проверки меняют рабочее пространство, но не отправляют писем.
- Только чтение. Все остальные инструменты имеют
readOnlyHint: true, и их можно свободно вызывать. - Этот сервер никогда не меняет DNS.
add_domainвозвращает записи, которые должен опубликовать человек;get_domain_connect_linkвозвращает URL согласия, который человек должен открыть и одобрить у своего DNS-провайдера. - Этот сервер никогда не меняет оплату.
get_accountтолько читает тариф, использование и состояние подписки. - Unpaid workspaces (integration trial) can deliver only to the account owner's email (
get_account→user.email) or a mailbox-simulator test address such assuccess@simulator.amazonses.com, and cannot send attachments. - Accepted is not delivered. A successful send returns an ID; delivery, bounce, and complaint evidence arrives later in
list_email_events. Never claim inbox placement or that a person read a message. Broadcast opens are estimates: privacy proxies and security scanners load images on their own, and requests that look automated are counted apart (machineinget_broadcast_report). - Не переключайтесь на другой адрес From, чтобы обойти приостановку
423, и никогда не добавляйте повторно получателей, которые отписались или пожаловались.
API-ключи вне зоны действия сервера
Намеренно нет инструментов, которые создают, изменяют, ротируют, отзывают или удаляют API-ключи. Агент не должен выпускать или уничтожать учётные данные. list_api_keys возвращает только имена, несекретные префиксы и время последнего использования. Управление ключами остаётся в панели управления за человеком, вошедшим в аккаунт.
Сценарии работы
1. Первая отправка
get_service_healthподтверждает, что API доступен (работает без ключа).get_accountпоказывает тариф (access.tier), оставшуюся квоту иuser.email. В пробном периоде этот email — единственный разрешённый реальный получатель.list_sending_identitiesперечисляет адреса From, которые можно использовать. Если список пуст, сначала пройдите сценарий подключения домена.- Подтвердите с пользователем отправителя, получателя, тему и текст, затем вызовите
send_emailсidempotency_key. list_email_eventsс возвращённымidпокажетdelivery,bounce,complaintилиreject, как только провайдер сообщит результат (обычно от нескольких секунд до минут).
{
"name": "send_email",
"arguments": {
"from": "Acme <hello@example.com>",
"to": [
"owner@example.com"
],
"subject": "SendHQ is connected",
"text": "It works.",
"idempotency_key": "first-send-2026-09-26"
}
}2. Подтверждение домена от начала до конца
add_domainwithname: "example.com". The result includes the DNS records (DKIM CNAMEs, domain verification, SPF, recommended DMARC).get_dns_providerсdomain_idопределяет авторитетного DNS-провайдера и возвращает точный относительный хост, который нужно указать для каждой записи у этого провайдера.- If
providers.domainConnect.availableis true,get_domain_connect_linkreturns a consent URL. Give it to the human; nothing changes until they approve at the provider. Otherwise, give the human the records to publish. Never publish a second SPF record: merge SendHQ's SPF include (include:amazonses.com) into the existingv=spf1value. verify_domainrechecks DNS and DKIM verification. Status moves throughpending,checking, andpropagatingtoverified. Pollverify_domainorget_domainevery 30–60 seconds; DNS can take minutes to hours.- Когда
statusстановитсяverified, адреса домена появляются вlist_sending_identities.
3. Отказы, жалобы и стоп-лист
list_blocked_recipientsвозвращает все заблокированные адреса с причиной (bounce,complaint,unsubscribe) и сводным количеством.list_suppressionsвозвращает записи стоп-листа из-за жёстких отказов и жалоб;deliverability_statsдаёт доли доставки, отказов и жалоб за 30 дней;list_sender_reputationпоказывает, какие адреса From ограничены или приостановлены.- Отправка, среди получателей которой есть адрес из стоп-листа, завершается ошибкой
422 recipient_suppressed. Уберите этого получателя и отправьте снова. - Вызывайте
remove_suppression, только когда человек подтвердил, что ящик, давший отказ, теперь работает. Записи о жалобах в стоп-листе постоянны (409 complaint_suppression_locked).
4. Приём входящей почты
- Домен (часто поддомен, например
inbound.example.com) должен быть подтверждён. setup_inboundнастраивает приём и возвращает одну MX-запись. Её публикует человек.- Вызывайте
verify_inbound, покаstatusне станетready. create_inboxсdomain_idиlocal_part(например,support) создаётsupport@inbound.example.com.- Опрашивайте
list_emailsсdirection: "in"иunread: true(при необходимости сinbox_id). Читайте письмо черезget_email, переписку — черезget_thread, вложения — черезdownload_attachment, а обработанное письмо отмечайте черезmark_email(read: true). - Отвечайте в той же цепочке через
send_emailсreply_to_email_id; SendHQ сам выставит In-Reply-To, References и цепочку.
5. Вебхуки и уведомления о событиях
Webhooks push signed email events (email.sent, email.delivered, email.delivery_delayed, email.bounced, email.complained, email.failed, email.received) to an endpoint a human configures in the dashboard or with the REST API (see /docs/webhooks). There is no webhook tool, because endpoint responses carry signing secrets. An agent without a webhook polls instead: list_email_events for one message's outcome, list_emails with status (for example bounced) or after for recent changes, list_emails with direction: "in" and unread: true for new inbound mail, and list_blocked_recipients for new suppressions. Poll no more than about once a minute per question.
6. Диагностика сбоя доставки
- Найдите письмо:
list_emailsсdirection: "out"иtoилиqueryлибоget_email, если ID известен.status: failedозначает, что SendHQ или провайдер отклонили письмо при передаче; причина указана в ошибке письма. list_email_events:bounce(постоянный или временный, с диагностикой провайдера),complaint,rejectилиdelivery. Если событий ещё нет, провайдер пока не сообщил результат; подождите и проверьте снова.- Если завершился ошибкой сам вызов отправки, посмотрите
codeошибки:sender_domain_unverified→ завершите подтверждение домена;recipient_suppressed→ адрес ранее дал жёсткий отказ или на него поступила жалоба;sender_paused→ изучитеlist_sender_reputationи исправьте источник списка;trial_recipient_restricted→ ограничения пробного периода;quota_exhausted→ использование вget_account. get_domainпроверяет, что DKIM, SPF и DMARC по-прежнему опубликованы;deliverability_statsпоказывает, касается ли проблема одного письма или это тенденция.- Сообщайте то, что показывают факты. Событие
deliveryозначает, что сервер получателя принял письмо, а не что оно попало во «Входящие» или было прочитано.
7. Собственная группа для задач (метки)
create_labelсname(например,Agent/Orders) иskip_inbox: true. Это превращает метку в группу: полученные письма с этой меткой архивируются, поэтому отображаются только в метке и никогда — во «Входящих» человека.- Отправляйте письма по задачам через
send_email(илиsend_batch) сlabels: ["Agent/Orders"]. Ответы в этой переписке автоматически наследуют метку и минуют «Входящие». - Для писем, которые начинаются вне ваших переписок, добавьте правило сортировки:
create_label_ruleсinbox_id(выделенный адрес, напримерorders@…),from,toилиsubject. Передайтеapply_to_existing: true, чтобы разложить уже полученные письма. - Работа с группой:
list_emailsсlabel: "Agent/Orders",direction: "in"иunread: true; читайте черезget_emailилиget_thread, отвечайте черезsend_emailсreply_to_email_id, а после обработки вызывайтеmark_emailсread: true. - Чтобы переместить случайно попавшее не туда письмо в группу или из неё, используйте
label_email(add/remove). Добавление метки группы к полученному письму также архивирует его. - При необходимости
set_inbox_forwardingотправляет копию всех писем, приходящих на адрес получения, в другой почтовый ящик (получатель сначала подтверждает это по email).
{
"name": "send_email",
"arguments": {
"from": "Orders <orders@example.com>",
"to": [
"customer@example.net"
],
"subject": "Order 1042: confirm delivery window",
"text": "Reply with a time that works.",
"labels": [
"Agent/Orders"
],
"idempotency_key": "order-1042-window"
}
}8. Вложения и шаблоны
На платном тарифе прикрепляйте до 10 файлов через attachments в send_email (для каждого нужен content_base64 или локальный file_path; filename по умолчанию — базовое имя файла). Для хранимых шаблонов: create_template → update_template_draft → render_template для предпросмотра на тестовых данных → send_template_test (отправляет одно реальное тестовое письмо) → publish_template, затем отправляйте через send_email или send_batch с template: {key, data} и ровно одним получателем в to.
9. Send a newsletter
- Audience:
list_lists(orcreate_listwith a signup form), and optionallypreview_segmentthencreate_segmentto narrow it, for example to contacts taggedVIPwho opened in the last 90 days. Add only people who asked for your email: every subscribed contact needs aconsent_basis. get_newsletter_settings: ifpostalAddressis empty, ask the user for one and set it withupdate_newsletter_settings(marketing email needs it).create_broadcastwithlist_id, a verifiedfrom,subject,preview_text, content (markdownis simplest), and optionallyaudience(segment_id,limit,order: engaged).check_broadcast: fix everyblockitem and tell the user aboutwarnitems. Thensend_broadcast_testto the user's own address so they can look at it.- Only when the user says to send:
send_broadcastnow (with anidempotency_key), orschedule_broadcastwithscheduled_at(unschedule_broadcastto change it). - Follow up with
get_broadcast(delivery totals),get_broadcast_report(opens, clicks, links, inbox providers, against your average), andlist_broadcast_recipientswithactivity. Report opens as estimates. With a limited audience,send_broadcast_to_moresends to the next people.
{
"name": "create_broadcast",
"arguments": {
"list_id": "lst_…",
"from": "Acme <news@example.com>",
"subject": "What shipped in October",
"preview_text": "Three new features",
"markdown": "Hi {{first_name | there}},\n\nHere is what shipped this month.",
"audience": {
"segment_id": "seg_…"
}
}
}Результаты, пагинация и ошибки
Успешный вызов возвращает JSON-объект API в виде structuredContent и в виде текстового JSON-блока. Каждый инструмент list_* принимает limit (1–200, по умолчанию 50) и offset и добавляет объект pagination. Продолжайте вызывать с offset: pagination.next_offset, пока has_more равно true.
{
"data": [
"…"
],
"count": 50,
"pagination": {
"offset": 0,
"limit": 50,
"returned": 50,
"total": 180,
"has_more": true,
"next_offset": 50
}
}Неудачный вызов возвращает isError: true со структурированной ошибкой. Следуйте remedy, а не повторяйте вслепую; повторяйте, только если retryable равно true.
{
"error": {
"code": "trial_recipient_restricted",
"status": 402,
"message": "The integration trial can deliver only to your account email or a mailbox-simulator test address",
"retryable": false,
"explanation": "This workspace is on the unpaid integration trial. Trial sends can be delivered only to the account owner's email address or a mailbox-simulator test address.",
"remedy": "Send to the account email (get_account -> user.email) or a simulator address such as success@simulator.amazonses.com to test. To email anyone else, the account owner must activate a paid plan in the dashboard (Profile & Billing). Do not retry the same recipients."
}
}Необязательные поля ошибки: request_id (сообщите его в поддержку), retry_after_seconds, problems (список нарушений схемы для invalid_arguments) и idempotent_replayed (см. раздел «Идемпотентность»).
Идемпотентность
send_email и send_batch принимают idempotency_key (не более 200 символов), который передаётся в заголовке Idempotency-Key. Создавайте один стабильный ключ на каждое логическое письмо, например invoice-4812-receipt.
- При повторе нужно использовать тот же ключ И идентичное тело запроса. Тот же ключ с любым изменением (получатель, тема, текст, заголовок, данные шаблона, даже значения аргументов) возвращает
409 idempotency_conflict. - Тот же ключ, то же тело, исходный запрос завершён: SendHQ возвращает сохранённый результат без повторной отправки. Так можно безопасно повторить запрос после тайм-аута или
network_error. - Тот же ключ, пока исходный запрос ещё выполняется:
409 idempotency_in_progress, можно повторить после короткого ожидания. - Для нового логического письма нужен новый ключ.
- Сохранённые ошибки тоже воспроизводятся. Если первая попытка завершилась ошибкой, повтор с тем же ключом вернёт ту же ошибку с
idempotent_replayed: trueиretryable: false. Проверьте черезlist_emails(direction: out), что ничего не ушло, устраните причину и отправьте с новым ключом. - Сервер никогда сам не повторяет POST-запросы. Автоматически повторяются только GET-запросы на чтение (до 3 попыток при сетевых ошибках, 429 и 5xx).
send_emailсо встроеннымиattachmentsне принимаетidempotency_key, потому что выполняет несколько запросов. Для безопасной с точки зрения повторов отправки вложений:create_draft→upload_attachment→send_emailсdraft_idиidempotency_key.
{
"name": "send_email",
"arguments": {
"from": "Acme <billing@example.com>",
"to": [
"owner@example.com"
],
"subject": "Receipt #4812",
"text": "Thanks for your payment.",
"idempotency_key": "receipt-4812"
}
}Лимиты запросов и квоты
SendHQ не публикует фиксированный лимит запросов в секунду для API. На практике агент сталкивается с лимитами использования, которые возвращаются как 429:
- Месячный лимит доставок получателям по тарифу. Каждый адрес в To, Cc и Bcc считается одной доставкой. См.
get_account→usage.recipientDeliveriesв сравнении сusage.emailQuotaMonth. - Дневной лимит получателей для конкретного адреса From, который задаётся состоянием репутации этого отправителя (
list_sender_reputation→dailyLimit, по умолчанию 2 000 на платных тарифах). - Integration trial: 100 recipients in total, only to the account email or mailbox-simulator test addresses.
- Вложения: не более 10 файлов и 10 МБ на письмо; 10 ГБ передачи вложений в месяц с учётом числа получателей на платных тарифах.
- На один запрос: To + Cc + Bcc — до 100 адресов;
send_batch— до 100 писем. - Репутационный предохранитель: если в скользящем 7-дневном окне отказы или жалобы превышают порог, отправка с конкретного адреса From ограничивается или приостанавливается (
423 sender_paused). Когда показатели снижаются, адрес восстанавливается автоматически.
quota_exhausted нельзя повторять, пока не начнётся новый период или не сменится тариф. rate_limited можно повторить через retry_after_seconds; для отправок повторяйте с тем же idempotency_key и идентичным телом.
Каталог ошибок
code стабилен; ветвите логику по нему, а не по message.
| code | HTTP | Повторять? | Что это значит и что делать |
|---|---|---|---|
invalid_arguments | — | нет | Аргументы не прошли локальную проверку JSON Schema инструмента; в SendHQ ничего не отправлено. Исправьте поля, перечисленные в problems. |
auth_error | 401 | нет | API-ключ отсутствует, отозван или неверен. Задайте SENDHQ_API_KEY для процесса сервера; ключи создаёт человек в панели управления. |
trial_recipient_restricted | 402 | нет | Integration trial can deliver only to the account email or a mailbox-simulator test address. Send there, or the owner activates a paid plan. |
payment_required | 402 | нет | Функция требует платного тарифа (например, вложения). Отправьте без неё или перейдите на платный тариф. |
sender_domain_not_owned | 403 | нет | Домен From не относится к этому рабочему пространству. Используйте list_sending_identities или add_domain. |
sender_domain_unverified | 403 | нет | Домен From ещё не подтверждён. get_domain, опубликуйте недостающие записи, verify_domain. |
domain_limit_reached | 403 | нет | Достигнут лимит доменов по тарифу. Удалите неиспользуемый домен (с согласия человека) или перейдите на старший тариф. |
marketing_not_enabled | 403 | нет | Маркетинговый класс не включён для этого домена или тарифа. Используйте transactional, только если письмо действительно транзакционное. |
forbidden | 403 | нет | Политика не разрешает эту операцию. Измените запрос. |
not_found | 404 | нет | Этот ID не относится к рабочему пространству. Запросите список ресурсов, чтобы найти правильный ID; архивные шаблоны сначала восстановите. |
idempotency_conflict | 409 | нет | Ключ повторно использован с другим телом. Отправьте в точности исходный запрос или используйте новый ключ для нового письма. |
idempotency_in_progress | 409 | да | Исходный запрос ещё выполняется. Подождите, затем повторите с тем же ключом и телом. |
revision_conflict | 409 | нет | Черновик шаблона изменился с момента чтения. get_template, объедините изменения, сохраните снова. |
complaint_suppression_locked | 409 | нет | Получатель пожаловался. Никогда больше ему не пишите. |
inbound_not_ready | 409 | нет | Приём входящей почты не готов. setup_inbound, опубликуйте MX, verify_inbound. |
conflict | 409 | нет | Ресурс уже существует или находится в неподходящем состоянии. Прочитайте его и скорректируйте запрос. |
attachments_too_large | 413 | нет | Больше 10 файлов или 10 МБ. Уберите или уменьшите вложения. |
recipient_suppressed | 422 | нет | Получатель ранее дал жёсткий отказ или пожаловался. Уберите его; см. list_blocked_recipients. |
recipient_unsubscribed | 422 | нет | Получатель отписался от маркетинговых писем. Уберите его навсегда. |
validation_failed | 422 | нет | Содержимое отклонено, например данные шаблона нарушают контракт переменных. Исправьте входные данные. |
sender_paused | 423 | нет | Этот адрес From приостановлен 7-дневным предохранителем по отказам и жалобам. Остановитесь, исправьте список, дождитесь автоматического восстановления. |
quota_exhausted | 429 | нет | Достигнут месячный, дневной (на отправителя), лимит на вложения или лимит пробного периода. Проверьте get_account; дождитесь сброса или перейдите на старший тариф. |
rate_limited | 429 | да | Снизьте темп; подождите retry_after_seconds. Для отправок: тот же ключ, то же тело. |
server_error | 5xx | да | Временный сбой SendHQ или провайдера. Сделайте паузу и повторите; отправки — с тем же ключом и телом. Если idempotent_replayed равно true, используйте новый ключ, убедившись, что ничего не было отправлено. |
network_error | — | да | Запрос или ответ потерян. Повторите; для отправок безопасность повтора обеспечивает тот же idempotency_key. |
invalid_request | 400 | нет | Некорректный запрос. Прочитайте message и исправьте его. |
tool_error | — | нет | Локальный сбой внутри MCP-сервера (например, нечитаемый file_path). Прочитайте message. |
Справочник инструментов
Все инструменты с классом безопасности, вызываемым REST-эндпоинтом, параметрами, форматом ответа и примером объекта параметров tools/call. Параметры указаны точно: сервер отклоняет всё, чего нет в списке.
Emails and threads: send_email, send_batch, list_emails, get_email, mark_email, delete_email, list_email_events, get_thread
Labels and auto-filing rules: list_labels, get_label, create_label, update_label, delete_label, create_label_rule, delete_label_rule, label_email
Drafts, attachments, and sender identities: list_sending_identities, create_draft, list_drafts, get_draft, update_draft, delete_draft, upload_attachment, download_attachment, delete_attachment
Hosted templates: list_templates, create_template, get_template, update_template_draft, create_template_draft, render_template, send_template_test, publish_template, archive_template, restore_template
Domains and DNS: list_domains, get_domain, add_domain, verify_domain, delete_domain, get_dns_provider, get_domain_connect_link
Inbound email: setup_inbound, verify_inbound, list_inboxes, get_inbox, create_inbox, update_inbox, set_inbox_forwarding, delete_inbox
Deliverability, bounces, and suppressions: deliverability_stats, list_sender_reputation, list_suppressions, remove_suppression, list_blocked_recipients
Campaigns: list_contacts, create_contact, get_contact, update_contact, delete_contact, import_contacts, list_contact_imports, bulk_update_contacts, list_tags, list_contact_fields, set_contact_field, delete_contact_field, list_segments, get_segment, preview_segment, create_segment, update_segment, delete_segment, list_lists, create_list, get_list, update_list, delete_list, add_list_contacts, remove_list_contact, list_broadcasts, create_broadcast, get_broadcast, update_broadcast, delete_broadcast, send_broadcast, cancel_broadcast, list_broadcast_recipients, check_broadcast, send_broadcast_test, schedule_broadcast, unschedule_broadcast, duplicate_broadcast, send_broadcast_to_more, get_broadcast_report, get_newsletter_settings, update_newsletter_settings, get_campaign_overview, list_uploaded_images
Account, usage, analytics, and keys: get_account, get_account_diagnostics, get_analytics, list_api_keys, get_service_health
Нет инструментов, подходящих под этот фильтр.
Письма и цепочки
send_emailОтправить одно письмо
SENDS REAL EMAIL. Send one message from a verified domain: raw html/text, a published hosted template, a reply in an existing thread, or a message with attachments. Pass idempotency_key so a retry cannot send twice; a retry must reuse the same key AND an identical request, otherwise SendHQ returns 409. attachments is a convenience that creates a draft, uploads each file, and sends with that draft; it cannot be combined with idempotency_key or draft_id (use create_draft + upload_attachment + send_email with draft_id for retry-safe attachment sends). Unpaid workspaces (integration trial) can deliver only to the account email or a mailbox-simulator test address, and cannot send attachments.
Укажите хотя бы одно из: html, text, template.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
from | string | да | Отправитель, например Acme <hello@example.com>. Домен должен быть подтверждён в этом рабочем пространстве (см. list_sending_identities). (макс. 998 символов) |
to | string[] | да | Получатели. Каждый элемент — адрес, при необходимости с отображаемым именем. В сумме To+cc+bcc — не более 100; каждый адресат расходует один кредит на доставку. (1–100 элементов) |
cc | string[] | нет | Получатели копии. (0–100 элементов) |
bcc | string[] | нет | Получатели скрытой копии. (0–100 элементов) |
subject | string | нет | Тема письма. Не указывайте при отправке шаблона. (макс. 998 символов) |
text | string | нет | Текстовая версия письма. Укажите text, html или template. |
html | string | нет | HTML-версия письма. SendHQ очищает её и формирует текст, если text не указан. |
reply_to | string | нет | Адрес Reply-To. |
headers | object | нет | Дополнительные безопасные пользовательские заголовки (строковые значения), например {"X-Entity-Ref-ID": "123"}. Заголовками маршрутизации, такими как From/To/Message-ID, управляет SendHQ. |
message_class | string | нет | transactional (по умолчанию) или marketing. Для маркетинговых писем нужен тариф или домен с включённым маркетингом; добавляется обработка отписки. (одно из transactional, marketing) |
reply_to_email_id | string | нет | Ответ внутри существующей переписки: ID вида em_… письма, на которое вы отвечаете. SendHQ выставляет In-Reply-To/References и цепочку. |
thread_id | string | нет | Явный ID цепочки, к которой относится письмо. |
draft_id | string | нет | Отправить с этим письмом вложения сохранённого черновика (dr_…). После успешной отправки черновик удаляется. |
template | object | нет | Отправить опубликованный хранимый шаблон вместо готового html/текста. Требуется ровно один получатель в to и никаких cc/bcc; тему задаёт шаблон. Укажите хотя бы одно из: id, key. |
template.id | string | нет | ID шаблона (tmpl_…). Укажите id или key. |
template.key | string | нет | Ключ шаблона, например account-welcome. Укажите id или key. |
template.version_id | string | нет | Необязательный ID опубликованного релиза (tmplv_…). По умолчанию — текущий опубликованный релиз. |
template.data | object | нет | Значения типизированных переменных шаблона. |
labels | string[] | нет | Имена меток или ID вида lbl_…, под которыми сохранить письмо. Неизвестные имена создаются. Ответы в переписке наследуют метки, а метка группы (skip_inbox) не пускает эти ответы во «Входящие». Не более 10. (0–10 элементов) |
idempotency_key | string | нет | Заголовок Idempotency-Key (макс. 200 символов). Используйте его повторно, только чтобы повторить этот же запрос. (макс. 200 символов) |
attachments | object[] | нет | Файлы для вложения (не более 10 файлов, 10 МБ в сумме). Для каждого нужен content_base64 (плюс filename) или локальный file_path. (0–10 элементов) Укажите хотя бы одно из: content_base64, file_path. |
attachments[].filename | string | нет | Имя файла, которое увидит получатель. Обязательно при content_base64; по умолчанию — базовое имя из file_path. (макс. 255 символов) |
attachments[].content_type | string | нет | MIME-тип, например application/pdf. По умолчанию application/octet-stream. |
attachments[].content_base64 | string | нет | Содержимое файла в стандартном base64. |
attachments[].file_path | string | нет | Абсолютный путь к локальному файлу, доступному для чтения процессу MCP-сервера. |
{
"name": "send_email",
"arguments": {
"from": "Acme <hello@example.com>",
"to": [
"owner@example.com"
],
"subject": "Your export is ready",
"text": "Download it from your dashboard.",
"idempotency_key": "export-ready-42"
}
}send_batchОтправить пакет индивидуальных писем
SENDS REAL EMAIL. Отправляет от 1 до 100 независимых писем одним запросом (используйте для персонализации шаблона под каждого получателя). Каждый элемент имеет ту же структуру, что и send_email (без attachments/idempotency_key). Элементы выполняются или завершаются ошибкой по отдельности: HTTP 207 означает частичный успех; проверяйте data[i].ok и data[i].error для каждого. Один idempotency_key покрывает всё тело пакета.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
emails | object[] | да | Письма для отправки. (1–100 элементов) Укажите хотя бы одно из: html, text, template. |
idempotency_key | string | нет | Idempotency-Key для всего пакета (макс. 200 символов). (макс. 200 символов) |
{
"name": "send_batch",
"arguments": {
"emails": [
{
"from": "Acme <hello@example.com>",
"to": [
"owner@example.com"
],
"template": {
"key": "account-welcome",
"data": {
"first_name": "Asha"
}
}
}
],
"idempotency_key": "welcome-batch-2026-09-26"
}
}list_emailsСписок писем и поиск
Список отправленных (direction: out) и полученных (direction: in) писем от новых к старым с фильтрами. Полученные письма классифицируются: чтобы читать «Входящие» человека, используйте direction: in, archived: false, category: primary; для приоритизации — important: true; спам скрыт, если не указано category: spam или include_spam: true. Результат разбит на страницы: он содержит pagination {offset, limit, returned, total?, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
direction | string | нет | in — полученные, out — отправленные. (одно из in, out) |
status | string | нет | Фильтр по статусу, например queued, sent, delivered, bounced, complained, failed. |
domain | string | нет | Только письма для этого домена или списка доменов через запятую (совпадение с любым). |
inbox_id | string | нет | Только письма, полученные этим почтовым ящиком (inb_…). |
label | string | нет | Только письма с этой меткой: ID метки lbl_… или точное имя либо список через запятую (совпадение с любым). Папки можно посмотреть через list_labels. |
archived | boolean | нет | false — представление «Входящие» (полученные неархивные письма), true — только архивные. Не указывайте, чтобы получить все письма. |
category | string | нет | primary (люди), updates (рассылки, массовые и автоматические письма) или spam; либо список через запятую. Спам скрыт, если его не запросить. |
important | boolean | нет | true — только письма, помеченные как важные (ответы на начатые вами переписки и письма от отправителей, отмеченных как важные). |
include_spam | boolean | нет | Включить спам в результаты (для поиска по всем папкам). |
from | string | нет | Адрес отправителя содержит это значение. |
to | string | нет | Адрес получателя содержит это значение. |
unread | boolean | нет | true — только непрочитанные, false — только прочитанные. |
after | string | нет | Метка времени ISO-8601; только письма, созданные после неё. (date-time) |
before | string | нет | Метка времени ISO-8601; только письма, созданные до неё. (date-time) |
query | string | нет | Полнотекстовый поиск по темам, текстам, адресам отправителей и получателей и именам файлов вложений. (макс. 200 символов) |
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_emails",
"arguments": {
"direction": "in",
"unread": true,
"limit": 25
}
}get_emailПолучить одно письмо
Получает одно письмо с заголовками, html/текстом, статусом, метаданными цепочки и метаданными вложений (сами байты скачивайте через download_attachment).
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
email_id | string | да | ID письма (начинается с em_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "get_email",
"arguments": {
"email_id": "em_123"
}
}mark_emailОтметить как прочитанное, архивное, спам или важное
Изменяет одно письмо: read, archived, category (primary, updates, spam; только для полученных) и important. Пометка как спама или как важного обучает SendHQ в отношении этого отправителя для будущих писем; передайте learn: false, чтобы изменить только это письмо. Передайте хотя бы одно поле.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
email_id | string | да | ID письма (начинается с em_), возвращённый инструментом списка или создания. (макс. 128 символов) |
read | boolean | нет | true — прочитано, false — не прочитано. |
archived | boolean | нет | true — архивировать (убрать из «Входящих»), false — вернуть во «Входящие». |
category | string | нет | Переместить полученное письмо в primary, updates или spam. (одно из primary, updates, spam) |
important | boolean | нет | Поставить или снять отметку важности. |
learn | boolean | нет | false — не запоминать это решение для отправителя (по умолчанию true). |
{
"name": "mark_email",
"arguments": {
"email_id": "em_123",
"read": true
}
}delete_emailУдалить письмо
DESTRUCTIVE: безвозвратно удаляет сохранённое письмо и его вложения из SendHQ. Уже доставленное письмо при этом не отзывается.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
email_id | string | да | ID письма (начинается с em_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "delete_email",
"arguments": {
"email_id": "em_123"
}
}list_email_eventsСписок событий доставки письма
События провайдера для одного отправленного письма: delivery, bounce, complaint, reject, open, click. Это доказательство того, было ли письмо доставлено или почему произошёл сбой. Результат разбит на страницы: он содержит pagination {offset, limit, returned, total?, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
email_id | string | да | ID письма (начинается с em_), возвращённый инструментом списка или создания. (макс. 128 символов) |
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_email_events",
"arguments": {
"email_id": "em_123"
}
}get_threadПолучить переписку
Получает все письма переписки в хронологическом порядке (отправленные и полученные), каждое с метаданными вложений.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
thread_id | string | да | ID цепочки (обычно ID вида em_… первого письма; см. threadId у любого письма). (макс. 128 символов) |
{
"name": "get_thread",
"arguments": {
"thread_id": "em_123"
}
}Метки и правила автосортировки
list_labelsСписок меток
Список меток (папок) рабочего пространства с общим числом писем, числом непрочитанных и правилами автосортировки. Результат разбит на страницы: он содержит pagination {offset, limit, returned, total?, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_labels",
"arguments": {}
}get_labelПолучить метку
Получает одну метку со счётчиками и правилами автосортировки.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
label_id | string | да | ID метки (начинается с lbl_) или точное имя метки. (макс. 128 символов) |
{
"name": "get_label",
"arguments": {
"label_id": "Billing"
}
}create_labelСоздать метку
Создаёт метку-папку. Укажите skip_inbox: true, чтобы сделать её группой, которой владеет агент: отправляйте с labels: [name], и ответы будут попадать в метку, минуя «Входящие». Необязательные правила автосортировки раскладывают новые отправленные и полученные письма (должны совпасть все условия правила). Укажите apply_to_existing, чтобы разложить и уже сохранённые письма.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
name | string | да | Имя метки, например Billing или Clients/Acme. Уникально в рамках рабочего пространства (без учёта регистра). (макс. 64 символа) |
color | string | нет | Цвет в HEX, например #1a73e8. Необязательно. |
skip_inbox | boolean | нет | Режим группы: полученные письма с этой меткой (по правилу, как ответ на переписку, отправленную с этой меткой, или вручную) архивируются и отображаются только в метке, а не во «Входящих». |
rules | object[] | нет | Необязательные правила автосортировки (не более 20). Для каждого нужно хотя бы одно из: inbox_id, from, to, subject. (0–20 элементов) |
rules[].direction | string | нет | Только письма in (полученные) или out (отправленные). Не указывайте, чтобы учитывать оба направления. (одно из in, out) |
rules[].inbox_id | string | нет | Только письма, полученные этим почтовым ящиком (inb_…). Раскладывает письма каждого адреса получения в отдельную папку. |
rules[].from | string | нет | Отправитель содержит этот текст (без учёта регистра), например @stripe.com. (макс. 200 символов) |
rules[].to | string | нет | To/Cc содержит этот текст (без учёта регистра). (макс. 200 символов) |
rules[].subject | string | нет | Тема содержит этот текст (без учёта регистра). (макс. 200 символов) |
rules[].skip_inbox | boolean | нет | Архивировать подходящие полученные письма, чтобы они отображались только в папке метки, а не во «Входящих». |
apply_to_existing | boolean | нет | Разложить также уже сохранённые письма, подходящие под правила. |
{
"name": "create_label",
"arguments": {
"name": "Agent/Orders",
"skip_inbox": true,
"rules": [
{
"from": "@stripe.com"
}
]
}
}update_labelПереименовать метку, изменить цвет или сделать группой
Переименовывает метку, меняет её цвет или включает/выключает режим группы (skip_inbox). При включении режима группы полученные письма, уже имеющие эту метку, архивируются.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
label_id | string | да | ID метки (начинается с lbl_) или точное имя метки. (макс. 128 символов) |
name | string | нет | Новое имя. (макс. 64 символа) |
color | string | нет | Новый цвет в HEX. |
skip_inbox | boolean | нет | Режим группы: полученные письма с этой меткой (по правилу, как ответ на переписку, отправленную с этой меткой, или вручную) архивируются и отображаются только в метке, а не во «Входящих». |
{
"name": "update_label",
"arguments": {
"label_id": "lbl_123",
"name": "Finance/Billing"
}
}delete_labelУдалить метку
DESTRUCTIVE: удаляет метку и её правила. Сами письма сохраняются; с них лишь снимается эта метка.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
label_id | string | да | ID метки (начинается с lbl_) или точное имя метки. (макс. 128 символов) |
{
"name": "delete_label",
"arguments": {
"label_id": "lbl_123"
}
}create_label_ruleДобавить правило автосортировки
Добавляет к метке правило, чтобы подходящие новые письма раскладывались автоматически. Должны совпасть все заданные условия. Используйте inbox_id, чтобы выделить адресу получения отдельную папку; добавьте skip_inbox, чтобы такие письма не попадали во «Входящие».
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
label_id | string | да | ID метки (начинается с lbl_) или точное имя метки. (макс. 128 символов) |
direction | string | нет | Только письма in (полученные) или out (отправленные). Не указывайте, чтобы учитывать оба направления. (одно из in, out) |
inbox_id | string | нет | Только письма, полученные этим почтовым ящиком (inb_…). Раскладывает письма каждого адреса получения в отдельную папку. |
from | string | нет | Отправитель содержит этот текст (без учёта регистра), например @stripe.com. (макс. 200 символов) |
to | string | нет | To/Cc содержит этот текст (без учёта регистра). (макс. 200 символов) |
subject | string | нет | Тема содержит этот текст (без учёта регистра). (макс. 200 символов) |
skip_inbox | boolean | нет | Архивировать подходящие полученные письма, чтобы они отображались только в папке метки, а не во «Входящих». |
apply_to_existing | boolean | нет | Разложить также уже сохранённые подходящие письма. |
{
"name": "create_label_rule",
"arguments": {
"label_id": "Billing",
"inbox_id": "inb_123",
"skip_inbox": true
}
}delete_label_ruleУдалить правило автосортировки
DESTRUCTIVE: удаляет одно правило автосортировки. Уже разложенные письма сохраняют метку.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
label_id | string | да | ID метки (начинается с lbl_) или точное имя метки. (макс. 128 символов) |
rule_id | string | да | ID правила (начинается с lrule_) из get_label. (макс. 128 символов) |
{
"name": "delete_label_rule",
"arguments": {
"label_id": "lbl_123",
"rule_id": "lrule_123"
}
}label_emailДобавить или снять метки с письма
Перемещает письмо между папками: добавляет и/или снимает метки по имени или ID вида lbl_…. Неизвестные имена в add создаются, если create не равно false.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
email_id | string | да | ID письма (начинается с em_), возвращённый инструментом списка или создания. (макс. 128 символов) |
add | string[] | нет | Метки для добавления. (0–10 элементов) |
remove | string[] | нет | Метки для снятия. (0–10 элементов) |
create | boolean | нет | Создавать неизвестные метки из add (по умолчанию true). |
{
"name": "label_email",
"arguments": {
"email_id": "em_123",
"add": [
"Billing"
],
"remove": [
"Support"
]
}
}Черновики, вложения и адреса отправителя
list_sending_identitiesСписок подтверждённых адресов отправителя
Адреса и домены, с которых это рабочее пространство может отправлять письма прямо сейчас (подтверждённые домены, их адрес From по умолчанию и активные адреса почтовых ящиков). Вызывайте перед send_email, чтобы выбрать допустимый from.
Без параметров.
{
"name": "list_sending_identities",
"arguments": {}
}create_draftСоздать черновик
Создаёт черновик в редакторе. В черновиках хранятся вложения: создайте черновик, вызовите upload_attachment, затем send_email с draft_id. Ничего не отправляет.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
from | string | нет | Адрес отправителя на подтверждённом домене (при создании черновика может быть пустым). |
to | string[] | нет | Получатели. (0–100 элементов) |
cc | string[] | нет | Получатели копии. (0–100 элементов) |
bcc | string[] | нет | Получатели скрытой копии. (0–100 элементов) |
subject | string | нет | Тема письма. (макс. 998 символов) |
html | string | нет | HTML-версия письма. |
text | string | нет | Текстовая версия письма. |
reply_to_email_id | string | нет | ID письма, на которое отвечает этот черновик. |
thread_id | string | нет | ID цепочки, к которой относится черновик. |
{
"name": "create_draft",
"arguments": {
"from": "hello@example.com",
"to": [
"owner@example.com"
],
"subject": "Invoice"
}
}list_draftsСписок черновиков
Список черновиков редактора, начиная с последних изменённых. Результат разбит на страницы: он содержит pagination {offset, limit, returned, total?, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_drafts",
"arguments": {}
}get_draftПолучить черновик
Получает один черновик с метаданными вложений.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
draft_id | string | да | ID черновика (начинается с dr_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "get_draft",
"arguments": {
"draft_id": "dr_123"
}
}update_draftЗаменить содержимое черновика
Заменяет содержимое и получателей черновика. Это полная замена: пропущенные поля очищаются, поэтому сначала прочитайте get_draft и передайте все поля, которые хотите сохранить. Вложения не затрагиваются.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
draft_id | string | да | ID черновика (начинается с dr_), возвращённый инструментом списка или создания. (макс. 128 символов) |
from | string | нет | Адрес отправителя на подтверждённом домене (при создании черновика может быть пустым). |
to | string[] | нет | Получатели. (0–100 элементов) |
cc | string[] | нет | Получатели копии. (0–100 элементов) |
bcc | string[] | нет | Получатели скрытой копии. (0–100 элементов) |
subject | string | нет | Тема письма. (макс. 998 символов) |
html | string | нет | HTML-версия письма. |
text | string | нет | Текстовая версия письма. |
reply_to_email_id | string | нет | ID письма, на которое отвечает этот черновик. |
thread_id | string | нет | ID цепочки, к которой относится черновик. |
{
"name": "update_draft",
"arguments": {
"draft_id": "dr_123",
"from": "hello@example.com",
"to": [
"owner@example.com"
],
"subject": "Invoice (updated)",
"text": "Attached."
}
}delete_draftУдалить черновик
DESTRUCTIVE: удаляет черновик и безвозвратно удаляет его сохранённые вложения.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
draft_id | string | да | ID черновика (начинается с dr_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "delete_draft",
"arguments": {
"draft_id": "dr_123"
}
}upload_attachmentЗагрузить вложение в черновик
Загружает один файл в черновик (не более 10 файлов и 10 МБ в сумме на письмо). Укажите content_base64 или локальный file_path. Для отправки вложений нужен платный тариф.
Укажите хотя бы одно из: content_base64, file_path.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
draft_id | string | да | ID черновика (начинается с dr_), возвращённый инструментом списка или создания. (макс. 128 символов) |
filename | string | нет | Имя файла, которое увидит получатель. По умолчанию — базовое имя из file_path. (макс. 255 символов) |
content_type | string | нет | MIME-тип, например application/pdf. По умолчанию application/octet-stream. |
content_base64 | string | нет | Содержимое файла в стандартном base64. |
file_path | string | нет | Абсолютный путь к локальному файлу, доступному для чтения процессу MCP-сервера. |
{
"name": "upload_attachment",
"arguments": {
"draft_id": "dr_123",
"filename": "invoice.pdf",
"content_type": "application/pdf",
"file_path": "/tmp/invoice.pdf"
}
}download_attachmentСкачать вложение
Скачивает закрытое вложение (отправленного, полученного письма или черновика). Возвращает содержимое в base64 или записывает файл, если задан save_to_path (не перезаписывает существующий файл, если overwrite не равно true).
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
attachment_id | string | да | ID вложения (начинается с att_), возвращённый инструментом списка или создания. (макс. 128 символов) |
save_to_path | string | нет | Необязательный абсолютный локальный путь, по которому записать файл вместо возврата base64. |
overwrite | boolean | нет | Разрешить замену существующего файла по пути save_to_path. По умолчанию false. |
{
"name": "download_attachment",
"arguments": {
"attachment_id": "att_123",
"save_to_path": "/tmp/invoice.pdf"
}
}delete_attachmentУдалить вложение
DESTRUCTIVE: безвозвратно удаляет сохранённое вложение (например, чтобы убрать файл из черновика перед отправкой).
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
attachment_id | string | да | ID вложения (начинается с att_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "delete_attachment",
"arguments": {
"attachment_id": "att_123"
}
}Хранимые шаблоны
list_templatesСписок хранимых шаблонов
Список хранимых шаблонов писем с состоянием публикации и статистикой использования. Результат разбит на страницы: он содержит pagination {offset, limit, returned, total?, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
lifecycle | string | нет | active (по умолчанию), archived или all. (одно из active, archived, all) |
query | string | нет | Поиск по имени или ключу. (макс. 120 символов) |
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_templates",
"arguments": {
"lifecycle": "active"
}
}create_templateСоздать хранимый шаблон
Создаёт шаблон с редактируемым черновиком, при необходимости на основе заготовки (welcome, reset, receipt или blank). Перед отправкой по ключу шаблон нужно опубликовать.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
name | string | да | Название для людей. (макс. 120 символов) |
key | string | нет | Стабильный ключ для отправки: строчные латинские буквы, цифры, дефисы; начинается с буквы (2–64 символа). Если не указан, формируется из названия. |
starter | string | нет | Начальное содержимое. (одно из blank, welcome, reset, receipt) |
{
"name": "create_template",
"arguments": {
"name": "Account welcome",
"key": "account-welcome",
"starter": "welcome"
}
}get_templateПолучить шаблон
Получает текущий черновик шаблона (с revision), активный опубликованный релиз, историю релизов и статистику использования. Принимает ID или ключ.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
template_id | string | да | ID шаблона (tmpl_…) или ключ. (макс. 128 символов) |
{
"name": "get_template",
"arguments": {
"template_id": "account-welcome"
}
}update_template_draftСохранить черновик шаблона
Сохраняет редактируемый черновик шаблона с оптимистичной блокировкой: передайте текущую revision из get_template (409 означает, что кто-то сохранил раньше; перечитайте и повторите). Это полная замена содержимого черновика: пропущенные поля очищаются, поэтому передавайте все поля, которые хотите сохранить. Используйте плейсхолдеры {{variable}}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
template_id | string | да | ID или ключ шаблона. (макс. 128 символов) |
revision | integer | да | Текущая ревизия черновика из get_template. (1–…) |
name | string | нет | Название шаблона. (макс. 120 символов) |
subject_template | string | нет | Тема с плейсхолдерами. (макс. 998 символов) |
preheader_template | string | нет | Текст предпросмотра. (макс. 240 символов) |
html_template | string | нет | HTML-версия письма с плейсхолдерами. |
text_template | string | нет | Текстовая версия письма с плейсхолдерами. |
from | string | нет | Отправитель по умолчанию для отправок этого шаблона. |
reply_to | string | нет | Reply-To по умолчанию. |
variables | object[] | нет | Типизированный контракт переменных. Каждый элемент: {key (строчные буквы/подчёркивания), label, type: text|number|url|boolean, required (по умолчанию true), fallback, description}. |
variables[].key | string | да | |
variables[].label | string | нет | |
variables[].type | string | нет | (одно из text, number, url, boolean) |
variables[].required | boolean | нет | |
variables[].fallback | any | нет | |
variables[].description | string | нет | |
sample_data | object | нет | Тестовые значения для предпросмотра и тестов. |
{
"name": "update_template_draft",
"arguments": {
"template_id": "account-welcome",
"revision": 3,
"name": "Account welcome",
"subject_template": "Welcome, {{first_name}}",
"text_template": "Hi {{first_name}}",
"variables": [
{
"key": "first_name",
"type": "text",
"required": true
}
],
"sample_data": {
"first_name": "Asha"
}
}
}create_template_draftНачать новый черновик на основе опубликованного релиза
Создаёт новый редактируемый черновик как копию текущего опубликованного релиза (409, если черновик уже существует или ничего не опубликовано).
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
template_id | string | да | ID или ключ шаблона. (макс. 128 символов) |
{
"name": "create_template_draft",
"arguments": {
"template_id": "account-welcome"
}
}render_templateОтрендерить предпросмотр шаблона
Рендерит точный результат на сервере (subject, html, text) для черновика, опубликованного релиза или конкретной версии с переданными данными. Ничего не отправляет. Возвращает 422 с findings, если данные нарушают контракт переменных.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
template_id | string | да | ID или ключ шаблона. (макс. 128 символов) |
version_id | string | нет | Необязательный ID версии; по умолчанию — черновик, затем опубликованный релиз. |
data | object | нет | Значения переменных; по умолчанию — тестовые данные версии. |
{
"name": "render_template",
"arguments": {
"template_id": "account-welcome",
"data": {
"first_name": "Asha"
}
}
}send_template_testОтправить тестовое письмо по шаблону
SENDS REAL EMAIL. Send a [Test]-prefixed snapshot of the draft (or a given version) to the given recipients. Counts against usage; trial workspaces can only send to the account email or a mailbox-simulator test address.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
template_id | string | да | ID или ключ шаблона. (макс. 128 символов) |
to | string[] | да | Тестовые получатели. (1–100 элементов) |
from | string | нет | Отправитель на подтверждённом домене; по умолчанию — From шаблона. |
version_id | string | нет | Необязательный ID версии. |
data | object | нет | Значения переменных; по умолчанию — тестовые данные. |
{
"name": "send_template_test",
"arguments": {
"template_id": "account-welcome",
"to": [
"owner@example.com"
]
}
}publish_templateОпубликовать релиз шаблона
Публикует текущий черновик как неизменяемый релиз, который будет использовать send_email с template.key. Завершается ошибкой 422 с findings при ошибках валидации или 409, если публикация нарушит действующий контракт переменных шаблона, уже используемого в продакшене.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
template_id | string | да | ID или ключ шаблона. (макс. 128 символов) |
{
"name": "publish_template",
"arguments": {
"template_id": "account-welcome"
}
}archive_templateАрхивировать шаблон
Останавливает новые отправки по этому шаблону (история сохраняется; можно отменить через restore_template). Любая интеграция, отправляющая по этому ключу, начнёт получать ошибку 404.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
template_id | string | да | ID или ключ шаблона. (макс. 128 символов) |
{
"name": "archive_template",
"arguments": {
"template_id": "account-welcome"
}
}restore_templateВосстановить шаблон из архива
Снова делает архивный шаблон активным.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
template_id | string | да | ID или ключ шаблона. (макс. 128 символов) |
{
"name": "restore_template",
"arguments": {
"template_id": "account-welcome"
}
}Домены и DNS
list_domainsСписок доменов
Список доменов отправки со сводным setup_status (verified | checking | pending), состоянием DNS по каждой записи и статусом входящей почты. Может работать медленно: неподтверждённые домены перепроверяются в реальном времени. Результат разбит на страницы: он содержит pagination {offset, limit, returned, total?, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_domains",
"arguments": {}
}get_domainПолучить параметры настройки домена
Получает один домен с точными DNS-записями для публикации (type, name, value), текущим состоянием каждой записи по данным двух публичных резолверов, dns_issues со способами исправления и статусом входящей почты.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
domain_id | string | да | ID домена (начинается с dom_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "get_domain",
"arguments": {
"domain_id": "dom_123"
}
}add_domainДобавить домен отправки
Register a domain you control for sending. Returns the DNS records (Easy DKIM CNAMEs) the owner must publish. Does not change DNS itself. Counts against the plan's domain limit.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
name | string | да | Голое доменное имя, например example.com или mail.example.com. (макс. 253 символа) |
default_from | string | нет | Необязательный адрес отправителя по умолчанию на этом домене. |
{
"name": "add_domain",
"arguments": {
"name": "example.com"
}
}verify_domainПодтвердить домен
Run a live DNS and DKIM verification check now. Safe to repeat; poll every 30–60 s after DNS changes (propagation can take minutes to hours). Sending is allowed once status is verified.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
domain_id | string | да | ID домена (начинается с dom_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "verify_domain",
"arguments": {
"domain_id": "dom_123"
}
}delete_domainУдалить домен
DESTRUCTIVE: удаляет домен из рабочего пространства вместе с маршрутом приёма входящей почты. Отправки с него сразу после этого начнут завершаться ошибкой. DNS-записи у вашего DNS-провайдера не удаляются.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
domain_id | string | да | ID домена (начинается с dom_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "delete_domain",
"arguments": {
"domain_id": "dom_123"
}
}get_dns_providerОпределить DNS-провайдера и хосты записей
Определяет авторитетного DNS-провайдера домена и возвращает относительный хост, который нужно ввести у этого провайдера для каждой записи, рекомендуемую DMARC-запись, рекомендации по входящей MX-записи и доступность настройки в один клик (Domain Connect).
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
domain_id | string | да | ID домена (начинается с dom_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "get_dns_provider",
"arguments": {
"domain_id": "dom_123"
}
}get_domain_connect_linkПолучить ссылку для настройки DNS в один клик
Если get_dns_provider сообщает providers.domainConnect.available, создаёт подписанный URL согласия. Передайте его человеку: он откроет его и одобрит изменение DNS у своего провайдера. Пока он не одобрит, ничего не изменится. 409, если не поддерживается.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
domain_id | string | да | ID домена (начинается с dom_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "get_domain_connect_link",
"arguments": {
"domain_id": "dom_123"
}
}Входящая почта
setup_inboundВключить приём входящей почты для домена
Provision inbound receiving for a verified domain. Uses the root domain when it has no conflicting MX, otherwise inbound.<domain>. Returns the MX record the owner must publish; it does not edit DNS.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
domain_id | string | да | ID домена (начинается с dom_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "setup_inbound",
"arguments": {
"domain_id": "dom_123"
}
}verify_inboundПроверить входящую MX-запись
Повторно проверяет входящую MX-запись. Статус становится ready, когда её видят оба публичных резолвера.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
domain_id | string | да | ID домена (начинается с dom_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "verify_inbound",
"arguments": {
"domain_id": "dom_123"
}
}list_inboxesСписок входящих адресов
Список адресов получения, при необходимости для одного домена. Результат разбит на страницы: он содержит pagination {offset, limit, returned, total?, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
domain_id | string | нет | Необязательный фильтр по ID домена. |
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_inboxes",
"arguments": {
"domain_id": "dom_123"
}
}get_inboxПолучить почтовый ящик
Получает один входящий адрес.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
inbox_id | string | да | ID почтового ящика (начинается с inb_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "get_inbox",
"arguments": {
"inbox_id": "inb_123"
}
}create_inboxСоздать входящий адрес
Создаёт адрес вида support@<receiving domain> на домене со статусом входящей почты ready (сначала выполните setup_inbound и verify_inbound). Полученные письма появляются в list_emails с direction in.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
domain_id | string | да | ID домена (начинается с dom_), возвращённый инструментом списка или создания. (макс. 128 символов) |
local_part | string | да | Часть адреса до @, например support. (макс. 64 символа) |
name | string | нет | Необязательное отображаемое имя. |
{
"name": "create_inbox",
"arguments": {
"domain_id": "dom_123",
"local_part": "support",
"name": "Support"
}
}update_inboxПереименовать, включить или отключить почтовый ящик
Переименовывает почтовый ящик или задаёт его статус active / disabled.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
inbox_id | string | да | ID почтового ящика (начинается с inb_), возвращённый инструментом списка или создания. (макс. 128 символов) |
name | string | нет | Новое отображаемое имя. |
status | string | нет | Новый статус. (одно из active, disabled) |
{
"name": "update_inbox",
"arguments": {
"inbox_id": "inb_123",
"status": "disabled"
}
}set_inbox_forwardingПересылать письма из почтового ящика на другой адрес
SENDS REAL EMAIL при пересылке кому-либо, кроме владельца аккаунта: задаёт, куда пересылаются полученные письма почтового ящика. Собственный адрес владельца активируется сразу; на любой другой адрес приходит письмо с подтверждением, и пересылка остаётся в статусе pending, пока там её не подтвердят. Передайте forward_to: null, чтобы отключить пересылку. Пересланные копии приходят с адреса ящика, исходный отправитель указывается в Reply-To.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
inbox_id | string | да | ID почтового ящика (начинается с inb_), возвращённый инструментом списка или создания. (макс. 128 символов) |
forward_to | string,null | да | Email-адрес, на который пересылать письма, или null, чтобы отключить пересылку. (макс. 254 символа) |
{
"name": "set_inbox_forwarding",
"arguments": {
"inbox_id": "inb_123",
"forward_to": "team@example.net"
}
}delete_inboxУдалить почтовый ящик
DESTRUCTIVE: удаляет входящий адрес. Уже полученные письма сохраняются; новые письма на этот адрес больше в него не попадают.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
inbox_id | string | да | ID почтового ящика (начинается с inb_), возвращённый инструментом списка или создания. (макс. 128 символов) |
{
"name": "delete_inbox",
"arguments": {
"inbox_id": "inb_123"
}
}Доставляемость, отказы и стоп-лист
deliverability_statsСтатистика доставки за 30 дней
Итоги за 30 дней по всему рабочему пространству: sent, delivery, bounce, complaint, reject, open, click и deliveryRate (%).
Без параметров.
{
"name": "deliverability_stats",
"arguments": {}
}list_sender_reputationРепутация отправителей
Состояние репутации по каждому конкретному адресу From: active, throttled (сниженный дневной лимит) или paused (отправки возвращают 423) с причиной и дневным лимитом. Проверяйте, когда отправки завершаются ошибкой 423 или 429. Результат разбит на страницы: он содержит pagination {offset, limit, returned, total?, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_sender_reputation",
"arguments": {}
}list_suppressionsСтоп-лист
Стоп-лист рабочего пространства: получатели, заблокированные после постоянного отказа или жалобы на спам. Отправки им завершаются ошибкой 422. Результат разбит на страницы: он содержит pagination {offset, limit, returned, total?, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_suppressions",
"arguments": {}
}remove_suppressionУдалить запись об отказе из стоп-листа
DESTRUCTIVE (ослабляет защитную блокировку): удаляет запись об отказе из стоп-листа, чтобы на адрес снова можно было писать. Делайте это, только когда человек подтвердил, что адрес снова действителен. Записи о жалобах удалить нельзя (409).
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
email | string | да | Адрес получателя в стоп-листе. (макс. 320 символов) |
{
"name": "remove_suppression",
"arguments": {
"email": "fixed-mailbox@example.net"
}
}list_blocked_recipientsСписок заблокированных получателей
Все получатели, которым SendHQ откажет в отправке: отказы, жалобы и отписки от маркетинговых писем в рамках домена, со сводкой по типам. Читает до 500 самых свежих записей. Результат разбит на страницы: он содержит pagination {offset, limit, returned, total?, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_blocked_recipients",
"arguments": {}
}Campaigns
list_contactsList contacts
Campaigns: Newest-first contacts with their status, consent evidence, tags, custom fields, engagement (bot-filtered, estimated opens and clicks), and the lists they are subscribed to. Filter by list, status (including dormant), email/name substring (* is an email wildcard, e.g. *@example.com), tag, source, signup date, or a saved segment. Paginated: the result includes pagination {offset, limit, returned, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
list_id | string | нет | Only members of this list (lst_…). |
status | string | нет | Only contacts with this status. dormant: stopped opening and did not answer list cleanup, so broadcasts skip them. (one of subscribed, pending, unsubscribed, bounced, complained, dormant) |
query | string | нет | Email or name contains this text; * is a wildcard on the email. (max 200 chars) |
tag | string | нет | Only contacts with this tag. (max 60 chars) |
source | string | нет | How the contact was added. (one of form, api, import) |
after | string | нет | Signed up at or after this time. ISO 8601 date or date-time. (max 40 chars) |
before | string | нет | Signed up before this time. ISO 8601 date or date-time. (max 40 chars) |
segment_id | string | нет | Only contacts matching this saved segment (seg_…). |
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_contacts",
"arguments": {
"status": "subscribed"
}
}create_contactAdd a contact
Campaigns: Add one contact to the workspace, optionally to lists and with tags. A subscribed contact (the default) needs consent_basis: how this person agreed to receive your email. Only add people who asked for your email. Use status: unsubscribed to record an opt-out. Addresses already suppressed or unsubscribed from the workspace are stored with that status. Fails with 409 if the email already exists.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
email | string | да | Email address. (max 320 chars) |
name | string | нет | Display name; the first word is {{first_name}}. (max 200 chars) |
fields | object | нет | Custom fields (string, number, or boolean values), e.g. {"plan": "pro"}. Usable in broadcasts as {{fields.plan}} or {{plan}}. On update, a null value removes the field. |
tags | string[] | нет | Tags to attach, e.g. ["VIP"]. Up to 50. (0–50 items) |
list_ids | string[] | нет | Lists to add the contact to (lst_…). (0–100 items) |
status | string | нет | subscribed (default, requires consent_basis) or unsubscribed. (one of subscribed, unsubscribed) |
consent_basis | string | нет | How these people agreed to receive your email, recorded as consent evidence, e.g. Signed up on acme.com/newsletter (double opt-in), exported from Mailchimp. 10-500 characters. (max 500 chars) |
{
"name": "create_contact",
"arguments": {
"email": "ada@example.net",
"name": "Ada Lovelace",
"consent_basis": "Ticked the newsletter box at checkout on acme.com"
}
}get_contactGet a contact
Campaigns: One contact by ID or email: status, consent evidence (source, basis, opt-in and confirmation times), custom fields, and subscribed lists.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
contact_id | string | да | Contact ID (starts with ct_) or the contact's email address. (max 320 chars) |
{
"name": "get_contact",
"arguments": {
"contact_id": "ct_123"
}
}update_contactUpdate, tag, or unsubscribe a contact
Campaigns: Change a contact's name, merge custom fields (null removes one), change tags (tags replaces the whole set; add_tags and remove_tags change it), or set status to unsubscribed. A contact can never be resubscribed through the API; only the recipient can, by confirming a signup form.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
contact_id | string | да | Contact ID (starts with ct_) or the contact's email address. (max 320 chars) |
name | string | нет | New display name. (max 200 chars) |
fields | object | нет | Custom fields (string, number, or boolean values), e.g. {"plan": "pro"}. Usable in broadcasts as {{fields.plan}} or {{plan}}. On update, a null value removes the field. |
tags | string[] | нет | Replace all of the contact's tags with these. (0–50 items) |
add_tags | string[] | нет | Tags to add. (0–50 items) |
remove_tags | string[] | нет | Tags to remove. (0–50 items) |
status | string | нет | Only unsubscribed is accepted. (one of unsubscribed) |
{
"name": "update_contact",
"arguments": {
"contact_id": "ct_123",
"fields": {
"plan": "team"
}
}
}delete_contactDelete a contact
DESTRUCTIVE: permanently delete a contact and its list memberships. Suppressions and recorded unsubscribes are kept, so the address still cannot be mailed if it is added again. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
contact_id | string | да | Contact ID (starts with ct_) or the contact's email address. (max 320 chars) |
{
"name": "delete_contact",
"arguments": {
"contact_id": "ct_123"
}
}import_contactsImport contacts from CSV
Campaigns: Import up to 5,000 CSV rows (5 MB) per call, optionally into a list. The header row needs an email column; name (or first_name/last_name), status, and tags (separated by ; or |) are recognized and other columns become custom fields. consent_basis is required and recorded on every new contact. tags are added to every accepted row. Rows whose status says unsubscribed import as unsubscribed; existing contacts keep their status. Returns counts of accepted, created, existing, skipped (duplicates), and invalid rows with line numbers.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
csv | string | да | The CSV file content, header row first. (max 5242880 chars) |
list_id | string | нет | Add every accepted row to this list (lst_…). |
consent_basis | string | да | How these people agreed to receive your email, recorded as consent evidence, e.g. Signed up on acme.com/newsletter (double opt-in), exported from Mailchimp. 10-500 characters. (max 500 chars) |
tags | string[] | нет | Tags to add to every accepted row, e.g. ["imported-2026-11"]. (0–50 items) |
update_existing | boolean | нет | Merge names and fields into contacts that already exist. Their status never changes. |
{
"name": "import_contacts",
"arguments": {
"csv": "email,name\nada@example.net,Ada Lovelace\n",
"consent_basis": "Newsletter signups exported from Mailchimp (double opt-in)"
}
}list_contact_importsList contact imports
Campaigns: Recent CSV imports with their consent basis and row counts.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_contact_imports",
"arguments": {}
}bulk_update_contactsBulk update contacts
DESTRUCTIVE when action is delete (permanent) or unsubscribe (cannot be undone through the API). Apply one action to up to 10,000 contacts: the IDs in contact_ids, or everyone matching filter (the list_contacts filters). Actions: tag / untag (with tags), add_to_list / remove_from_list (with list_id), unsubscribe, delete. Adding to a list mirrors each contact's status, so nobody is resubscribed. delete needs confirm_count equal to the number of contacts it would delete: call once without it to get that count (409), confirm with the user, then repeat with it. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
action | string | да | What to do. (one of tag, untag, add_to_list, remove_from_list, unsubscribe, delete) |
contact_ids | string[] | нет | Contact IDs (ct_…). Use this or filter. (0–10000 items) |
filter | object | нет | Everyone matching these list_contacts filters. Use this or contact_ids. |
filter.list_id | string | нет | Members of this list. |
filter.status | string | нет | Only contacts with this status. dormant: stopped opening and did not answer list cleanup, so broadcasts skip them. (one of subscribed, pending, unsubscribed, bounced, complained, dormant) |
filter.query | string | нет | Email or name contains; * is an email wildcard. (max 200 chars) |
filter.tag | string | нет | Has this tag. (max 60 chars) |
filter.source | string | нет | How the contact was added. (one of form, api, import) |
filter.after | string | нет | Signed up at or after. ISO 8601 date or date-time. (max 40 chars) |
filter.before | string | нет | Signed up before. ISO 8601 date or date-time. (max 40 chars) |
filter.segment_id | string | нет | Matches this segment. |
tags | string[] | нет | For tag and untag. (0–50 items) |
list_id | string | нет | For add_to_list and remove_from_list (lst_…). |
confirm_count | integer | нет | For delete: the number of contacts that will be deleted, from the 409 response. (0–…) |
{
"name": "bulk_update_contacts",
"arguments": {
"action": "tag",
"tags": [
"october"
],
"filter": {
"list_id": "lst_123",
"status": "subscribed"
}
}
}list_tagsList contact tags
Campaigns: The workspace's contact tags, most used first, with how many contacts carry each (up to 500). Paginated.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_tags",
"arguments": {}
}list_contact_fieldsList custom contact fields
Campaigns: Defined custom contact fields with label and type (text, number, date). Defined fields are known to check_broadcast's merge-tag check and typed in segment conditions. Contacts may also carry undefined keys. Paginated.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_contact_fields",
"arguments": {}
}set_contact_fieldDefine a custom contact field
Campaigns: Create or change a custom field definition (label and type). Values live on each contact's fields. Built-in merge tags (email, name, first_name, last_name, fields, unsubscribe_url) cannot be used as keys. A workspace may define 50 fields.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
field_key | string | да | Field key: a lowercase letter, then up to 39 of a-z, 0-9, and _ (e.g. plan). Used in content as {{fields.plan}}. (max 40 chars) |
label | string | нет | Label shown in the dashboard. Defaults to the key. (max 80 chars) |
type | string | нет | text (default), number, or date. (one of text, number, date) |
{
"name": "set_contact_field",
"arguments": {
"field_key": "plan",
"label": "Plan",
"type": "text"
}
}delete_contact_fieldDelete a custom field definition
DESTRUCTIVE: delete a custom field definition. Values already stored on contacts are kept. Fails with 404 when the field is not defined. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
field_key | string | да | Field key: a lowercase letter, then up to 39 of a-z, 0-9, and _ (e.g. plan). Used in content as {{fields.plan}}. (max 40 chars) |
{
"name": "delete_contact_field",
"arguments": {
"field_key": "plan"
}
}list_segmentsList segments
Campaigns: Saved segments with count (subscribed, non-dormant contacts in the workspace that match now) and fields, the condition fields and operators each accepts. Paginated.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_segments",
"arguments": {}
}get_segmentGet a segment
Campaigns: One segment with its conditions and live count.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
segment_id | string | да | Segment ID (starts with seg_), as returned by list_segments or create_segment. (max 128 chars) |
{
"name": "get_segment",
"arguments": {
"segment_id": "seg_123"
}
}preview_segmentPreview segment conditions
Campaigns: Count and sample (up to 5) the subscribed, non-dormant contacts that match conditions without saving them. Read-only; use it to check conditions before create_segment.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
match | string | нет | all (default): every condition must match. any: at least one. (one of all, any) |
conditions | object[] | нет | Up to 20 conditions. Opened and clicked use bot-filtered, estimated engagement. (0–20 items) |
conditions[].field | string | да | tag, list, status, source, email, name, signed_up, opened, clicked, opens, sends_without_open, country, or a custom field as fields.<key> (or field together with key). (max 48 chars) |
conditions[].key | string | нет | Custom field key when field is field. (max 40 chars) |
conditions[].op | string | да | tag: has, not_has. list: in, not_in (a list ID). status: is, is_not (subscribed, pending, unsubscribed, bounced, complained, dormant). source: is, is_not (form, api, import). email: contains, not_contains, ends_with. name: is_set, not_set. signed_up: before, after (YYYY-MM-DD), in_last_days, not_in_last_days. opened / clicked: in_last_days, not_in_last_days, ever, never. opens / sends_without_open: gte, lte. country: is, is_not (two-letter code). Custom fields: equals, not_equals, contains, gt, lt, before, after, is_set, not_set. (one of has, not_has, in, not_in, is, is_not, contains, not_contains, ends_with, is_set, not_set, before, after, in_last_days, not_in_last_days, ever, never, gte, lte, equals, not_equals, gt, lt) |
conditions[].value | string,number | нет | Required except for is_set, not_set, ever, and never. A number of days for in_last_days / not_in_last_days, a number for gte, lte, gt, lt, a date (YYYY-MM-DD) for before / after. |
{
"name": "preview_segment",
"arguments": {
"match": "all",
"conditions": [
{
"field": "tag",
"op": "has",
"value": "VIP"
},
{
"field": "opened",
"op": "in_last_days",
"value": 90
}
]
}
}create_segmentCreate a segment
Campaigns: Save a segment: up to 20 conditions joined by match. Use it as a broadcast's audience.segment_id, as list_contacts segment_id, or in bulk_update_contacts filters. A workspace may have 200 segments.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
name | string | да | Segment name. (max 120 chars) |
match | string | нет | all (default): every condition must match. any: at least one. (one of all, any) |
conditions | object[] | нет | Up to 20 conditions. Opened and clicked use bot-filtered, estimated engagement. (0–20 items) |
conditions[].field | string | да | tag, list, status, source, email, name, signed_up, opened, clicked, opens, sends_without_open, country, or a custom field as fields.<key> (or field together with key). (max 48 chars) |
conditions[].key | string | нет | Custom field key when field is field. (max 40 chars) |
conditions[].op | string | да | tag: has, not_has. list: in, not_in (a list ID). status: is, is_not (subscribed, pending, unsubscribed, bounced, complained, dormant). source: is, is_not (form, api, import). email: contains, not_contains, ends_with. name: is_set, not_set. signed_up: before, after (YYYY-MM-DD), in_last_days, not_in_last_days. opened / clicked: in_last_days, not_in_last_days, ever, never. opens / sends_without_open: gte, lte. country: is, is_not (two-letter code). Custom fields: equals, not_equals, contains, gt, lt, before, after, is_set, not_set. (one of has, not_has, in, not_in, is, is_not, contains, not_contains, ends_with, is_set, not_set, before, after, in_last_days, not_in_last_days, ever, never, gte, lte, equals, not_equals, gt, lt) |
conditions[].value | string,number | нет | Required except for is_set, not_set, ever, and never. A number of days for in_last_days / not_in_last_days, a number for gte, lte, gt, lt, a date (YYYY-MM-DD) for before / after. |
{
"name": "create_segment",
"arguments": {
"name": "Engaged pro customers",
"conditions": [
{
"field": "fields.plan",
"op": "equals",
"value": "pro"
},
{
"field": "opened",
"op": "in_last_days",
"value": 90
}
]
}
}update_segmentUpdate a segment
Campaigns: Rename a segment or change match or conditions (which replaces the whole list). Broadcasts using it pick up the change when they start sending.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
segment_id | string | да | Segment ID (starts with seg_), as returned by list_segments or create_segment. (max 128 chars) |
name | string | нет | Segment name. (max 120 chars) |
match | string | нет | all (default): every condition must match. any: at least one. (one of all, any) |
conditions | object[] | нет | Up to 20 conditions. Opened and clicked use bot-filtered, estimated engagement. (0–20 items) |
conditions[].field | string | да | tag, list, status, source, email, name, signed_up, opened, clicked, opens, sends_without_open, country, or a custom field as fields.<key> (or field together with key). (max 48 chars) |
conditions[].key | string | нет | Custom field key when field is field. (max 40 chars) |
conditions[].op | string | да | tag: has, not_has. list: in, not_in (a list ID). status: is, is_not (subscribed, pending, unsubscribed, bounced, complained, dormant). source: is, is_not (form, api, import). email: contains, not_contains, ends_with. name: is_set, not_set. signed_up: before, after (YYYY-MM-DD), in_last_days, not_in_last_days. opened / clicked: in_last_days, not_in_last_days, ever, never. opens / sends_without_open: gte, lte. country: is, is_not (two-letter code). Custom fields: equals, not_equals, contains, gt, lt, before, after, is_set, not_set. (one of has, not_has, in, not_in, is, is_not, contains, not_contains, ends_with, is_set, not_set, before, after, in_last_days, not_in_last_days, ever, never, gte, lte, equals, not_equals, gt, lt) |
conditions[].value | string,number | нет | Required except for is_set, not_set, ever, and never. A number of days for in_last_days / not_in_last_days, a number for gte, lte, gt, lt, a date (YYYY-MM-DD) for before / after. |
{
"name": "update_segment",
"arguments": {
"segment_id": "seg_123",
"name": "Pro customers"
}
}delete_segmentDelete a segment
DESTRUCTIVE: delete a saved segment. Contacts are not affected. Fails with 409 while a sending or scheduled broadcast uses it. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
segment_id | string | да | Segment ID (starts with seg_), as returned by list_segments or create_segment. (max 128 chars) |
{
"name": "delete_segment",
"arguments": {
"segment_id": "seg_123"
}
}list_listsList contact lists
Campaigns: Contact lists with subscribed, pending, and unsubscribed counts and their hosted signup form settings.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_lists",
"arguments": {}
}create_listCreate a list
Campaigns: Create a contact list. Set form_enabled to publish a hosted double opt-in signup form (its URL is in form.url); form_from is the sender, on a verified domain, of the confirmation email, and redirect_url is an optional https page shown after confirming. welcome sends one welcome email when someone confirms. site publishes a public newsletter site at https://sendhq.cc/n/<slug> with the signup form, sent issues, and RSS.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
name | string | да | List name, shown on the signup form. (max 200 chars) |
description | string | нет | Short description shown on the signup form. (max 500 chars) |
form_enabled | boolean | нет | Publish the hosted signup form. |
form_from | string | нет | Sender of signup confirmation emails, e.g. Acme <news@example.com>, on a verified domain. (max 320 chars) |
redirect_url | string | нет | https page to open after a signup is confirmed. (max 500 chars) |
welcome | object | нет | Welcome email sent once, from form_from, when someone confirms a signup. Needs subject and html or markdown when enabled. |
welcome.enabled | boolean | нет | Send it. |
welcome.subject | string | нет | Subject; merge tags allowed. (max 300 chars) |
welcome.html | string | нет | HTML body; merge tags allowed. (max 500000 chars) |
welcome.markdown | string | нет | Markdown body instead of html, rendered with the workspace design. (max 200000 chars) |
site | object | нет | Public newsletter site at https://sendhq.cc/n/<slug>: a signup form, every issue sent with web.enabled, and an RSS feed at /n/<slug>/feed.xml. Needs the signup form on. A reserved or taken slug fails with 409. |
site.enabled | boolean | нет | Publish the site. |
site.slug | string,null | нет | Address after /n/ (3-48 characters, a-z, 0-9, -). Defaults to the list name. (max 48 chars) |
site.title | string,null | нет | Site title. Defaults to the list name. (max 120 chars) |
site.description | string,null | нет | Short description under the title. (max 300 chars) |
site.accent | string,null | нет | Accent color, e.g. #0a7d4f. |
{
"name": "create_list",
"arguments": {
"name": "Product updates"
}
}get_listGet a list
Campaigns: One list with member counts and signup form settings.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
list_id | string | да | List ID (starts with lst_), as returned by a list or create tool. (max 128 chars) |
{
"name": "get_list",
"arguments": {
"list_id": "lst_123"
}
}update_listUpdate a list
Campaigns: Rename a list, change its description, or change its hosted signup form, welcome email, or newsletter site. Omitted keys inside welcome and site keep their value.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
list_id | string | да | List ID (starts with lst_), as returned by a list or create tool. (max 128 chars) |
name | string | нет | New name. (max 200 chars) |
description | string | нет | New description. (max 500 chars) |
form_enabled | boolean | нет | Publish or unpublish the hosted signup form. |
form_from | string | нет | Sender of signup confirmation emails, on a verified domain. (max 320 chars) |
redirect_url | string | нет | https page to open after a signup is confirmed. (max 500 chars) |
welcome | object | нет | Welcome email sent once, from form_from, when someone confirms a signup. Needs subject and html or markdown when enabled. |
welcome.enabled | boolean | нет | Send it. |
welcome.subject | string | нет | Subject; merge tags allowed. (max 300 chars) |
welcome.html | string | нет | HTML body; merge tags allowed. (max 500000 chars) |
welcome.markdown | string | нет | Markdown body instead of html, rendered with the workspace design. (max 200000 chars) |
site | object | нет | Public newsletter site at https://sendhq.cc/n/<slug>: a signup form, every issue sent with web.enabled, and an RSS feed at /n/<slug>/feed.xml. Needs the signup form on. A reserved or taken slug fails with 409. |
site.enabled | boolean | нет | Publish the site. |
site.slug | string,null | нет | Address after /n/ (3-48 characters, a-z, 0-9, -). Defaults to the list name. (max 48 chars) |
site.title | string,null | нет | Site title. Defaults to the list name. (max 120 chars) |
site.description | string,null | нет | Short description under the title. (max 300 chars) |
site.accent | string,null | нет | Accent color, e.g. #0a7d4f. |
{
"name": "update_list",
"arguments": {
"list_id": "lst_123",
"form_enabled": false
}
}delete_listDelete a list
DESTRUCTIVE: delete a list and its memberships. The contacts themselves are kept. Fails with 409 while a broadcast to the list is sending. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
list_id | string | да | List ID (starts with lst_), as returned by a list or create tool. (max 128 chars) |
{
"name": "delete_list",
"arguments": {
"list_id": "lst_123"
}
}add_list_contactsAdd contacts to a list
Campaigns: Add up to 500 existing contacts to a list by ID or email. Subscribed contacts join subscribed; others join in their current state. Unknown references come back in notFound.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
list_id | string | да | List ID (starts with lst_), as returned by a list or create tool. (max 128 chars) |
contact_ids | string[] | нет | Contact IDs (ct_…). (0–500 items) |
emails | string[] | нет | Contact email addresses. (0–500 items) |
{
"name": "add_list_contacts",
"arguments": {
"list_id": "lst_123",
"emails": [
"ada@example.net"
]
}
}remove_list_contactRemove a contact from a list
DESTRUCTIVE: remove one contact from a list. The contact and its status are kept. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
list_id | string | да | List ID (starts with lst_), as returned by a list or create tool. (max 128 chars) |
contact_id | string | да | Contact ID (starts with ct_) or the contact's email address. (max 320 chars) |
{
"name": "remove_list_contact",
"arguments": {
"list_id": "lst_123",
"contact_id": "ct_123"
}
}list_broadcastsList broadcasts
Campaigns: Newest-first broadcasts with their status. Paginated: the result includes pagination.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
status | string | нет | Only broadcasts with this status. (one of draft, sending, sent, cancelled, failed) |
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_broadcasts",
"arguments": {}
}create_broadcastCreate a broadcast draft
Campaigns: Create a draft broadcast to one list. Content is html and/or text, markdown, a block document in content, or a published hosted template. Raw content supports merge tags: {{first_name}}, {{name}}, {{email}}, {{fields.plan}}, with fallbacks like {{first_name | there}}. audience narrows it to a segment and/or a number of people (most engaged first with order: engaged); tracking turns open and click tracking off; web publishes it on the list's newsletter site once sent. Nothing is sent until send_broadcast or schedule_broadcast; run check_broadcast and send_broadcast_test first.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
name | string | нет | Internal name. Defaults to the subject. (max 200 chars) |
list_id | string | нет | The list to send to (lst_…). |
from | string | нет | Sender on a verified domain, e.g. Acme <news@example.com>. (max 320 chars) |
reply_to | string | нет | Reply-To address. (max 320 chars) |
subject | string | нет | Subject line; merge tags allowed. (max 998 chars) |
preview_text | string | нет | Inbox preview text shown after the subject. (max 300 chars) |
html | string | нет | HTML body; merge tags allowed and escaped. |
text | string | нет | Plain-text body; merge tags allowed. |
template | object | нет | A published hosted template instead of subject/html/text. Template variables are filled from the contact's name, email, and fields. |
template.id | string | нет | |
template.key | string | нет | |
template.version_id | string | нет | |
markdown | string | нет | Markdown body instead of html: converted to a block document and rendered with the workspace design (get_newsletter_settings). Merge tags allowed. Not combinable with html or content. (max 1000000 chars) |
content | object,null | нет | Block document ({"type": "doc", "content": [...]}, the dashboard editor's format: paragraph, heading, bulletList, orderedList, blockquote, image, button, callout, horizontalRule, codeBlock). Rendered with the workspace design unless html is also sent. |
editor | string | нет | Which editor the dashboard opens: html or blocks. Set automatically for markdown and content. (one of html, blocks) |
audience | object | нет | Who gets it, within the list. Subscribed, non-dormant members only. |
audience.segment_id | string,null | нет | Only list members matching this segment (seg_…), or null for the whole list. |
audience.order | string | нет | With a limit: signup (default) or engaged (most engaged first). (one of signup, engaged) |
audience.limit | integer,null | нет | Send to at most this many people (send_broadcast_to_more sends to more later), or null for everyone. (1–10000000) |
tracking | object | нет | Open and click tracking, both on by default. Opens are estimates (bot-filtered pixel loads), never proof that someone read the email. |
tracking.opens | boolean | нет | Add an open pixel. |
tracking.clicks | boolean | нет | Rewrite links to signed SendHQ redirects (the unsubscribe link never is). |
web | object | нет | Publish this issue on the list's newsletter site (see create_list site) once it is sent. |
web.enabled | boolean | нет | Publish it. |
web.slug | string,null | нет | Issue address; defaults to the subject. (max 100 chars) |
web.pinned | boolean | нет | Keep it at the top of the site. |
{
"name": "create_broadcast",
"arguments": {
"list_id": "lst_123",
"from": "news@example.com",
"subject": "October update",
"markdown": "Hi {{first_name | there}}, here's what shipped.",
"audience": {
"order": "engaged",
"limit": 1000
}
}
}get_broadcastGet a broadcast
Campaigns: One broadcast with its content and, once sending, recipient totals (queued, sending, sent, held, skipped, failed). While a limit or reputation pause holds delivery, lastError explains why and nextAttemptAt says when it resumes.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
{
"name": "get_broadcast",
"arguments": {
"broadcast_id": "bc_123"
}
}update_broadcastEdit a draft broadcast
Campaigns: Change any field of an unscheduled draft broadcast (content, audience, tracking, web). A scheduled draft must be unscheduled first (unschedule_broadcast); sent or sending broadcasts cannot be edited.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
name | string | нет | Internal name. (max 200 chars) |
list_id | string | нет | The list to send to. |
from | string | нет | Sender on a verified domain. (max 320 chars) |
reply_to | string | нет | Reply-To address. (max 320 chars) |
subject | string | нет | Тема письма. (макс. 998 символов) |
preview_text | string | нет | Inbox preview text. (max 300 chars) |
html | string | нет | HTML-версия письма. |
text | string | нет | Текстовая версия письма. |
template | object,null | нет | A published hosted template, or null to remove it. |
markdown | string | нет | Markdown body instead of html: converted to a block document and rendered with the workspace design (get_newsletter_settings). Merge tags allowed. Not combinable with html or content. (max 1000000 chars) |
content | object,null | нет | Block document ({"type": "doc", "content": [...]}, the dashboard editor's format: paragraph, heading, bulletList, orderedList, blockquote, image, button, callout, horizontalRule, codeBlock). Rendered with the workspace design unless html is also sent. |
editor | string | нет | Which editor the dashboard opens: html or blocks. Set automatically for markdown and content. (one of html, blocks) |
audience | object | нет | Who gets it, within the list. Subscribed, non-dormant members only. |
audience.segment_id | string,null | нет | Only list members matching this segment (seg_…), or null for the whole list. |
audience.order | string | нет | With a limit: signup (default) or engaged (most engaged first). (one of signup, engaged) |
audience.limit | integer,null | нет | Send to at most this many people (send_broadcast_to_more sends to more later), or null for everyone. (1–10000000) |
tracking | object | нет | Open and click tracking, both on by default. Opens are estimates (bot-filtered pixel loads), never proof that someone read the email. |
tracking.opens | boolean | нет | Add an open pixel. |
tracking.clicks | boolean | нет | Rewrite links to signed SendHQ redirects (the unsubscribe link never is). |
web | object | нет | Publish this issue on the list's newsletter site (see create_list site) once it is sent. |
web.enabled | boolean | нет | Publish it. |
web.slug | string,null | нет | Issue address; defaults to the subject. (max 100 chars) |
web.pinned | boolean | нет | Keep it at the top of the site. |
{
"name": "update_broadcast",
"arguments": {
"broadcast_id": "bc_123",
"subject": "October product update"
}
}delete_broadcastDelete a draft broadcast
DESTRUCTIVE: permanently delete a draft broadcast. Broadcasts that were sent cannot be deleted. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
{
"name": "delete_broadcast",
"arguments": {
"broadcast_id": "bc_123"
}
}send_broadcastSend a broadcast
SENDS REAL EMAIL to the broadcast's audience: every subscribed, non-dormant member of its list, narrowed by its segment and limit. Only call it when the user asked to send this broadcast now. Each message goes through the normal checks (verified domain, marketing plan, suppressions, unsubscribes, reputation, daily and monthly limits) and carries one-click unsubscribe from this list; members that cannot be mailed are skipped. Each contact is sent at most once. Delivery continues in the background: poll get_broadcast for totals and get_broadcast_report for engagement. A scheduled broadcast fails with 409 until unscheduled. Unpaid workspaces (integration trial) can send only to the account email. Pass idempotency_key so a retry cannot start the send twice. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
idempotency_key | string | нет | Заголовок Idempotency-Key (макс. 200 символов). Используйте его повторно, только чтобы повторить этот же запрос. (макс. 200 символов) |
{
"name": "send_broadcast",
"arguments": {
"broadcast_id": "bc_123",
"idempotency_key": "october-update"
}
}cancel_broadcastCancel a broadcast
DESTRUCTIVE: stop a draft or sending broadcast for good. Recipients not yet sent are marked skipped; messages already handed to the provider are not recalled. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
{
"name": "cancel_broadcast",
"arguments": {
"broadcast_id": "bc_123"
}
}list_broadcast_recipientsList broadcast recipients
Campaigns: Per-recipient outcomes and engagement of a broadcast: queued, sending, sent, held, skipped (with the reason), or failed (with the error), the inbox provider, delivered/opened/clicked/bounced/complained/unsubscribed times, and the email ID to inspect delivery events with list_email_events. Filter by outcome, by activity (who opened, clicked, did not open, ...), or by email. Opens are bot-filtered estimates, never proof of reading. Paginated.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
status | string | нет | Only recipients with this outcome. (one of queued, sending, sent, held, skipped, failed) |
activity | string | нет | Only recipients who did this. (one of opened, clicked, not_opened, not_delivered, bounced, complained, unsubscribed) |
query | string | нет | Recipient email contains this text. (max 200 chars) |
include | string | нет | links adds the links each recipient clicked (implied by activity: clicked). (one of links) |
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_broadcast_recipients",
"arguments": {
"broadcast_id": "bc_123",
"status": "failed"
}
}check_broadcastRun a broadcast's pre-send checks
Campaigns: The review list shown before sending: sender verification, subject, preview text, content, audience size, size against Gmail's 102 KB clipping limit, postal address, merge tags without data or fallback, empty or shortened links, image descriptions, placeholder text, spam-prone wording, the trial's own-address rule, and whether a test was sent. ready is false while any check has level block; schedule_broadcast refuses then. Fix warn items or tell the user about them.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
{
"name": "check_broadcast",
"arguments": {
"broadcast_id": "bc_123"
}
}send_broadcast_testSend a broadcast test
SENDS REAL EMAIL: a copy of the draft marked [Test] to up to 5 addresses (default: the saved test recipients, or the account email), with merge tags filled from contact_id or a sample contact. Never goes to the list. Only send to addresses the user gave or owns. Limited to 100 test sends a day. Template broadcasts are tested with send_template_test. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
to | string[] | нет | Test recipients (up to 5). (1–5 items) |
contact_id | string | нет | Fill merge tags from this contact (ct_…). (max 320 chars) |
remember | boolean | нет | Save to as the default test recipients. |
{
"name": "send_broadcast_test",
"arguments": {
"broadcast_id": "bc_123",
"to": [
"owner@example.com"
]
}
}schedule_broadcastSchedule a broadcast
SENDS REAL EMAIL at scheduled_at to the broadcast's audience, with the same checks as send_broadcast. Only call it when the user asked to send this broadcast at that time. The pre-send checks run now (422 with checks if one blocks). It starts within about a minute of the time; if it can no longer send then, it returns to a draft with the reason in lastError. A scheduled draft cannot be edited until unschedule_broadcast. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
scheduled_at | string | да | When to send: ISO 8601 date-time with a timezone, at least a minute and at most a year ahead, e.g. 2026-11-10T09:00:00Z. (max 40 chars) |
{
"name": "schedule_broadcast",
"arguments": {
"broadcast_id": "bc_123",
"scheduled_at": "2026-11-10T09:00:00Z"
}
}unschedule_broadcastUnschedule a broadcast
Campaigns: Return a scheduled broadcast to an editable draft so it does not send. Fails with 409 when it is not scheduled.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
{
"name": "unschedule_broadcast",
"arguments": {
"broadcast_id": "bc_123"
}
}duplicate_broadcastDuplicate a broadcast
Campaigns: Copy any broadcast (draft, sent, or cancelled) into a new draft named <name> (copy) with the same list, sender, content, audience, and tracking settings. Nothing is sent.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
{
"name": "duplicate_broadcast",
"arguments": {
"broadcast_id": "bc_123"
}
}send_broadcast_to_moreSend a broadcast to more people
SENDS REAL EMAIL: sends a sent or sending broadcast to up to limit more people in its audience who have not received it (the rest of a limited audience, or people who joined since), in its audience order. Only call it when the user asked for this. Same checks as send_broadcast; each contact still gets it at most once. Fails with 422 when everyone already got it. Pass idempotency_key so a retry cannot add people twice. Part of Campaigns.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
limit | integer | да | How many more people at most. (1–10000000) |
idempotency_key | string | нет | Заголовок Idempotency-Key (макс. 200 символов). Используйте его повторно, только чтобы повторить этот же запрос. (макс. 200 символов) |
{
"name": "send_broadcast_to_more",
"arguments": {
"broadcast_id": "bc_123",
"limit": 500,
"idempotency_key": "october-update-more-1"
}
}get_broadcast_reportGet a broadcast report
Campaigns: Engagement for a sending or sent broadcast: unique and total opens and clicks, bounces, complaints, and unsubscribes with rates in percent, the same per inbox provider, clicks per link, first opens and clicks by hour, and the average of the previous five broadcasts. Opens are estimates: automated requests (scanners, link previews, privacy prefetching) are counted only in machine. Never claim that a person read the email. Fails with 409 for a draft.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
broadcast_id | string | да | Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars) |
{
"name": "get_broadcast_report",
"arguments": {
"broadcast_id": "bc_123"
}
}get_newsletter_settingsGet newsletter settings
Campaigns: The postal address added to every marketing email footer, the design (accent color, font, alignment) used for Markdown and block content, list cleanup settings, and default test recipients.
Без параметров.
{
"name": "get_newsletter_settings",
"arguments": {}
}update_newsletter_settingsUpdate newsletter settings
Campaigns: Change the postal address (required in marketing email by CAN-SPAM and CASL), design, list cleanup, or default test recipients. Omitted keys keep their value. List cleanup is on by default and sends email automatically: a subscriber who got afterSends broadcasts in a row without opening or clicking and has been quiet for quietDays gets one "still want these?" email; a week later those who did not confirm become dormant (kept, but skipped by broadcasts). Confirm with the user before turning it on or changing its email.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
postal_address | string | нет | Sender's postal address for the footer. Empty string removes it. (max 300 chars) |
design | object | нет | Rendering design for Markdown and block content. |
design.accentColor | string,null | нет | Hex color like #0a7d4f, or null for the default. |
design.font | string | нет | Font family. (one of sans, serif, mono) |
design.align | string | нет | Text alignment. (one of left, center) |
cleanup | object | нет | List cleanup of readers who stopped opening. |
cleanup.enabled | boolean | нет | Turn list cleanup on or off. |
cleanup.afterSends | integer | нет | Broadcasts in a row without an open or click (3-50). (3–50) |
cleanup.quietDays | integer | нет | Days without engagement (30-730). (30–730) |
cleanup.subject | string,null | нет | Subject of the cleanup email; merge tags allowed. (max 200 chars) |
cleanup.body | string,null | нет | Body text of the cleanup email. (max 2000 chars) |
cleanup.from | string,null | нет | Sender on a verified domain. Defaults to the last sent broadcast's sender. (max 320 chars) |
test_recipients | string[] | нет | Default addresses for send_broadcast_test (up to 5). (0–5 items) |
{
"name": "update_newsletter_settings",
"arguments": {
"postal_address": "Acme Inc., 1 Main St, Springfield",
"design": {
"accentColor": "#0a7d4f"
}
}
}get_campaign_overviewGet campaign overview
Campaigns: Subscriber growth and recent results for the last days (7-365, default 30): active, dormant, and pending subscribers, joined and left, a daily series, and the six latest broadcasts with open and click rates (bot-filtered estimates) and their average.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
days | integer | нет | Window in days, 7 to 365. Defaults to 30. (7–365) |
{
"name": "get_campaign_overview",
"arguments": {
"days": 30
}
}list_uploaded_imagesList uploaded images
Campaigns: The workspace's 60 most recent editor image uploads with their public URLs (https://sendhq.cc/i/<id>), to reuse in broadcast HTML, Markdown, or image blocks. Uploading needs the dashboard or the REST API (raw image body). Paginated.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_uploaded_images",
"arguments": {}
}Аккаунт, использование, аналитика и ключи
get_accountПолучить аккаунт, использование и оплату
Email владельца аккаунта, тариф/уровень доступа, использованные в текущем периоде доставки получателям в сравнении с квотой, использованные домены в сравнении с лимитом, объём передачи вложений, сводка по репутации, состояние подписки, опубликованные тарифы и счётчики рабочего пространства. Используйте, чтобы проверить оставшуюся квоту или на какой адрес можно доставлять письма в пробном периоде (email аккаунта).
Без параметров.
{
"name": "get_account",
"arguments": {}
}get_account_diagnosticsDiagnose sending and receiving
One read that explains what is wrong with sending or receiving in this workspace: an issues list (unverified domains and missing DKIM records, inbound MX not ready, paused or throttled senders, quota or daily limit reached, trial restrictions, high bounce or complaint rates, failing webhooks), plan and usage against limits, each domain with its DKIM and inbound state, sending identities, 30-day deliverability and sender reputation, suppressions and unsubscribes, and the last 30 days of messages that were not sent (with reasons) plus bounce, complaint and reject events. Start here when a user asks why mail is not arriving. Never returns message bodies or secrets.
Без параметров.
{
"name": "get_account_diagnostics",
"arguments": {}
}get_analyticsПолучить аналитику отправки
Аналитика панели управления за последние 7, 30 или 90 дней: итоги по отправленным, полученным, доставленным, отказам, заблокированным, открытиям, кликам и жалобам, ежедневная динамика, основные домены отправки и самые частые темы.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
days | integer | нет | Окно в днях: 7, 30 (по умолчанию) или 90. (одно из 7, 30, 90) |
{
"name": "get_analytics",
"arguments": {
"days": 30
}
}list_api_keysМетаданные API-ключей
Список имён API-ключей, несекретных префиксов и времени последнего использования. Только чтение: этот MCP-сервер не может создавать, ротировать или отзывать ключи; это делает человек в панели управления. Результат разбит на страницы: он содержит pagination {offset, limit, returned, total?, has_more, next_offset}.
| Параметр | Тип | Обязательна | Описание |
|---|---|---|---|
limit | integer | нет | Размер страницы. По умолчанию 50. (по умолчанию 50; 1–200) |
offset | integer | нет | Количество пропускаемых записей. Используйте pagination.next_offset из предыдущей страницы. (по умолчанию 0; 0–…) |
{
"name": "list_api_keys",
"arguments": {}
}get_service_healthПроверить работоспособность сервиса SendHQ
Проверяет, что API SendHQ работает, и какой почтовый провайдер активен. Действительный API-ключ не нужен.
Без параметров.
{
"name": "get_service_health",
"arguments": {}
}Покрытие API
Все операции публичного API и инструменты, которые их покрывают. Покрыто всё, что пользователь может сделать в панели управления и для чего есть API; перечисленные ниже исключения сделаны намеренно.
| Эндпоинт | Инструмент | Примечания |
|---|---|---|
| POST /emails | send_email | Отправить одно письмо |
| POST /emails/batch | send_batch | Отправить до 100 индивидуальных писем |
| GET /emails | list_emails | Список отправленных и полученных писем |
| GET /emails/:id | get_email | Получить письмо и его вложения |
| PATCH /emails/:id | mark_email | Изменить статус прочтения, архивации, спама, категорию или важность |
| POST /emails/:id/labels | label_email | Добавить или снять метки с письма |
| DELETE /emails/:id | delete_email | Удалить сохранённое письмо |
| GET /emails/:id/events | list_email_events | Список событий доставки письма |
| GET /threads/:id | get_thread | Получить переписку в хронологическом порядке |
| GET /labels | list_labels | Список меток с количеством писем и правилами сортировки |
| POST /labels | create_label | Создать метку, при необходимости с правилами автосортировки |
| GET /labels/:id | get_label | Получить метку по ID или имени |
| PATCH /labels/:id | update_label | Переименовать метку, изменить её цвет или превратить в группу |
| DELETE /labels/:id | delete_label | Удалить метку, не удаляя её письма |
| POST /labels/:id/rules | create_label_rule | Добавить к метке правило автосортировки |
| DELETE /labels/:id/rules/:rule_id | delete_label_rule | Удалить правило автосортировки |
| POST /drafts | create_draft | Создать черновик в редакторе |
| GET /drafts | list_drafts | Список черновиков редактора |
| GET /drafts/:id | get_draft | Получить черновик и вложения |
| PUT /drafts/:id | update_draft | Заменить содержимое черновика |
| DELETE /drafts/:id | delete_draft | Удалить черновик |
| POST /drafts/:id/attachments | upload_attachment | Загрузить вложение в черновик |
| GET /attachments/:id | download_attachment | Скачать закрытое вложение |
| DELETE /attachments/:id | delete_attachment | Удалить закрытое вложение |
| GET /sending-identities | list_sending_identities | Список подтверждённых адресов отправителя |
| GET /templates | list_templates | Список хранимых шаблонов |
| POST /templates | create_template | Создать хранимый шаблон |
| GET /templates/:id | get_template | Получить черновики, релизы и статистику использования |
| PUT /templates/:id/draft | update_template_draft | Автосохранение черновика шаблона |
| POST /templates/:id/draft | create_template_draft | Создать новый черновик на основе опубликованного релиза |
| POST /templates/:id/render | render_template | Отрендерить точный результат на сервере |
| POST /templates/:id/test | send_template_test | Отправить тестовый снимок |
| POST /templates/:id/publish | publish_template | Опубликовать неизменяемый релиз шаблона |
| POST /templates/:id/archive | archive_template | Архивировать шаблон |
| POST /templates/:id/restore | restore_template | Восстановить шаблон из архива |
| POST /domains | add_domain | Добавить домен отправки |
| GET /domains | list_domains | Список доменов и кешированное состояние DNS |
| GET /domains/:id | get_domain | Получить параметры настройки домена |
| POST /domains/:id/verify | verify_domain | Refresh domain and DNS verification |
| POST /domains/:id/inbound/setup | setup_inbound | Provision inbound receiving |
| POST /domains/:id/inbound/verify | verify_inbound | Проверить маршрутизацию входящей почты по MX |
| DELETE /domains/:id | delete_domain | Удалить домен |
| GET /dns/provider | get_dns_provider | Определить авторитетного DNS-провайдера и относительные хосты записей |
| GET /dns/domain-connect/connect | get_domain_connect_link | Создать ссылку согласия Domain Connect для настройки DNS в один клик |
| POST /inboxes | create_inbox | Создать входящий адрес |
| GET /inboxes | list_inboxes | Список входящих адресов |
| GET /inboxes/:id | get_inbox | Получить входящий адрес |
| PATCH /inboxes/:id | update_inbox | Переименовать, включить или отключить почтовый ящик |
| PUT /inboxes/:id/forwarding | set_inbox_forwarding | Пересылать полученные письма почтового ящика на другой адрес |
| DELETE /inboxes/:id | delete_inbox | Удалить почтовый ящик с сохранением писем |
| GET /deliverability/stats | deliverability_stats | Получить статистику доставки за 30 дней |
| GET /deliverability/reputation | list_sender_reputation | Состояние репутации по точному адресу отправителя |
| GET /suppressions | list_suppressions | Стоп-лист рабочего пространства |
| DELETE /suppressions/:email | remove_suppression | Удалить из стоп-листа допустимую запись об отказе |
| GET /blocked-recipients | list_blocked_recipients | Список отказов, жалоб и отписок |
| GET /webhooks | не предоставляется | Webhook endpoints are configured once by a human, in the dashboard or the REST API, and their responses carry signing secrets an agent should not hold. An agent reads the same outcomes with list_email_events, list_emails, and list_blocked_recipients. |
| POST /webhooks | не предоставляется | Webhook endpoints are configured once by a human, in the dashboard or the REST API, and their responses carry signing secrets an agent should not hold. An agent reads the same outcomes with list_email_events, list_emails, and list_blocked_recipients. |
| GET /webhooks/:id | не предоставляется | Webhook endpoints are configured once by a human, in the dashboard or the REST API, and their responses carry signing secrets an agent should not hold. An agent reads the same outcomes with list_email_events, list_emails, and list_blocked_recipients. |
| PATCH /webhooks/:id | не предоставляется | Webhook endpoints are configured once by a human, in the dashboard or the REST API, and their responses carry signing secrets an agent should not hold. An agent reads the same outcomes with list_email_events, list_emails, and list_blocked_recipients. |
| DELETE /webhooks/:id | не предоставляется | Webhook endpoints are configured once by a human, in the dashboard or the REST API, and their responses carry signing secrets an agent should not hold. An agent reads the same outcomes with list_email_events, list_emails, and list_blocked_recipients. |
| POST /webhooks/:id/rotate-secret | не предоставляется | Webhook endpoints are configured once by a human, in the dashboard or the REST API, and their responses carry signing secrets an agent should not hold. An agent reads the same outcomes with list_email_events, list_emails, and list_blocked_recipients. |
| POST /webhooks/:id/test | не предоставляется | Webhook endpoints are configured once by a human, in the dashboard or the REST API, and their responses carry signing secrets an agent should not hold. An agent reads the same outcomes with list_email_events, list_emails, and list_blocked_recipients. |
| GET /webhooks/:id/deliveries | не предоставляется | Webhook endpoints are configured once by a human, in the dashboard or the REST API, and their responses carry signing secrets an agent should not hold. An agent reads the same outcomes with list_email_events, list_emails, and list_blocked_recipients. |
| GET /webhooks/:id/deliveries/:deliveryId | не предоставляется | Webhook endpoints are configured once by a human, in the dashboard or the REST API, and their responses carry signing secrets an agent should not hold. An agent reads the same outcomes with list_email_events, list_emails, and list_blocked_recipients. |
| POST /webhooks/:id/deliveries/:deliveryId/retry | не предоставляется | Webhook endpoints are configured once by a human, in the dashboard or the REST API, and their responses carry signing secrets an agent should not hold. An agent reads the same outcomes with list_email_events, list_emails, and list_blocked_recipients. |
| GET /contacts | list_contacts | List contacts |
| POST /contacts | create_contact | Add a contact with its consent basis |
| POST /contacts/bulk | bulk_update_contacts | Tag, move, unsubscribe, or delete many contacts at once |
| GET /contacts/export | не предоставляется | Image uploads take a raw binary body and the export returns a CSV file meant for a person to download. Agents reuse uploaded images with list_uploaded_images and read the same contacts, filters, tags, and fields as JSON with list_contacts (paginated). |
| GET /contacts/:id | get_contact | Retrieve a contact by ID or email |
| PATCH /contacts/:id | update_contact | Update a contact's name, fields, or tags, or unsubscribe it |
| DELETE /contacts/:id | delete_contact | Delete a contact and its list memberships |
| POST /contact-imports | import_contacts | Import contacts from CSV |
| GET /contact-imports | list_contact_imports | List recent contact imports |
| GET /tags | list_tags | List contact tags with how many contacts carry each |
| GET /contact-fields | list_contact_fields | List custom contact field definitions |
| PUT /contact-fields/:key | set_contact_field | Define or change a custom contact field |
| DELETE /contact-fields/:key | delete_contact_field | Delete a custom field definition |
| GET /segments | list_segments | List saved segments with live counts |
| POST /segments | create_segment | Save a segment |
| POST /segments/preview | preview_segment | Count and sample the contacts that match unsaved conditions |
| GET /segments/:id | get_segment | Retrieve a segment and its live count |
| PATCH /segments/:id | update_segment | Rename a segment or change its conditions |
| DELETE /segments/:id | delete_segment | Delete a segment |
| GET /lists | list_lists | List contact lists with member counts |
| POST /lists | create_list | Create a list with an optional signup form, welcome email, and newsletter site |
| GET /lists/:id | get_list | Retrieve a list |
| PATCH /lists/:id | update_list | Rename a list or change its signup form, welcome email, or site |
| DELETE /lists/:id | delete_list | Delete a list without deleting its contacts |
| POST /lists/:id/contacts | add_list_contacts | Add existing contacts to a list |
| DELETE /lists/:id/contacts/:contact_id | remove_list_contact | Remove a contact from a list |
| GET /broadcasts | list_broadcasts | List broadcasts |
| POST /broadcasts | create_broadcast | Create a broadcast draft |
| GET /broadcasts/:id | get_broadcast | Retrieve a broadcast and its delivery totals |
| PATCH /broadcasts/:id | update_broadcast | Edit a draft broadcast |
| DELETE /broadcasts/:id | delete_broadcast | Delete a draft broadcast |
| GET /broadcasts/:id/checks | check_broadcast | Run the pre-send checks for a broadcast |
| POST /broadcasts/:id/test | send_broadcast_test | Send a test copy of a draft |
| POST /broadcasts/:id/schedule | schedule_broadcast | Schedule a draft to send later |
| POST /broadcasts/:id/unschedule | unschedule_broadcast | Unschedule a draft |
| POST /broadcasts/:id/duplicate | duplicate_broadcast | Copy a broadcast into a new draft |
| POST /broadcasts/:id/send | send_broadcast | Send a broadcast to its audience |
| POST /broadcasts/:id/send-more | send_broadcast_to_more | Send a sent broadcast to more of its audience |
| POST /broadcasts/:id/cancel | cancel_broadcast | Cancel a draft or sending broadcast |
| GET /broadcasts/:id/recipients | list_broadcast_recipients | List a broadcast's recipients, outcomes, and engagement |
| GET /broadcasts/:id/report | get_broadcast_report | Retrieve a broadcast's engagement report |
| GET /campaigns/overview | get_campaign_overview | Retrieve subscriber growth and recent broadcast performance |
| GET /newsletter-settings | get_newsletter_settings | Retrieve newsletter settings |
| PATCH /newsletter-settings | update_newsletter_settings | Change newsletter settings |
| POST /uploads/images | не предоставляется | Image uploads take a raw binary body and the export returns a CSV file meant for a person to download. Agents reuse uploaded images with list_uploaded_images and read the same contacts, filters, tags, and fields as JSON with list_contacts (paginated). |
| GET /uploads/images | list_uploaded_images | List recently uploaded images |
| GET /account | get_account | Получить аккаунт, использование, состояние оплаты и счётчики рабочего пространства с помощью API-ключа |
| GET /account/diagnostics | get_account_diagnostics | Diagnose sending and receiving problems in the workspace |
| GET /analytics | get_analytics | Получить аналитику отправки из панели управления за 7, 30 или 90 дней |
| GET /profile | get_account | Двойник GET /account, доступный только в сессии; MCP-сервер читает маршрут с API-ключом. |
| POST /billing/checkout | не предоставляется | Изменения оплаты намеренно доступны только в сессии и требуют действия владельца аккаунта в панели управления. Состояние оплаты можно прочитать через get_account. |
| POST /billing/cancel | не предоставляется | Изменения оплаты намеренно доступны только в сессии и требуют действия владельца аккаунта в панели управления. Состояние оплаты можно прочитать через get_account. |
| POST /keys | не предоставляется | Намеренно исключено: агент не должен выпускать или уничтожать учётные данные. Ключами управляет человек в панели управления. |
| GET /keys | list_api_keys | Список метаданных API-ключей |
| DELETE /keys/:id | не предоставляется | Намеренно исключено: агент не должен выпускать или уничтожать учётные данные. Ключами управляет человек в панели управления. |
Намеренно недоступно
| Возможность | Эндпоинты | Причина |
|---|---|---|
| Создание, ротация, отзыв или удаление API-ключей | POST /keys, DELETE /keys/:id | Намеренно исключено: агент не должен выпускать или уничтожать учётные данные. Ключами управляет человек в панели управления. |
| Оформление оплаты или отмена подписки | POST /billing/checkout, POST /billing/cancel | Изменения оплаты намеренно доступны только в сессии и требуют действия владельца аккаунта в панели управления. Состояние оплаты можно прочитать через get_account. |
| Настройка DNS Cloudflare в один клик (OAuth) | GET /api/dns/cloudflare/connect | Требует интерактивной сессии в браузере и согласия через OAuth Cloudflare. Вместо этого используйте записи из get_domain, хосты из get_dns_provider или get_domain_connect_link. |
| Регистрация, вход, выход, привязка аккаунта Google | /api/auth/* | Аутентификация человека в браузере; MCP-сервер аутентифицируется с помощью API-ключа. |
| Форма обращения в поддержку | POST /api/contact | Публичная форма на маркетинговом сайте для людей, а не операция рабочего пространства. |
| Webhook endpoints and deliveries | GET /webhooks, POST /webhooks, GET /webhooks/:id, PATCH /webhooks/:id, DELETE /webhooks/:id, POST /webhooks/:id/rotate-secret, POST /webhooks/:id/test, GET /webhooks/:id/deliveries, GET /webhooks/:id/deliveries/:deliveryId, POST /webhooks/:id/deliveries/:deliveryId/retry | Webhook endpoints are configured once by a human, in the dashboard or the REST API, and their responses carry signing secrets an agent should not hold. An agent reads the same outcomes with list_email_events, list_emails, and list_blocked_recipients. |
| Upload editor images and export contacts as CSV | POST /uploads/images, GET /contacts/export | Image uploads take a raw binary body and the export returns a CSV file meant for a person to download. Agents reuse uploaded images with list_uploaded_images and read the same contacts, filters, tags, and fields as JSON with list_contacts (paginated). |
Машиночитаемый каталог: /docs/mcp/tools.json (схемы, аннотации, соответствие эндпоинтам, исключения). Версия этой страницы в Markdown: /docs/mcp.md. Если установлен CLI, команда sendhq commands --format json выводит тот же каталог.