AI 에이전트를 위한 문서

SendHQ MCP 서버

Give an AI agent full, safe control of one SendHQ workspace: send and receive email, verify domains, publish templates, and investigate deliverability through 109 strictly typed tools. Written for agents first; humans welcome.

109 toolsstdio transport, one command0 key-management tools
설치 및 연결(Claude Code)
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.

sendhq CLI 바이너리에 내장된 로컬 stdio 서버입니다. MCP 클라이언트가 sendhq mcp를 자식 프로세스로 실행하고 stdin/stdout으로 JSON-RPC를 주고받습니다. 모든 도구 호출은 워크스페이스 API 키로 인증된 https://sendhq.cc/api/v1의 SendHQ REST API에 대한 문서화된 요청 하나로 변환되므로, MCP 서버는 그 키가 가진 권한만큼만, 그 이상은 갖지 않습니다.

  • 109 tools in 9 groups, generated from one catalog that is also published as tools.json.
  • 엄격한 JSON 스키마: 알 수 없는 인수, 잘못된 타입, 누락된 필수 필드는 SendHQ에 도달하기 전에 로컬에서 거부됩니다.
  • 안정적인 code, HTTP status, explanation, 구체적인 remedy, 재시도가 도움이 되는지 여부를 담은 구조화된 오류를 반환합니다.
  • 실제 이메일을 발송하거나 데이터를 삭제하는 모든 도구는 설명의 첫머리에서 이를 밝히며 MCP 안전 어노테이션을 포함합니다.
  • --read-only 모드는 발송 및 변경 도구를 모두 숨깁니다.
  • 아무것도 로그로 남기지 않습니다. stdout에는 프로토콜 메시지만 흐르며, API 키와 메시지 내용은 어떤 로그에도 기록되지 않습니다.
문서용 MCP 엔드포인트가 아닙니다.SendHQ는 https://sendhq.cc/api/mcp에서 읽기 전용의 작은 문서용 MCP 엔드포인트도 호스팅합니다(요금 및 문서 조회 전용이며 계정에는 접근하지 않습니다). 이 페이지의 서버는 계정 범위의 전체 기능 서버이며, 로컬에서 실행하거나 아래의 호스팅 커넥터로 사용할 수 있습니다.

Use SendHQ in Claude, ChatGPT and Grok

설치가 필요 없습니다. SendHQ는 이 서버를 같은 도구가 포함된 호스팅 커넥터로도 https://mcp.sendhq.cc/mcp에서 운영합니다. 키를 붙여 넣는 대신 SendHQ 계정으로 로그인합니다.

Claude

  1. Settings → Connectors를 열어 디렉터리에서 SendHQ를 찾거나, Add custom connector를 선택하고 https://mcp.sendhq.cc/mcp를 붙여 넣으세요.
  2. Connect를 클릭하고 SendHQ에 로그인한 뒤 접근 권한을 검토하고 Allow를 클릭하세요.
  3. Claude에게 받은편지함을 확인하거나, 검증된 도메인으로 이메일을 보내거나, 반송 원인을 설명해 달라고 요청해 보세요.

ChatGPT

  1. Open Settings → Security and login and turn on Developer mode.
  2. Go to chatgpt.com/plugins, click Create MCP app, name it SendHQ and enter https://mcp.sendhq.cc/mcp.
  3. Sign in to SendHQ and click Allow, then pick SendHQ from the tools menu in a new chat.

Grok

  1. Go to grok.com/connectors, click New Connector, then Custom.
  2. 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_feature tool sends a feature request to the SendHQ team with your account details, so we can follow up by email.
  • 실제 이메일을 발송하거나 데이터를 삭제하는 도구에는 그렇다고 표시되어 있습니다. 어시스턴트가 먼저 물어볼지 여부는 어시스턴트에서 도구별로 설정합니다. Claude에서는 Settings → Connectors → SendHQ에서 해당 도구에 Needs approval을 선택하세요.
  • 커넥터는 어시스턴트 이름을 딴 별도의 API 키(예: “Claude (AI connector)”)를 받습니다. API Keys에서 이 키를 삭제하면 즉시 연결이 해제됩니다.
  • API 키를 만들거나 폐기할 수 없으며 결제도 변경할 수 없습니다. 첨부 파일은 base64로 보내고 반환되며, 로컬 파일에는 접근하지 않습니다.
  • Sending requires an active subscription. There is no free allowance, including mail to the account owner.

문의: postmaster@sendhq.cc. 개인정보 처리: sendhq.cc/privacy.

설치

sendhq 바이너리를 설치하세요(x86-64와 arm64의 Linux, macOS, Windows 지원). 설치 프로그램은 릴리스 체크섬을 검증하고 기본적으로 바이너리를 ~/.local/bin에 넣습니다.

macOS 및 Linux
curl -fsSL https://downloads.sendhq.cc/install.sh | sh
Windows PowerShell
irm https://downloads.sendhq.cc/install.ps1 | iex
설치 확인
sendhq version
SENDHQ_API_KEY=re_your_key sendhq doctor

대시보드 https://sendhq.cc/app#/keys에서 API 키를 만드세요. MCP 서버는 키를 만들 수 없습니다. 서버를 실행하는 명령어는 다음 하나뿐입니다.

stdio 서버 실행
SENDHQ_API_KEY=re_your_key sendhq mcp

보통은 직접 실행할 일이 없으며 MCP 클라이언트가 실행합니다. 터미널에서 실행하면 stdin에서 JSON-RPC를 기다립니다.

클라이언트 설정

Claude Code

claude mcp add
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를, 프로젝트의 .mcp.json에 기록하려면 --scope project를 추가하세요. 공유 .mcp.json에서는 키를 커밋하지 말고 환경 변수에서 참조하세요. Claude Code는 .mcp.json의 ${VAR}를 확장합니다.

.mcp.json
{
  "mcpServers": {
    "sendhq": {
      "command": "sendhq",
      "args": [
        "mcp"
      ],
      "env": {
        "SENDHQ_API_KEY": "${SENDHQ_API_KEY}"
      }
    }
  }
}

OpenAI Codex

~/.codex/config.toml
[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)를 사용하세요.

claude_desktop_config.json
{
  "mcpServers": {
    "sendhq": {
      "command": "/Users/you/.local/bin/sendhq",
      "args": [
        "mcp"
      ],
      "env": {
        "SENDHQ_API_KEY": "re_your_key"
      }
    }
  }
}

그 밖의 MCP 클라이언트

명령어 sendhq, 인수 ["mcp"](선택적으로 "--read-only"), 아래의 환경 변수로 stdio 서버를 구성하세요. 이 서버는 MCP 프로토콜 버전 2024-11-05, 2025-03-26, 2025-06-18, 2025-11-25를 지원하며 initialize, ping, tools/list, tools/call을 구현합니다. 도구 결과에는 JSON 텍스트 블록과 structuredContent가 함께 들어 있습니다.

원시 stdio 스모크 테스트(sendhq mcp로 파이프)
{"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아니요API 기본 URL입니다. 기본값은 https://sendhq.cc/api/v1입니다. 로컬 또는 스테이징 배포에만 사용하세요. SENDHQ_BASE_URL은 이전 별칭으로 허용됩니다.
SENDHQ_MCP_READ_ONLY아니요1, true, yes는 --read-only와 똑같이 동작합니다.
--read-only아니요이메일을 발송하지 않고 상태도 바꾸지 않는 도구만 노출합니다. 숨겨진 도구는 이름으로 호출해도 거부됩니다.
SENDHQ_PROFILE / --profile아니요SENDHQ_API_KEY 대신 sendhq auth login으로 OS 키링에 저장한 키를 사용합니다. 둘 다 있으면 환경 변수가 우선합니다.

키는 설정된 기본 URL로 Authorization: Bearer 헤더로만 전송됩니다. 출력, 로그, 오류 메시지, 도구 결과에는 절대 포함되지 않습니다.

에이전트를 위한 안전 모델

  • Sends real email. send_email, send_batch, send_template_test, send_broadcast, send_broadcast_test, schedule_broadcast (at the scheduled time), and send_broadcast_to_more deliver mail to real people and consume delivery credits. Their descriptions start with SENDS 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), and bulk_update_contacts are marked destructiveHint: true and their descriptions start with DESTRUCTIVE. Confirm with the user first. remove_suppression weakens a safety block and is appropriate only when a human confirms the address works again.
  • 상태를 변경합니다. 초안, 템플릿, 도메인, 수신함의 생성 또는 업데이트, 템플릿 게시, 검증 시작은 워크스페이스를 변경하지만 메일을 발송하지는 않습니다.
  • 읽기 전용입니다. 그 외 모든 도구는 readOnlyHint: true이며 자유롭게 호출해도 안전합니다.
  • 이 서버는 DNS를 절대 변경하지 않습니다. add_domain은 사람이 게시할 레코드를 반환하고, get_domain_connect_link는 사람이 직접 열어 DNS 제공업체에서 승인해야 하는 동의 URL을 반환합니다.
  • 이 서버는 결제를 절대 변경하지 않습니다. get_account는 요금제, 사용량, 구독 상태만 읽습니다.
  • Sending requires an active subscription. There is no free allowance. Every send, including a test and a send to the account owner's own address, returns subscription_required (402) until a plan is active. Lapsed, cancelled, and past-due subscriptions are refused the same way. The owner chooses a plan in the dashboard (Profile & Billing) or at https://sendhq.cc/pricing. Unpaid workspaces can still verify domains, create keys, and read the workspace.
  • 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 (machine in get_broadcast_report).
  • 423 일시 중지를 우회하려고 다른 From 주소로 바꾸지 말고, 수신 거부하거나 스팸 신고한 수신자를 다시 추가하지 마세요.

API 키는 범위 밖입니다

설계상 API 키를 만들거나, 수정하거나, 교체하거나, 폐기하거나, 삭제하는 도구는 없습니다. 에이전트가 자격 증명을 발급하거나 파기해서는 안 되기 때문입니다. list_api_keys는 이름, 비밀이 아닌 접두사, 마지막 사용 시각만 반환합니다. 키 관리는 로그인한 사람이 대시보드에서 수행합니다.

워크플로

1. 첫 발송

  1. get_service_health로 API에 연결할 수 있는지 확인합니다(키 없이도 동작).
  2. get_account shows the plan (access.tier) and remaining quota. If there is no active plan, do not send: the call returns subscription_required.
  3. list_sending_identities로 사용할 수 있는 From 주소를 조회합니다. 목록이 비어 있으면 먼저 도메인 워크플로를 진행하세요.
  4. 발신자, 수신자, 제목, 본문을 사용자에게 확인한 뒤 idempotency_key와 함께 send_email을 호출합니다.
  5. 반환된 id로 list_email_events를 호출하면 제공업체가 보고하는 즉시(보통 몇 초에서 몇 분 이내) 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. 도메인 검증 전 과정

  1. add_domain with name: "example.com". The result includes the DNS records (DKIM CNAMEs, domain verification, SPF, recommended DMARC).
  2. domain_id로 get_dns_provider를 호출하면 권한 있는 DNS 제공업체를 감지하고 해당 제공업체에서 각 레코드에 입력할 정확한 상대 호스트를 반환합니다.
  3. If providers.domainConnect.available is true, get_domain_connect_link returns 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 existing v=spf1 value.
  4. verify_domain rechecks DNS and DKIM verification. Status moves through pending, checking, and propagating to verified. Poll verify_domain or get_domain every 30–60 seconds; DNS can take minutes to hours.
  5. status가 verified가 되면 도메인의 주소가 list_sending_identities에 나타납니다.

3. 반송, 스팸 신고, 발송 제외

  1. list_blocked_recipients는 차단된 모든 주소를 사유(bounce, complaint, unsubscribe)와 요약 건수와 함께 반환합니다.
  2. list_suppressions는 하드 바운스 및 스팸 신고로 인한 발송 제외 항목을 반환하고, deliverability_stats는 최근 30일의 전달률, 반송률, 스팸 신고율을 제공하며, list_sender_reputation은 속도가 제한되었거나 일시 중지된 From 주소를 보여 줍니다.
  3. 발송 제외된 수신자가 포함된 발송은 422 recipient_suppressed로 실패합니다. 그 수신자를 제거하고 다시 발송하세요.
  4. 사람이 반송된 메일함이 이제 정상 작동한다고 확인한 경우에만 remove_suppression을 호출하세요. 스팸 신고로 인한 발송 제외는 영구적입니다(409 complaint_suppression_locked).

4. 수신 이메일 받기

  1. 도메인(inbound.example.com 같은 서브도메인인 경우가 많음)이 검증되어 있어야 합니다.
  2. setup_inbound가 수신을 프로비저닝하고 MX 레코드 하나를 반환합니다. 사람이 이를 게시합니다.
  3. status가 ready가 될 때까지 verify_inbound를 호출합니다.
  4. domain_id와 local_part(예: support)로 create_inbox를 호출하면 support@inbound.example.com이 만들어집니다.
  5. direction: "in"과 unread: true(선택적으로 inbox_id)로 list_emails를 폴링합니다. 메시지는 get_email로, 대화는 get_thread로, 첨부 파일은 download_attachment로 읽고, 처리를 마치면 mark_email(read: true)로 표시합니다.
  6. 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. 전달 실패 진단

  1. 메시지 찾기: direction: "out"과 to 또는 query를 지정한 list_emails를 사용하거나, ID를 알면 get_email을 사용합니다. status: failed는 SendHQ 또는 제공업체가 제출 단계에서 거부했다는 뜻이며, 이메일의 오류가 이유를 설명합니다.
  2. list_email_events: bounce(제공업체 진단과 함께 영구적 또는 일시적), complaint, reject, delivery. 아직 이벤트가 없다면 제공업체가 보고하지 않은 것이므로 기다렸다가 다시 확인하세요.
  3. If the send call itself failed, read the error code: subscription_required → the owner activates a plan; sender_domain_unverified → finish domain verification; recipient_suppressed → the address hard-bounced or complained before; sender_paused → inspect list_sender_reputation; account_paused → the workspace is paused for review, read the rates; daily_limit_reached → wait until midnight UTC; quota_exhausted → get_account usage.
  4. get_domain으로 DKIM, SPF, DMARC가 여전히 게시되어 있는지 확인하고, deliverability_stats로 문제가 메시지 하나의 문제인지 추세인지 확인합니다.
  5. 증거가 보여 주는 내용을 그대로 보고하세요. delivery 이벤트는 수신자의 서버가 메시지를 받아들였다는 뜻이지, 받은편지함에 도달했거나 읽혔다는 뜻이 아닙니다.

7. 작업 버킷 운영하기(라벨)

  1. name(예: Agent/Orders)과 skip_inbox: true로 create_label을 호출합니다. 그러면 라벨이 버킷이 됩니다. 이 라벨이 붙는 수신 메일은 보관 처리되어 라벨에만 표시되고 사람의 받은편지함에는 나타나지 않습니다.
  2. send_email(또는 send_batch)에 labels: ["Agent/Orders"]를 지정해 작업 메일을 발송합니다. 그 대화에 대한 답장은 라벨을 자동으로 상속하고 받은편지함을 건너뜁니다.
  3. 내 대화 밖에서 시작되는 메일에는 분류 규칙을 추가합니다. inbox_id(orders@… 같은 전용 주소), from, to, subject를 지정해 create_label_rule을 호출하세요. 이미 받은 메일도 분류하려면 apply_to_existing: true를 전달합니다.
  4. 버킷 처리: label: "Agent/Orders", direction: "in", unread: true로 list_emails를 호출하고, get_email 또는 get_thread로 읽고, send_email과 reply_to_email_id로 답장하며, 처리를 마치면 mark_email read: true로 표시합니다.
  5. 엉뚱한 메시지는 label_email(add / remove)로 버킷에 넣거나 뺍니다. 수신 메시지에 버킷 라벨을 추가하면 그 메시지도 보관 처리됩니다.
  6. 선택적으로 set_inbox_forwarding은 수신 주소가 받는 모든 메일의 사본을 다른 메일함으로 보냅니다(대상은 먼저 이메일로 확인해야 합니다).
버킷으로 발송
{
  "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. 첨부 파일과 템플릿

유료 플랜에서는 send_email attachments로 파일을 최대 10개까지 첨부할 수 있습니다(각각 content_base64 또는 로컬 file_path가 필요하며 filename의 기본값은 파일의 basename입니다). 호스팅 템플릿의 경우 create_template → update_template_draft → 샘플 데이터로 미리 보는 render_template → 실제 테스트 메일 한 통을 보내는 send_template_test → publish_template 순서로 진행한 다음, template: {key, data}와 정확히 한 명의 to 수신자로 send_email 또는 send_batch를 호출해 발송합니다.

9. Send a newsletter

  1. Audience: list_lists (or create_list with a signup form), and optionally preview_segment then create_segment to narrow it, for example to contacts tagged VIP who opened in the last 90 days. Add only people who asked for your email: every subscribed contact needs a consent_basis.
  2. get_newsletter_settings: if postalAddress is empty, ask the user for one and set it with update_newsletter_settings (marketing email needs it).
  3. create_broadcast with list_id, a verified from, subject, preview_text, content (markdown is simplest), and optionally audience (segment_id, limit, order: engaged).
  4. check_broadcast: fix every block item and tell the user about warn items. Then send_broadcast_test to the user's own address so they can look at it.
  5. Only when the user says to send: send_broadcast now (with an idempotency_key), or schedule_broadcast with scheduled_at (unschedule_broadcast to change it).
  6. Follow up with get_broadcast (delivery totals), get_broadcast_report (opens, clicks, links, inbox providers, against your average), and list_broadcast_recipients with activity. Report opens as estimates. With a limited audience, send_broadcast_to_more sends to the next people.
Draft a broadcast
{
  "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_…"
    }
  }
}

결과, 페이지네이션, 오류

호출에 성공하면 API의 JSON 객체가 structuredContent와 JSON 텍스트 블록으로 반환됩니다. 모든 list_* 도구는 limit(1–200, 기본값 50)과 offset을 받으며 pagination 객체를 추가합니다. has_more가 true인 동안 offset: pagination.next_offset으로 계속 호출하세요.

페이지네이션된 결과
{
  "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": "subscription_required",
    "status": 402,
    "message": "Sending requires an active SendHQ subscription. Choose a plan to start sending.",
    "retryable": false,
    "explanation": "This workspace has no active paid subscription. SendHQ does not send any email, including to the account owner, until a plan is active.",
    "remedy": "Ask the account owner to choose a plan at https://sendhq.cc/pricing or in the dashboard (Profile & Billing). Do not retry until the subscription is active."
  }
}

선택 오류 필드: 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 호출만 자동으로 재시도됩니다(네트워크 오류, 429, 5xx에서 최대 3회).
  • 인라인 attachments가 있는 send_email은 여러 요청을 실행하므로 idempotency_key를 받을 수 없습니다. 재시도해도 안전한 첨부 파일 발송은 create_draft → upload_attachment → draft_id와 idempotency_key를 지정한 send_email 순서로 진행하세요.
재시도해도 안전한 발송(타임아웃 시 그대로 반복)
{
  "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 주소 각각이 전달 1건으로 집계됩니다. get_account → usage.recipientDeliveries와 usage.emailQuotaMonth를 비교해 확인하세요.
  • 정확한 From 주소별 일일 수신자 수는 해당 발신자의 평판 상태에 따라 정해집니다(list_sender_reputation → dailyLimit, 유료 요금제의 기본값은 2,000).
  • Subscription: sending is refused with subscription_required until a paid plan is active. There is no free or trial allowance.
  • Workspace daily ladder on paid plans: 1,000 recipients on day one, then 2,000, 3,000, 5,000, 8,000, 12,000, 18,000, 25,000, 35,000, 45,000, and 50,000. A step is gained after a UTC day that used at least half the cap with healthy 7-day feedback. A high rate demotes once per incident, not every day the rate stays high. See get_account → sendingLimit. Over the cap: daily_limit_reached, not queued, retry after resets_at (midnight UTC), not on a short backoff.
  • Hourly pace: about one tenth of the day's cap each UTC hour (100 on day one). hourly_limit_reached waits until the next UTC hour.
  • New domains: a sending domain less than 30 days old may send at most 500 Gmail recipients a day (gmail_recipient_limit), on any ladder rung. gmail_rate_limited means Gmail returned 4.7.28; wait until resets_at and keep sending to other providers.
  • 첨부 파일: 메시지당 최대 10개 파일과 10 MB, 유료 요금제에서는 월 10 GB의 수신자 가중 첨부 파일 전송량.
  • 요청당: To + Cc + Bcc 최대 100개 주소, send_batch는 최대 100개 메시지.
  • 평판 차단기: 최근 7일 롤링 기간 동안 반송 또는 스팸 신고가 임계값을 넘으면 From 주소 하나의 발송 속도를 제한하거나 일시 중지합니다(423 sender_paused). 비율이 낮아지면 자동으로 복구됩니다.

quota_exhausted는 기간이 초기화되거나 요금제가 바뀌기 전까지 재시도할 수 없습니다. rate_limited는 retry_after_seconds 이후 재시도할 수 있으며, 발송은 같은 idempotency_key와 동일한 본문으로 재시도하세요.

오류 카탈로그

code는 안정적이므로 message가 아니라 이 값으로 분기하세요.

codeHTTP재시도 여부의미와 대응 방법
invalid_arguments—아니요인수가 도구의 JSON 스키마 검증에 로컬에서 실패했습니다. SendHQ에는 아무것도 도달하지 않았습니다. problems에 나열된 필드를 수정하세요.
auth_error401아니요API 키가 없거나, 폐기되었거나, 잘못되었습니다. 서버 프로세스에 SENDHQ_API_KEY를 설정하세요. 키는 사람이 대시보드에서 만듭니다.
subscription_required402아니요No active subscription. Nothing is sent, including to the account owner. The owner chooses a plan. Do not retry until then.
payment_required402아니요이 기능에는 유료 요금제가 필요합니다(예: 첨부 파일). 해당 기능 없이 발송하거나 업그레이드하세요.
sender_domain_not_owned403아니요From 도메인이 이 워크스페이스에 없습니다. list_sending_identities 또는 add_domain을 사용하세요.
sender_domain_unverified403아니요From 도메인이 아직 검증되지 않았습니다. get_domain을 호출하고, 누락된 레코드를 게시한 뒤 verify_domain을 호출하세요.
domain_limit_reached403아니요요금제의 도메인 한도에 도달했습니다. 사용하지 않는 도메인을 (승인을 받아) 제거하거나 업그레이드하세요.
marketing_not_enabled403아니요이 도메인 또는 요금제에서는 marketing 클래스가 활성화되어 있지 않습니다. 메시지가 실제로 트랜잭션 성격일 때만 transactional을 사용하세요.
forbidden403아니요정책상 허용되지 않는 작업입니다. 요청을 수정하세요.
not_found404아니요ID가 이 워크스페이스에 없습니다. 리소스 목록을 조회해 올바른 ID를 찾고, 보관된 템플릿은 먼저 복원하세요.
idempotency_conflict409아니요키를 다른 본문으로 재사용했습니다. 원래 요청을 그대로 다시 보내거나, 새 메시지에는 새 키를 사용하세요.
idempotency_in_progress409예원래 요청이 아직 실행 중입니다. 기다렸다가 같은 키와 본문으로 재시도하세요.
revision_conflict409아니요템플릿 초안을 읽은 뒤 변경되었습니다. get_template을 호출하고, 병합한 뒤 다시 저장하세요.
complaint_suppression_locked409아니요수신자가 스팸으로 신고했습니다. 다시는 이메일을 보내지 마세요.
inbound_not_ready409아니요수신 준비가 되지 않았습니다. setup_inbound, MX 게시, verify_inbound 순서로 진행하세요.
conflict409아니요리소스가 이미 존재하거나 잘못된 상태입니다. 읽어 보고 조정하세요.
attachments_too_large413아니요파일이 10개를 넘거나 10 MB를 넘습니다. 첨부 파일을 제거하거나 줄이세요.
recipient_suppressed422아니요수신자가 이전에 하드 바운스되었거나 스팸으로 신고했습니다. 그 수신자를 제거하세요. list_blocked_recipients를 참고하세요.
recipient_unsubscribed422아니요수신자가 마케팅 메일 수신을 거부했습니다. 그 수신자를 영구적으로 제거하세요.
validation_failed422아니요콘텐츠가 거부되었습니다(예: 변수 계약을 위반하는 템플릿 데이터). 입력을 수정하세요.
sender_paused423아니요이 From 주소는 7일 반송/스팸 신고 차단기에 의해 일시 중지되었습니다. 발송을 중단하고, 목록을 고친 뒤 자동 복구를 기다리세요.
account_paused423아니요Workspace paused for a deliverability review. The body has the measured rate and the limit when the pause was for bounces or complaints. Do not send until it is restored.
quota_exhausted429아니요Monthly allowance, per-sender daily limit, or attachment transfer. Not the workspace daily ladder. Check get_account; wait for that limit to reset or upgrade.
daily_limit_reached429after resetWorkspace daily ladder. Not a short backoff. Wait until resets_at (midnight UTC). The message was not queued.
hourly_limit_reached429after resetHourly pace (about a tenth of the day's cap). Wait until the next UTC hour. Not a short backoff.
gmail_recipient_limit429after reset500 Gmail recipients a day for a sending domain under 30 days old, on any ladder rung. Wait until midnight UTC. Not queued.
gmail_rate_limited429after resetGmail returned 4.7.28 for this domain. Wait until resets_at. Other providers keep sending.
rate_limited429예Slow down; wait retry_after_seconds. This is not a daily, hourly, or Gmail cap.
server_error5xx예SendHQ 또는 제공업체의 일시적인 장애입니다. 백오프 후 재시도하세요. 발송은 같은 키와 본문으로 재시도합니다. idempotent_replayed가 true이면 아무것도 발송되지 않았음을 확인한 후 새 키를 사용하세요.
network_error—예요청 또는 응답이 유실되었습니다. 재시도하세요. 발송은 같은 idempotency_key를 쓰면 안전합니다.
invalid_request400아니요형식이 잘못된 요청입니다. message를 읽고 수정하세요.
tool_error—아니요MCP 서버 내부의 로컬 실패입니다(예: 읽을 수 없는 file_path). message를 읽어 보세요.

도구 레퍼런스

모든 도구의 안전 등급, 호출하는 REST 엔드포인트, 매개변수, 반환 형태, tools/call params 객체 예시를 나열합니다. 매개변수는 정확히 이대로여야 하며, 서버는 나열되지 않은 항목을 모두 거부합니다.

Emails and threads: send_email, send_batch, list_emails, get_email, mark_email, delete_email, list_email_events, get_thread, email_delivery, thread_delivery
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, deliverability_account, deliverability_domains, deliverability_senders, 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
POST /emails

이메일 한 통 발송

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.

매개변수타입필수설명
fromstring예발신자입니다. 예: Acme <hello@example.com>. 도메인은 이 워크스페이스에서 검증되어 있어야 합니다(list_sending_identities 참조). (최대 998자)
tostring[]예수신자입니다. 각 항목은 주소이며 표시 이름을 붙일 수 있습니다. To+cc+bcc는 합쳐서 최대 100개이며, 모든 대상은 전송 크레딧을 1개씩 소모합니다. (1–100개 항목)
ccstring[]아니요참조(Cc) 수신자. (0–100개 항목)
bccstring[]아니요숨은 참조(Bcc) 수신자. (0–100개 항목)
subjectstring아니요제목입니다. 템플릿을 보낼 때는 생략하세요. (최대 998자)
textstring아니요일반 텍스트 본문. text, html 또는 template 중 하나를 지정하세요.
htmlstring아니요HTML 본문. SendHQ가 이를 정제하며 text를 생략하면 텍스트를 생성합니다.
reply_tostring아니요Reply-To 주소.
headersobject아니요안전한 추가 사용자 정의 헤더(문자열 값). 예: {"X-Entity-Ref-ID": "123"}. From/To/Message-ID 같은 라우팅 헤더는 SendHQ가 제어합니다.
message_classstring아니요transactional(기본값) 또는 marketing입니다. marketing에는 마케팅이 활성화된 요금제 또는 도메인이 필요하며 수신 거부 처리가 추가됩니다. (다음 중 하나: transactional, marketing)
reply_to_email_idstring아니요기존 대화 안에서 답장합니다. 답장하려는 메시지의 em_… ID입니다. SendHQ가 In-Reply-To/References와 스레드를 설정합니다.
thread_idstring아니요메시지를 분류할 명시적 스레드 ID.
draft_idstring아니요저장된 초안의 첨부 파일을 이 메시지와 함께 보냅니다(dr_…). 발송에 성공하면 초안이 삭제됩니다.
templateobject아니요원본 html/text 대신 게시된 호스팅 템플릿을 발송합니다. to 수신자가 정확히 한 명이어야 하며 cc/bcc는 없어야 합니다. 제목은 템플릿이 제공합니다. id, key 중 하나 이상을 지정하세요.
template.idstring아니요템플릿 ID(tmpl_…). id 또는 key를 지정하세요.
template.keystring아니요account-welcome 같은 템플릿 키. id 또는 key를 지정하세요.
template.version_idstring아니요선택 사항인 게시 릴리스 ID(tmplv_…). 기본값은 현재 게시된 릴리스입니다.
template.dataobject아니요템플릿에 정의된 타입 변수의 값.
labelsstring[]아니요이 메시지를 분류할 라벨 이름 또는 lbl_… ID. 알 수 없는 이름은 새로 생성됩니다. 대화의 답장은 라벨을 상속하며, 버킷 라벨(skip_inbox)은 그 답장이 받은편지함에 들어오지 않게 합니다. 최대 10개. (0–10개 항목)
idempotency_keystring아니요Idempotency-Key 헤더(최대 200자). 이 요청을 그대로 재시도할 때만 재사용하세요. (최대 200자)
attachmentsobject[]아니요첨부할 파일(최대 10개 파일, 총 10 MB). 각 파일에는 content_base64(와 filename) 또는 로컬 file_path가 필요합니다. (0–10개 항목) 다음 중 하나 이상을 지정하세요: content_base64, file_path.
attachments[].filenamestring아니요수신자에게 표시되는 파일 이름. content_base64와 함께 쓸 때는 필수이며, 기본값은 file_path의 basename입니다. (최대 255자)
attachments[].content_typestring아니요MIME 타입. 예: application/pdf. 기본값은 application/octet-stream입니다.
attachments[].content_base64string아니요표준 base64 파일 내용.
attachments[].file_pathstring아니요MCP 서버 프로세스가 읽을 수 있는 로컬 파일의 절대 경로.
반환값{id: em_…, providerMessageId, threadId, templateId, templateVersionId, isTest}. Acceptance is not delivery: follow up with list_email_events.
tools/call params 예시
{
  "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
POST /emails/batch

개별화된 이메일 일괄 발송

SENDS REAL EMAIL(실제 이메일이 발송됩니다). 독립적인 메시지 1~100개를 한 요청으로 발송합니다(수신자별 템플릿 개인화에 사용). 각 항목은 send_email과 같은 형태입니다(attachments/idempotency_key 제외). 항목은 각각 성공하거나 실패합니다. HTTP 207은 부분 성공을 뜻하므로 각 data[i].ok와 data[i].error를 확인하세요. idempotency_key 하나가 일괄 발송 본문 전체를 포괄합니다.

매개변수타입필수설명
emailsobject[]예발송할 메시지. (1–100개 항목) 다음 중 하나 이상을 지정하세요: html, text, template.
idempotency_keystring아니요일괄 발송 전체에 대한 Idempotency-Key(최대 200자). (최대 200자)
반환값{data: [{index, ok, id?, error?: {message, status}}], count, successful, failed}.
tools/call params 예시
{
  "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
GET /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}이 포함됩니다.

매개변수타입필수설명
directionstring아니요수신은 in, 발신은 out. (다음 중 하나: in, out)
statusstring아니요상태 필터. 예: queued, sent, delivered, bounced, complained, failed.
domainstring아니요이 도메인 또는 쉼표로 구분한 도메인 목록(하나라도 일치)의 메시지만.
inbox_idstring아니요이 수신함(inb_…)이 받은 메시지만.
labelstring아니요이 라벨이 붙은 메시지만: 라벨 ID lbl_… 또는 정확한 이름, 또는 쉼표로 구분한 목록(하나라도 일치). 폴더를 보려면 list_labels를 사용하세요.
archivedboolean아니요false = 받은편지함 보기(보관되지 않은 수신 메일), true = 보관된 메일만. 생략하면 모든 메일.
categorystring아니요primary(사람), updates(뉴스레터, 대량 메일, 자동 메일), spam 또는 쉼표로 구분한 목록. 스팸은 요청하지 않으면 숨겨집니다.
importantboolean아니요true = 중요로 표시된 메시지만(내가 시작한 대화에 대한 답장과 중요로 지정한 발신자).
include_spamboolean아니요결과에 스팸을 포함합니다(모든 폴더에 걸친 검색용).
fromstring아니요발신자 주소가 이 값을 포함합니다.
tostring아니요수신자 주소가 이 값을 포함합니다.
unreadboolean아니요true = 읽지 않은 메일만, false = 읽은 메일만.
afterstring아니요ISO-8601 타임스탬프. 그 이후에 생성된 메시지만. (date-time)
beforestring아니요ISO-8601 타임스탬프. 그 이전에 생성된 메시지만. (date-time)
querystring아니요제목, 본문, 발신자/수신자 주소, 첨부 파일 이름에 대한 자유 텍스트 검색. (최대 200자)
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
반환값{data: [email summaries], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_emails",
  "arguments": {
    "direction": "in",
    "unread": true,
    "limit": 25
  }
}
읽기 전용get_email
GET /emails/:email_id

이메일 한 통 조회

헤더, html/text 본문, 상태, 스레드 메타데이터, 첨부 파일 메타데이터가 포함된 메시지 하나를 조회합니다(바이트 다운로드는 download_attachment 사용).

매개변수타입필수설명
email_idstring예이메일 ID(em_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값Email object: {id, direction, status, from, to, cc, bcc, subject, html, text, threadId, messageId, providerMessageId, readAt, createdAt, attachments: [{id, filename, contentType, sizeBytes, available}]}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_email",
  "arguments": {
    "email_id": "em_123"
  }
}
상태 변경mark_email
PATCH /emails/:email_id

읽음, 보관, 스팸, 중요 표시

메시지 하나를 업데이트합니다. read, archived, category(primary, updates, spam, 수신 메일 전용), important를 지정할 수 있습니다. 스팸으로 신고하거나 중요로 표시하면 SendHQ가 이후 메일에 대해 해당 발신자를 학습합니다. 이 메시지만 변경하려면 learn: false를 전달하세요. 필드를 하나 이상 지정해야 합니다.

매개변수타입필수설명
email_idstring예이메일 ID(em_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
readboolean아니요true = 읽음, false = 읽지 않음.
archivedboolean아니요true = 보관(받은편지함 건너뜀), false = 받은편지함으로 되돌림.
categorystring아니요수신 메시지를 primary, updates 또는 spam으로 이동합니다. (다음 중 하나: primary, updates, spam)
importantboolean아니요메시지를 중요로 표시하거나 표시를 해제합니다.
learnboolean아니요false = 이 판단을 발신자에 대해 기억하지 않습니다(기본값 true).
반환값The updated email object.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "mark_email",
  "arguments": {
    "email_id": "em_123",
    "read": true
  }
}
파괴적 작업delete_email
DELETE /emails/:email_id

이메일 삭제

DESTRUCTIVE(파괴적 작업): 보관 중인 메시지와 저장된 첨부 파일을 SendHQ에서 영구적으로 삭제합니다. 이미 전달된 메시지를 회수하지는 않습니다.

매개변수타입필수설명
email_idstring예이메일 ID(em_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_email",
  "arguments": {
    "email_id": "em_123"
  }
}
읽기 전용list_email_events
GET /emails/:email_id/events

이메일의 전송 이벤트 목록 조회

발송된 메시지 하나에 대한 제공업체 이벤트: delivery, bounce, complaint, reject, open, click. 메시지가 전달되었는지, 또는 실패한 이유가 무엇인지에 대한 근거입니다. 페이지네이션: 결과에 pagination {offset, limit, returned, total?, has_more, next_offset}이 포함됩니다.

매개변수타입필수설명
email_idstring예이메일 ID(em_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
반환값{data: [{event_type, recipient, reason, created_at, …}], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_email_events",
  "arguments": {
    "email_id": "em_123"
  }
}
읽기 전용get_thread
GET /threads/:thread_id

대화 조회

대화의 모든 메시지(발신 및 수신)를 시간순으로, 각각 첨부 파일 메타데이터와 함께 조회합니다.

매개변수타입필수설명
thread_idstring예스레드 ID(보통 첫 메시지의 em_… ID이며, 아무 이메일의 threadId를 참조). (최대 128자)
반환값{id, subject, data: [emails]}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_thread",
  "arguments": {
    "thread_id": "em_123"
  }
}
Read-onlyemail_delivery
GET /emails/:email_id/delivery

Get an email delivery timeline

Queued, sent, delivered, delayed, bounced, complained, and failed events for one email, with bounce type and the SMTP diagnostic. Reasons are plain text.

매개변수타입필수설명
email_idstring예
limitinteger아니요
offsetinteger아니요
Returns{emailId, status, timeline, count, limit, offset}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "email_delivery",
  "arguments": {
    "email_id": "em_123"
  }
}
Read-onlythread_delivery
GET /threads/:thread_id/delivery

Get a thread delivery summary

Counts of delivered, bounced, complained, and failed outbound messages in one conversation, plus each message's failure reason.

매개변수타입필수설명
thread_idstring예
Returns{threadId, delivered, bounced, complained, failed, messages}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "thread_delivery",
  "arguments": {
    "thread_id": "thr_123"
  }
}

라벨 및 자동 분류 규칙

읽기 전용list_labels
GET /labels

라벨 목록 조회

워크스페이스의 라벨(폴더)을 전체 및 읽지 않은 메시지 수, 자동 분류 규칙과 함께 나열합니다. 페이지네이션: 결과에 pagination {offset, limit, returned, total?, has_more, next_offset}이 포함됩니다.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
반환값{data: [{id, name, color, totalCount, unreadCount, rules: [...]}], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_labels",
  "arguments": {}
}
읽기 전용get_label
GET /labels/:label_id

라벨 조회

메시지 수와 자동 분류 규칙이 포함된 라벨 하나를 조회합니다.

매개변수타입필수설명
label_idstring예라벨 ID(lbl_로 시작) 또는 정확한 라벨 이름. (최대 128자)
반환값Label object.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_label",
  "arguments": {
    "label_id": "Billing"
  }
}
상태 변경create_label
POST /labels

라벨 생성

폴더 형태의 라벨을 생성합니다. skip_inbox: true를 설정하면 에이전트가 소유하는 버킷이 됩니다. labels: [name]으로 발송하면 답장이 해당 라벨로 분류되고 받은편지함에는 들어오지 않습니다. 선택 사항인 자동 분류 규칙은 새로 발송하거나 수신한 메일을 분류합니다(규칙의 모든 조건이 일치해야 함). 보관 중인 메일도 분류하려면 apply_to_existing을 설정하세요.

매개변수타입필수설명
namestring예라벨 이름. 예: Billing 또는 Clients/Acme. 워크스페이스 안에서 고유해야 합니다(대소문자 구분 없음). (최대 64자)
colorstring아니요#1a73e8 같은 16진수 색상. 선택 사항.
skip_inboxboolean아니요버킷 모드: 이 라벨이 붙는 수신 메일(규칙, 이 라벨로 발송한 대화에 대한 답장, 수동 추가 중 어느 경우든)은 보관 처리되어 받은편지함이 아닌 라벨에만 표시됩니다.
rulesobject[]아니요선택 사항인 자동 분류 규칙(최대 20개). 각 규칙에는 inbox_id, from, to, subject 중 하나 이상이 필요합니다. (0–20개 항목)
rules[].directionstring아니요in(수신) 또는 out(발신) 메일만. 생략하면 둘 다. (다음 중 하나: in, out)
rules[].inbox_idstring아니요이 수신함(inb_…)이 받은 메일만. 수신 주소마다 별도의 폴더로 분류합니다.
rules[].fromstring아니요발신자가 이 텍스트를 포함합니다(대소문자 구분 없음). 예: @stripe.com. (최대 200자)
rules[].tostring아니요To/Cc가 이 텍스트를 포함합니다(대소문자 구분 없음). (최대 200자)
rules[].subjectstring아니요제목이 이 텍스트를 포함합니다(대소문자 구분 없음). (최대 200자)
rules[].skip_inboxboolean아니요일치하는 수신 메일을 보관 처리해 받은편지함이 아닌 라벨 폴더에만 표시합니다.
apply_to_existingboolean아니요규칙과 일치하는, 이미 보관 중인 메일도 분류합니다.
반환값The created label with rules.
tools/call params 예시
{
  "name": "create_label",
  "arguments": {
    "name": "Agent/Orders",
    "skip_inbox": true,
    "rules": [
      {
        "from": "@stripe.com"
      }
    ]
  }
}
상태 변경update_label
PATCH /labels/:label_id

라벨 이름 변경, 색상 변경, 버킷 전환

라벨 이름을 바꾸거나, 색상을 변경하거나, 버킷 모드(skip_inbox)를 전환합니다. 버킷 모드를 켜면 이미 라벨에 있는 수신 메일도 보관 처리됩니다.

매개변수타입필수설명
label_idstring예라벨 ID(lbl_로 시작) 또는 정확한 라벨 이름. (최대 128자)
namestring아니요새 이름. (최대 64자)
colorstring아니요새 16진수 색상.
skip_inboxboolean아니요버킷 모드: 이 라벨이 붙는 수신 메일(규칙, 이 라벨로 발송한 대화에 대한 답장, 수동 추가 중 어느 경우든)은 보관 처리되어 받은편지함이 아닌 라벨에만 표시됩니다.
반환값Updated label.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "update_label",
  "arguments": {
    "label_id": "lbl_123",
    "name": "Finance/Billing"
  }
}
파괴적 작업delete_label
DELETE /labels/:label_id

라벨 삭제

DESTRUCTIVE(파괴적 작업): 라벨과 그 규칙을 삭제합니다. 이메일 자체는 유지되며 이 라벨만 사라집니다.

매개변수타입필수설명
label_idstring예라벨 ID(lbl_로 시작) 또는 정확한 라벨 이름. (최대 128자)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_label",
  "arguments": {
    "label_id": "lbl_123"
  }
}
상태 변경create_label_rule
POST /labels/:label_id/rules

자동 분류 규칙 추가

라벨에 규칙을 추가해 조건에 맞는 새 메일이 자동으로 분류되게 합니다. 설정한 모든 조건이 일치해야 합니다. 수신 주소마다 별도 폴더를 만들려면 inbox_id를 사용하고, 받은편지함에 들어오지 않게 하려면 skip_inbox를 추가하세요.

매개변수타입필수설명
label_idstring예라벨 ID(lbl_로 시작) 또는 정확한 라벨 이름. (최대 128자)
directionstring아니요in(수신) 또는 out(발신) 메일만. 생략하면 둘 다. (다음 중 하나: in, out)
inbox_idstring아니요이 수신함(inb_…)이 받은 메일만. 수신 주소마다 별도의 폴더로 분류합니다.
fromstring아니요발신자가 이 텍스트를 포함합니다(대소문자 구분 없음). 예: @stripe.com. (최대 200자)
tostring아니요To/Cc가 이 텍스트를 포함합니다(대소문자 구분 없음). (최대 200자)
subjectstring아니요제목이 이 텍스트를 포함합니다(대소문자 구분 없음). (최대 200자)
skip_inboxboolean아니요일치하는 수신 메일을 보관 처리해 받은편지함이 아닌 라벨 폴더에만 표시합니다.
apply_to_existingboolean아니요조건에 일치하는, 이미 보관 중인 메일도 분류합니다.
반환값{id: lrule_…, labelId, direction, inboxId, from, to, subject, skipInbox}.
tools/call params 예시
{
  "name": "create_label_rule",
  "arguments": {
    "label_id": "Billing",
    "inbox_id": "inb_123",
    "skip_inbox": true
  }
}
파괴적 작업delete_label_rule
DELETE /labels/:label_id/rules/:rule_id

자동 분류 규칙 삭제

DESTRUCTIVE(파괴적 작업): 자동 분류 규칙 하나를 제거합니다. 이미 분류된 메일은 라벨이 유지됩니다.

매개변수타입필수설명
label_idstring예라벨 ID(lbl_로 시작) 또는 정확한 라벨 이름. (최대 128자)
rule_idstring예규칙 ID(lrule_로 시작). get_label에서 가져옵니다. (최대 128자)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_label_rule",
  "arguments": {
    "label_id": "lbl_123",
    "rule_id": "lrule_123"
  }
}
상태 변경label_email
POST /emails/:email_id/labels

이메일에 라벨 추가 또는 제거

메시지를 폴더 사이에서 이동합니다. 이름 또는 lbl_… ID로 라벨을 추가하거나 제거하세요. add의 알 수 없는 이름은 create가 false가 아닌 한 새로 생성됩니다.

매개변수타입필수설명
email_idstring예이메일 ID(em_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
addstring[]아니요추가할 라벨. (0–10개 항목)
removestring[]아니요제거할 라벨. (0–10개 항목)
createboolean아니요add의 알 수 없는 라벨을 생성합니다(기본값 true).
반환값The updated email with labels.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "label_email",
  "arguments": {
    "email_id": "em_123",
    "add": [
      "Billing"
    ],
    "remove": [
      "Support"
    ]
  }
}

초안, 첨부 파일, 발신 ID

읽기 전용list_sending_identities
GET /sending-identities

검증된 발신 ID 목록 조회

이 워크스페이스가 지금 발신할 수 있는 주소와 도메인(검증된 도메인, 기본 From, 활성 수신함 주소)입니다. 유효한 from을 고르려면 send_email 전에 호출하세요.

매개변수 없음.

반환값{domains: [verified domain names], addresses: [sender addresses], localParts: [...]}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_sending_identities",
  "arguments": {}
}
상태 변경create_draft
POST /drafts

초안 생성

작성기 초안을 생성합니다. 초안에는 첨부 파일이 들어갑니다. 초안을 만들고, upload_attachment를 호출한 뒤, draft_id와 함께 send_email을 호출하세요. 아무것도 발송하지 않습니다.

매개변수타입필수설명
fromstring아니요검증된 도메인의 발신 주소(초안 작성 중에는 비워 둘 수 있음).
tostring[]아니요수신자. (0–100개 항목)
ccstring[]아니요참조(Cc) 수신자. (0–100개 항목)
bccstring[]아니요숨은 참조(Bcc) 수신자. (0–100개 항목)
subjectstring아니요제목. (최대 998자)
htmlstring아니요HTML 본문.
textstring아니요일반 텍스트 본문.
reply_to_email_idstring아니요이 초안이 답장하는 이메일 ID.
thread_idstring아니요이 초안이 속한 스레드 ID.
반환값Draft object {id: dr_…, from, to, cc, bcc, subject, html, text, attachments: []}.
tools/call params 예시
{
  "name": "create_draft",
  "arguments": {
    "from": "hello@example.com",
    "to": [
      "owner@example.com"
    ],
    "subject": "Invoice"
  }
}
읽기 전용list_drafts
GET /drafts

초안 목록 조회

작성기 초안을 최근 업데이트순으로 나열합니다. 페이지네이션: 결과에 pagination {offset, limit, returned, total?, has_more, next_offset}이 포함됩니다.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
반환값{data: [drafts], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_drafts",
  "arguments": {}
}
읽기 전용get_draft
GET /drafts/:draft_id

초안 조회

첨부 파일 메타데이터가 포함된 초안 하나를 조회합니다.

매개변수타입필수설명
draft_idstring예초안 ID(dr_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값Draft object with attachments.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_draft",
  "arguments": {
    "draft_id": "dr_123"
  }
}
상태 변경update_draft
PUT /drafts/:draft_id

초안 내용 교체

초안의 내용과 수신자를 교체합니다. 전체 교체이므로 생략한 필드는 지워집니다. 먼저 get_draft를 읽고 유지하려는 모든 필드를 함께 보내세요. 첨부 파일은 영향을 받지 않습니다.

매개변수타입필수설명
draft_idstring예초안 ID(dr_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
fromstring아니요검증된 도메인의 발신 주소(초안 작성 중에는 비워 둘 수 있음).
tostring[]아니요수신자. (0–100개 항목)
ccstring[]아니요참조(Cc) 수신자. (0–100개 항목)
bccstring[]아니요숨은 참조(Bcc) 수신자. (0–100개 항목)
subjectstring아니요제목. (최대 998자)
htmlstring아니요HTML 본문.
textstring아니요일반 텍스트 본문.
reply_to_email_idstring아니요이 초안이 답장하는 이메일 ID.
thread_idstring아니요이 초안이 속한 스레드 ID.
반환값Updated draft object.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "update_draft",
  "arguments": {
    "draft_id": "dr_123",
    "from": "hello@example.com",
    "to": [
      "owner@example.com"
    ],
    "subject": "Invoice (updated)",
    "text": "Attached."
  }
}
파괴적 작업delete_draft
DELETE /drafts/:draft_id

초안 폐기

DESTRUCTIVE(파괴적 작업): 초안을 폐기하고 저장된 첨부 파일을 영구 삭제합니다.

매개변수타입필수설명
draft_idstring예초안 ID(dr_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_draft",
  "arguments": {
    "draft_id": "dr_123"
  }
}
상태 변경upload_attachment
POST /drafts/:draft_id/attachments

초안에 첨부 파일 업로드

초안에 파일 하나를 업로드합니다(메시지당 최대 10개 파일, 총 10 MB). content_base64 또는 로컬 file_path를 지정하세요. 첨부 파일은 발송 시점에 유료 요금제가 필요합니다.

다음 중 하나 이상을 지정하세요: content_base64, file_path.

매개변수타입필수설명
draft_idstring예초안 ID(dr_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
filenamestring아니요수신자에게 표시되는 파일 이름. 기본값은 file_path의 basename입니다. (최대 255자)
content_typestring아니요MIME 타입. 예: application/pdf. 기본값은 application/octet-stream입니다.
content_base64string아니요표준 base64 파일 내용.
file_pathstring아니요MCP 서버 프로세스가 읽을 수 있는 로컬 파일의 절대 경로.
반환값{id: att_…, filename, contentType, sizeBytes, available}.
tools/call params 예시
{
  "name": "upload_attachment",
  "arguments": {
    "draft_id": "dr_123",
    "filename": "invoice.pdf",
    "content_type": "application/pdf",
    "file_path": "/tmp/invoice.pdf"
  }
}
읽기 전용download_attachment
GET /attachments/:attachment_id

첨부 파일 다운로드

비공개 첨부 파일(발신, 수신 또는 초안)을 다운로드합니다. base64 내용을 반환하거나, save_to_path가 설정되면 파일로 씁니다(overwrite가 true가 아니면 덮어쓰기를 거부).

매개변수타입필수설명
attachment_idstring예첨부 파일 ID(att_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
save_to_pathstring아니요base64를 반환하는 대신 파일을 쓸 로컬 절대 경로(선택 사항).
overwriteboolean아니요save_to_path에 있는 기존 파일을 교체하도록 허용합니다. 기본값은 false입니다.
반환값{attachment_id, filename, content_type, size_bytes, content_base64} or {attachment_id, filename, content_type, size_bytes, saved_to}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "download_attachment",
  "arguments": {
    "attachment_id": "att_123",
    "save_to_path": "/tmp/invoice.pdf"
  }
}
파괴적 작업delete_attachment
DELETE /attachments/:attachment_id

첨부 파일 삭제

DESTRUCTIVE(파괴적 작업): 저장된 첨부 파일을 영구 삭제합니다(예: 발송 전에 초안에서 파일 제거).

매개변수타입필수설명
attachment_idstring예첨부 파일 ID(att_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_attachment",
  "arguments": {
    "attachment_id": "att_123"
  }
}

호스팅 템플릿

읽기 전용list_templates
GET /templates

호스팅 템플릿 목록 조회

게시 상태와 사용 현황이 포함된 호스팅 이메일 템플릿을 나열합니다. 페이지네이션: 결과에 pagination {offset, limit, returned, total?, has_more, next_offset}이 포함됩니다.

매개변수타입필수설명
lifecyclestring아니요active(기본값), archived, all. (다음 중 하나: active, archived, all)
querystring아니요이름 또는 키로 검색. (최대 120자)
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
반환값{data: [templates], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_templates",
  "arguments": {
    "lifecycle": "active"
  }
}
상태 변경create_template
POST /templates

호스팅 템플릿 생성

편집 가능한 초안이 있는 템플릿을 생성하며, 선택적으로 스타터(welcome, reset, receipt, blank)에서 시작할 수 있습니다. 키로 발송하기 전에 게시하세요.

매개변수타입필수설명
namestring예사람이 읽는 이름. (최대 120자)
keystring아니요고정된 발송 키: 소문자, 숫자, 하이픈이며 영문자로 시작합니다(2–64자). 생략하면 이름에서 만들어집니다.
starterstring아니요스타터 콘텐츠. (다음 중 하나: blank, welcome, reset, receipt)
반환값{template, draft, activeVersion, versions, usage}.
tools/call params 예시
{
  "name": "create_template",
  "arguments": {
    "name": "Account welcome",
    "key": "account-welcome",
    "starter": "welcome"
  }
}
읽기 전용get_template
GET /templates/:template_id

템플릿 조회

템플릿의 현재 초안(revision 포함), 활성 게시 릴리스, 릴리스 이력, 사용 현황을 조회합니다. ID 또는 키를 받습니다.

매개변수타입필수설명
template_idstring예템플릿 ID(tmpl_…) 또는 키. (최대 128자)
반환값{template, draft: {id, revision, subjectTemplate, htmlTemplate, textTemplate, variables, sampleData, …} | null, activeVersion, versions, usage}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_template",
  "arguments": {
    "template_id": "account-welcome"
  }
}
상태 변경update_template_draft
PUT /templates/:template_id/draft

템플릿 초안 저장

낙관적 동시성으로 템플릿의 편집 가능한 초안을 저장합니다. get_template에서 가져온 현재 revision을 전달하세요(409는 다른 사람이 먼저 저장했다는 뜻이므로 다시 읽고 재시도). 초안 내용의 전체 교체이므로 생략한 필드는 지워집니다. 유지하려는 모든 필드를 함께 보내세요. {{variable}} 자리 표시자를 사용하세요.

매개변수타입필수설명
template_idstring예템플릿 ID 또는 키. (최대 128자)
revisioninteger예get_template에서 가져온 현재 초안 리비전. (1–…)
namestring아니요템플릿 이름. (최대 120자)
subject_templatestring아니요자리 표시자가 포함된 제목. (최대 998자)
preheader_templatestring아니요미리 보기 텍스트. (최대 240자)
html_templatestring아니요자리 표시자가 포함된 HTML 본문.
text_templatestring아니요자리 표시자가 포함된 일반 텍스트 본문.
fromstring아니요이 템플릿으로 발송할 때의 기본 발신자.
reply_tostring아니요기본 Reply-To.
variablesobject[]아니요타입이 지정된 변수 계약. 각 항목: {key(소문자/밑줄), label, type: text|number|url|boolean, required(기본값 true), fallback, description}.
variables[].keystring예
variables[].labelstring아니요
variables[].typestring아니요(다음 중 하나: text, number, url, boolean)
variables[].requiredboolean아니요
variables[].fallbackany아니요
variables[].descriptionstring아니요
sample_dataobject아니요미리 보기와 테스트에 사용하는 샘플 값.
반환값{template, draft: {revision: next}, validation: {valid, findings}}.
tools/call params 예시
{
  "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
POST /templates/:template_id/draft

게시된 릴리스에서 새 초안 시작

현재 게시된 릴리스를 복사해 편집 가능한 새 초안을 생성합니다(이미 초안이 있거나 게시된 것이 없으면 409).

매개변수타입필수설명
template_idstring예템플릿 ID 또는 키. (최대 128자)
반환값{draft}.
tools/call params 예시
{
  "name": "create_template_draft",
  "arguments": {
    "template_id": "account-welcome"
  }
}
읽기 전용render_template
POST /templates/:template_id/render

템플릿 미리 보기 렌더링

초안, 게시된 릴리스 또는 특정 버전을 주어진 데이터로 렌더링해 서버의 실제 출력(subject, html, text)을 확인합니다. 발송하지 않습니다. 데이터가 변수 계약을 위반하면 findings와 함께 422를 반환합니다.

매개변수타입필수설명
template_idstring예템플릿 ID 또는 키. (최대 128자)
version_idstring아니요선택 사항인 버전 ID. 기본값은 초안이며, 없으면 게시된 릴리스입니다.
dataobject아니요변수 값. 기본값은 해당 버전의 샘플 데이터입니다.
반환값{subject, html, text, preheader, versionId, versionNumber, isDraft, findings}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "render_template",
  "arguments": {
    "template_id": "account-welcome",
    "data": {
      "first_name": "Asha"
    }
  }
}
실제 이메일 발송send_template_test
POST /templates/:template_id/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_idstring예템플릿 ID 또는 키. (최대 128자)
tostring[]예테스트 수신자. (1–100개 항목)
fromstring아니요검증된 도메인의 발신자. 기본값은 템플릿의 From입니다.
version_idstring아니요선택 사항인 버전 ID.
dataobject아니요변수 값. 기본값은 샘플 데이터입니다.
반환값{id: em_…, providerMessageId, threadId, isTest: true}.
tools/call params 예시
{
  "name": "send_template_test",
  "arguments": {
    "template_id": "account-welcome",
    "to": [
      "owner@example.com"
    ]
  }
}
상태 변경publish_template
POST /templates/:template_id/publish

템플릿 릴리스 게시

현재 초안을 template.key를 사용하는 send_email이 쓰게 될 변경 불가능한 릴리스로 게시합니다. 유효성 검사 오류가 있으면 422 findings로 실패하고, 이미 프로덕션에서 사용 중인 템플릿의 라이브 변수 계약을 깨뜨리는 경우 409로 실패합니다.

매개변수타입필수설명
template_idstring예템플릿 ID 또는 키. (최대 128자)
반환값{template, published}.
tools/call params 예시
{
  "name": "publish_template",
  "arguments": {
    "template_id": "account-welcome"
  }
}
상태 변경archive_template
POST /templates/:template_id/archive

템플릿 보관 처리

이 템플릿을 사용하는 새 발송을 중단합니다(이력은 유지되며 restore_template으로 되돌릴 수 있음). 이 키로 발송하는 모든 연동은 404로 실패하기 시작합니다.

매개변수타입필수설명
template_idstring예템플릿 ID 또는 키. (최대 128자)
반환값{template}.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "archive_template",
  "arguments": {
    "template_id": "account-welcome"
  }
}
상태 변경restore_template
POST /templates/:template_id/restore

보관된 템플릿 복원

보관된 템플릿을 다시 활성화합니다.

매개변수타입필수설명
template_idstring예템플릿 ID 또는 키. (최대 128자)
반환값{template}.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "restore_template",
  "arguments": {
    "template_id": "account-welcome"
  }
}

도메인과 DNS

읽기 전용list_domains
GET /domains

도메인 목록 조회

집계된 setup_status(verified | checking | pending), 레코드별 DNS 상태, 수신 상태와 함께 발신 도메인을 나열합니다. 느릴 수 있습니다. 검증되지 않은 도메인은 실시간으로 다시 확인합니다. 페이지네이션: 결과에 pagination {offset, limit, returned, total?, has_more, next_offset}이 포함됩니다.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
반환값{data: [레코드가 포함된 도메인], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_domains",
  "arguments": {}
}
읽기 전용get_domain
GET /domains/:domain_id

도메인 설정 세부 정보 조회

게시할 정확한 DNS 레코드(type, name, value), 공개 리졸버 두 곳에서 확인한 각 레코드의 실시간 상태, 해결 방법이 담긴 dns_issues, 수신 상태와 함께 도메인 하나를 조회합니다.

매개변수타입필수설명
domain_idstring예도메인 ID(dom_으로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값{id, name, status, setup_status, dns_propagating, records: [{type, name, value, verified, dns_state}], dns_issues: [{code, message, …}], inbound_domain, inbound_status}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_domain",
  "arguments": {
    "domain_id": "dom_123"
  }
}
상태 변경add_domain
POST /domains

발신 도메인 추가

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.

매개변수타입필수설명
namestring예example.com 또는 mail.example.com 같은 순수 도메인 이름. (최대 253자)
default_fromstring아니요이 도메인의 기본 발신 주소(선택 사항).
반환값{id: dom_…, name, status: pending, records: [...], ses: {configured}}.
tools/call params 예시
{
  "name": "add_domain",
  "arguments": {
    "name": "example.com"
  }
}
상태 변경verify_domain
POST /domains/:domain_id/verify

도메인 검증

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_idstring예도메인 ID(dom_으로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값{domain, checks: {ses, dkim, dkim_status}, status: verified|pending}.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "verify_domain",
  "arguments": {
    "domain_id": "dom_123"
  }
}
파괴적 작업delete_domain
DELETE /domains/:domain_id

도메인 삭제

DESTRUCTIVE(파괴적 작업): 수신 라우트를 포함해 도메인을 워크스페이스에서 제거합니다. 이후 이 도메인에서의 발송은 즉시 실패합니다. DNS 제공업체에 있는 DNS 레코드는 삭제하지 않습니다.

매개변수타입필수설명
domain_idstring예도메인 ID(dom_으로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_domain",
  "arguments": {
    "domain_id": "dom_123"
  }
}
읽기 전용get_dns_provider
GET /dns/provider

DNS 제공업체와 레코드 호스트 감지

도메인의 권한 있는 DNS 제공업체를 감지하고, 각 레코드에 대해 해당 제공업체에 입력할 상대 호스트, 권장 DMARC 레코드, 수신 MX 안내, 원클릭 설정(Domain Connect) 사용 가능 여부를 반환합니다.

매개변수타입필수설명
domain_idstring예도메인 ID(dom_으로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값{detectionStatus, detected, zone, nameservers, recordHosts: {recordId: host}, inbound, recommendations, authentication, providers: {domainConnect: {available, providerName}}}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_dns_provider",
  "arguments": {
    "domain_id": "dom_123"
  }
}

수신 이메일

상태 변경setup_inbound
POST /domains/:domain_id/inbound/setup

도메인의 수신 활성화

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_idstring예도메인 ID(dom_으로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값{domain: 수신 도메인, status: dns_pending|ready, record: {type: MX, name, value}}.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "setup_inbound",
  "arguments": {
    "domain_id": "dom_123"
  }
}
상태 변경verify_inbound
POST /domains/:domain_id/inbound/verify

수신 MX 검증

수신 MX 레코드를 다시 확인합니다. 공개 리졸버 두 곳 모두에서 레코드가 보이면 상태가 ready가 됩니다.

매개변수타입필수설명
domain_idstring예도메인 ID(dom_으로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값{domain, status: ready|dns_pending|propagating|checking, record}.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "verify_inbound",
  "arguments": {
    "domain_id": "dom_123"
  }
}
읽기 전용list_inboxes
GET /inboxes

수신 주소 목록 조회

수신 주소를 나열하며, 도메인 하나로 한정할 수도 있습니다. 페이지네이션: 결과에 pagination {offset, limit, returned, total?, has_more, next_offset}이 포함됩니다.

매개변수타입필수설명
domain_idstring아니요선택 사항인 도메인 ID 필터.
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
반환값{data: [{id, address, name, status, domainId}], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_inboxes",
  "arguments": {
    "domain_id": "dom_123"
  }
}
읽기 전용get_inbox
GET /inboxes/:inbox_id

수신함 조회

수신 주소 하나를 조회합니다.

매개변수타입필수설명
inbox_idstring예수신함 ID(inb_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값수신함 객체.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_inbox",
  "arguments": {
    "inbox_id": "inb_123"
  }
}
상태 변경create_inbox
POST /inboxes

수신 주소 생성

수신 상태가 ready인 도메인에 support@<receiving domain> 같은 주소를 생성합니다(먼저 setup_inbound와 verify_inbound를 실행하세요). 수신한 메일은 direction in으로 list_emails에 나타납니다.

매개변수타입필수설명
domain_idstring예도메인 ID(dom_으로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
local_partstring예@ 앞부분. 예: support. (최대 64자)
namestring아니요선택 사항인 표시 이름.
반환값{id: inb_…, address, name, status: active}.
tools/call params 예시
{
  "name": "create_inbox",
  "arguments": {
    "domain_id": "dom_123",
    "local_part": "support",
    "name": "Support"
  }
}
상태 변경update_inbox
PATCH /inboxes/:inbox_id

수신함 이름 변경, 활성화 또는 비활성화

수신함 이름을 바꾸거나 상태를 active / disabled로 설정합니다.

매개변수타입필수설명
inbox_idstring예수신함 ID(inb_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
namestring아니요새 표시 이름.
statusstring아니요새 상태. (다음 중 하나: active, disabled)
반환값업데이트된 수신함.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "update_inbox",
  "arguments": {
    "inbox_id": "inb_123",
    "status": "disabled"
  }
}
실제 이메일 발송set_inbox_forwarding
PUT /inboxes/:inbox_id/forwarding

수신함을 다른 주소로 전달

SENDS REAL EMAIL(실제 이메일이 발송됩니다) - 계정 소유자가 아닌 다른 사람에게 전달하도록 설정하는 경우: 수신함이 받은 메일을 전달할 곳을 설정합니다. 소유자 본인의 주소는 즉시 활성화되고, 그 밖의 주소에는 확인 이메일이 발송되며 그곳에서 누군가 확인할 때까지 전달 상태는 pending으로 유지됩니다. 전달을 끄려면 forward_to: null을 전달하세요. 전달된 사본은 수신함 주소에서 발송되며 원래 발신자가 Reply-To로 지정됩니다.

매개변수타입필수설명
inbox_idstring예수신함 ID(inb_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
forward_tostring,null예전달 대상 이메일 주소. 전달을 끄려면 null. (최대 254자)
반환값forwardTo와 forwardStatus(off, pending, active)가 포함된 수신함.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "set_inbox_forwarding",
  "arguments": {
    "inbox_id": "inb_123",
    "forward_to": "team@example.net"
  }
}
파괴적 작업delete_inbox
DELETE /inboxes/:inbox_id

수신함 삭제

DESTRUCTIVE(파괴적 작업): 수신 주소를 삭제합니다. 이미 받은 메일은 보관되며, 이 주소로 오는 새 메일은 더 이상 그 수신함으로 분류되지 않습니다.

매개변수타입필수설명
inbox_idstring예수신함 ID(inb_로 시작). 목록 또는 생성 도구가 반환한 값. (최대 128자)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_inbox",
  "arguments": {
    "inbox_id": "inb_123"
  }
}

전달성, 반송, 발송 제외

읽기 전용deliverability_stats
GET /deliverability/stats

최근 30일 전송 통계 조회

워크스페이스 전체의 최근 30일 합계: sent, delivery, bounce, complaint, reject, open, click, deliveryRate(%).

매개변수 없음.

반환값{window: 30d, sent, delivery, bounce, complaint, reject, open, click, deliveryRate}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "deliverability_stats",
  "arguments": {}
}
Read-onlydeliverability_account
GET /deliverability/account

Get account delivery rates

Daily ladder, today's usage, 7-day hard-bounce and complaint rates against the promote, hold, and pause thresholds, and a per-day trend. Diagnostic text is plain text.

매개변수타입필수설명
daysinteger아니요(one of 7, 30, 90)
Returns{days, trend, rolling7d, thresholds, ladder}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "deliverability_account",
  "arguments": {
    "days": 30
  }
}
Read-onlydeliverability_domains
GET /deliverability/domains

Get domain delivery rates

Per sending domain: sent, delivered, hard and soft bounces, complaints, failures, rates, and an active Gmail cap or 4.7.28 backoff when one applies.

매개변수타입필수설명
daysinteger아니요
domainstring아니요
limitinteger아니요
offsetinteger아니요
Returns{days, data, count, limit, offset}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "deliverability_domains",
  "arguments": {
    "days": 30
  }
}
Read-onlydeliverability_senders
GET /deliverability/senders

Get sender delivery rates

Per From address: sent, delivered, hard and soft bounces, complaints, failures, and rates.

매개변수타입필수설명
daysinteger아니요
domainstring아니요
limitinteger아니요
offsetinteger아니요
Returns{days, data, count, limit, offset}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "deliverability_senders",
  "arguments": {
    "days": 30
  }
}
읽기 전용list_sender_reputation
GET /deliverability/reputation

발신자 평판 목록 조회

정확한 From 주소별 평판 상태: active, throttled(일일 한도 하향), paused(발송 시 423 반환), 그리고 사유와 일일 한도. 발송이 423 또는 429로 실패할 때 확인하세요. 페이지네이션: 결과에 pagination {offset, limit, returned, total?, has_more, next_offset}이 포함됩니다.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
반환값{data: [{sender, status, dailyLimit, reason, cleanSince, warnedAt, pausedAt, evaluatedAt}], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_sender_reputation",
  "arguments": {}
}
읽기 전용list_suppressions
GET /suppressions

발송 제외 목록 조회

워크스페이스 발송 제외 목록: 영구 반송 또는 스팸 신고 이후 차단된 수신자. 이들에게 보내는 발송은 422로 실패합니다. 페이지네이션: 결과에 pagination {offset, limit, returned, total?, has_more, next_offset}이 포함됩니다.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
반환값{data: [{email, reason, detail, created_at}], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_suppressions",
  "arguments": {}
}
파괴적 작업remove_suppression
DELETE /suppressions/:email

반송 발송 제외 삭제

DESTRUCTIVE(파괴적 작업, 안전 차단을 약화시킴): 해당 주소로 다시 메일을 보낼 수 있도록 반송 발송 제외를 삭제합니다. 사람이 그 주소가 이제 유효하다고 확인한 경우에만 수행하세요. 스팸 신고로 인한 발송 제외는 삭제할 수 없습니다(409).

매개변수타입필수설명
emailstring예발송 제외된 수신자 주소. (최대 320자)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "remove_suppression",
  "arguments": {
    "email": "fixed-mailbox@example.net"
  }
}
읽기 전용list_blocked_recipients
GET /blocked-recipients

차단된 수신자 목록 조회

SendHQ가 거부하는 모든 수신자: 반송, 스팸 신고, 도메인 단위 마케팅 수신 거부이며 유형별 요약이 포함됩니다. 최신 500건까지 읽습니다. 페이지네이션: 결과에 pagination {offset, limit, returned, total?, has_more, next_offset}이 포함됩니다.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
반환값{data: [{email, domain, kind: bounce|complaint|unsubscribe, reason, detail, source, status, created_at}], count, summary: {total, bounce, complaint, unsubscribe}, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_blocked_recipients",
  "arguments": {}
}

Campaigns

Read-onlylist_contacts
GET /contacts

List 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_idstring아니요Only members of this list (lst_…).
statusstring아니요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)
querystring아니요Email or name contains this text; * is a wildcard on the email. (max 200 chars)
tagstring아니요Only contacts with this tag. (max 60 chars)
sourcestring아니요How the contact was added. (one of form, api, import)
afterstring아니요Signed up at or after this time. ISO 8601 date or date-time. (max 40 chars)
beforestring아니요Signed up before this time. ISO 8601 date or date-time. (max 40 chars)
segment_idstring아니요Only contacts matching this saved segment (seg_…).
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
Returns{data: [contacts with tags, engagement, dormant, country], count, total, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_contacts",
  "arguments": {
    "status": "subscribed"
  }
}
Changes statecreate_contact
POST /contacts

Add 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.

매개변수타입필수설명
emailstring예Email address. (max 320 chars)
namestring아니요Display name; the first word is {{first_name}}. (max 200 chars)
fieldsobject아니요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.
tagsstring[]아니요Tags to attach, e.g. ["VIP"]. Up to 50. (0–50 items)
list_idsstring[]아니요Lists to add the contact to (lst_…). (0–100 items)
statusstring아니요subscribed (default, requires consent_basis) or unsubscribed. (one of subscribed, unsubscribed)
consent_basisstring아니요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)
ReturnsThe contact.
tools/call params 예시
{
  "name": "create_contact",
  "arguments": {
    "email": "ada@example.net",
    "name": "Ada Lovelace",
    "consent_basis": "Ticked the newsletter box at checkout on acme.com"
  }
}
Read-onlyget_contact
GET /contacts/:contact_id

Get 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_idstring예Contact ID (starts with ct_) or the contact's email address. (max 320 chars)
ReturnsThe contact.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_contact",
  "arguments": {
    "contact_id": "ct_123"
  }
}
Changes stateupdate_contact
PATCH /contacts/:contact_id

Update, 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_idstring예Contact ID (starts with ct_) or the contact's email address. (max 320 chars)
namestring아니요New display name. (max 200 chars)
fieldsobject아니요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.
tagsstring[]아니요Replace all of the contact's tags with these. (0–50 items)
add_tagsstring[]아니요Tags to add. (0–50 items)
remove_tagsstring[]아니요Tags to remove. (0–50 items)
statusstring아니요Only unsubscribed is accepted. (one of unsubscribed)
ReturnsThe updated contact.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "update_contact",
  "arguments": {
    "contact_id": "ct_123",
    "fields": {
      "plan": "team"
    }
  }
}
Destructivedelete_contact
DELETE /contacts/:contact_id

Delete 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_idstring예Contact ID (starts with ct_) or the contact's email address. (max 320 chars)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_contact",
  "arguments": {
    "contact_id": "ct_123"
  }
}
Changes stateimport_contacts
POST /contact-imports

Import 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.

매개변수타입필수설명
csvstring예The CSV file content, header row first. (max 5242880 chars)
list_idstring아니요Add every accepted row to this list (lst_…).
consent_basisstring예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)
tagsstring[]아니요Tags to add to every accepted row, e.g. ["imported-2026-11"]. (0–50 items)
update_existingboolean아니요Merge names and fields into contacts that already exist. Their status never changes.
Returns{id, accepted, created, existing, skipped, invalid, errors: [{line, reason}], tags}.
tools/call params 예시
{
  "name": "import_contacts",
  "arguments": {
    "csv": "email,name\nada@example.net,Ada Lovelace\n",
    "consent_basis": "Newsletter signups exported from Mailchimp (double opt-in)"
  }
}
Read-onlylist_contact_imports
GET /contact-imports

List contact imports

Campaigns: Recent CSV imports with their consent basis and row counts.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
Returns{data: [imports], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_contact_imports",
  "arguments": {}
}
Destructivebulk_update_contacts
POST /contacts/bulk

Bulk 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.

매개변수타입필수설명
actionstring예What to do. (one of tag, untag, add_to_list, remove_from_list, unsubscribe, delete)
contact_idsstring[]아니요Contact IDs (ct_…). Use this or filter. (0–10000 items)
filterobject아니요Everyone matching these list_contacts filters. Use this or contact_ids.
filter.list_idstring아니요Members of this list.
filter.statusstring아니요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.querystring아니요Email or name contains; * is an email wildcard. (max 200 chars)
filter.tagstring아니요Has this tag. (max 60 chars)
filter.sourcestring아니요How the contact was added. (one of form, api, import)
filter.afterstring아니요Signed up at or after. ISO 8601 date or date-time. (max 40 chars)
filter.beforestring아니요Signed up before. ISO 8601 date or date-time. (max 40 chars)
filter.segment_idstring아니요Matches this segment.
tagsstring[]아니요For tag and untag. (0–50 items)
list_idstring아니요For add_to_list and remove_from_list (lst_…).
confirm_countinteger아니요For delete: the number of contacts that will be deleted, from the 409 response. (0–…)
Returns{ok, action, count}; for an unconfirmed delete, a 409 error whose message gives the count.
AnnotationsdestructiveHint
tools/call params 예시
{
  "name": "bulk_update_contacts",
  "arguments": {
    "action": "tag",
    "tags": [
      "october"
    ],
    "filter": {
      "list_id": "lst_123",
      "status": "subscribed"
    }
  }
}
Read-onlylist_tags
GET /tags

List contact tags

Campaigns: The workspace's contact tags, most used first, with how many contacts carry each (up to 500). Paginated.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
Returns{data: [{tag, count}], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_tags",
  "arguments": {}
}
Read-onlylist_contact_fields
GET /contact-fields

List 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.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
Returns{data: [{key, label, type, createdAt}], count, types, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_contact_fields",
  "arguments": {}
}
Changes stateset_contact_field
PUT /contact-fields/:field_key

Define 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_keystring예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)
labelstring아니요Label shown in the dashboard. Defaults to the key. (max 80 chars)
typestring아니요text (default), number, or date. (one of text, number, date)
Returns{key, label, type, createdAt}.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "set_contact_field",
  "arguments": {
    "field_key": "plan",
    "label": "Plan",
    "type": "text"
  }
}
Destructivedelete_contact_field
DELETE /contact-fields/:field_key

Delete 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_keystring예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)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_contact_field",
  "arguments": {
    "field_key": "plan"
  }
}
Read-onlylist_segments
GET /segments

List 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.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
Returns{data: [{id, name, match, conditions, count}], count, fields, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_segments",
  "arguments": {}
}
Read-onlyget_segment
GET /segments/:segment_id

Get a segment

Campaigns: One segment with its conditions and live count.

매개변수타입필수설명
segment_idstring예Segment ID (starts with seg_), as returned by list_segments or create_segment. (max 128 chars)
Returns{id, name, match, conditions, count}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_segment",
  "arguments": {
    "segment_id": "seg_123"
  }
}
Read-onlypreview_segment
POST /segments/preview

Preview 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.

매개변수타입필수설명
matchstring아니요all (default): every condition must match. any: at least one. (one of all, any)
conditionsobject[]아니요Up to 20 conditions. Opened and clicked use bot-filtered, estimated engagement. (0–20 items)
conditions[].fieldstring예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[].keystring아니요Custom field key when field is field. (max 40 chars)
conditions[].opstring예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[].valuestring,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.
Returns{count, sample: [contacts]}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "preview_segment",
  "arguments": {
    "match": "all",
    "conditions": [
      {
        "field": "tag",
        "op": "has",
        "value": "VIP"
      },
      {
        "field": "opened",
        "op": "in_last_days",
        "value": 90
      }
    ]
  }
}
Changes statecreate_segment
POST /segments

Create 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.

매개변수타입필수설명
namestring예Segment name. (max 120 chars)
matchstring아니요all (default): every condition must match. any: at least one. (one of all, any)
conditionsobject[]아니요Up to 20 conditions. Opened and clicked use bot-filtered, estimated engagement. (0–20 items)
conditions[].fieldstring예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[].keystring아니요Custom field key when field is field. (max 40 chars)
conditions[].opstring예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[].valuestring,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.
ReturnsThe segment with its count.
tools/call params 예시
{
  "name": "create_segment",
  "arguments": {
    "name": "Engaged pro customers",
    "conditions": [
      {
        "field": "fields.plan",
        "op": "equals",
        "value": "pro"
      },
      {
        "field": "opened",
        "op": "in_last_days",
        "value": 90
      }
    ]
  }
}
Changes stateupdate_segment
PATCH /segments/:segment_id

Update 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_idstring예Segment ID (starts with seg_), as returned by list_segments or create_segment. (max 128 chars)
namestring아니요Segment name. (max 120 chars)
matchstring아니요all (default): every condition must match. any: at least one. (one of all, any)
conditionsobject[]아니요Up to 20 conditions. Opened and clicked use bot-filtered, estimated engagement. (0–20 items)
conditions[].fieldstring예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[].keystring아니요Custom field key when field is field. (max 40 chars)
conditions[].opstring예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[].valuestring,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.
ReturnsThe updated segment with its count.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "update_segment",
  "arguments": {
    "segment_id": "seg_123",
    "name": "Pro customers"
  }
}
Destructivedelete_segment
DELETE /segments/:segment_id

Delete 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_idstring예Segment ID (starts with seg_), as returned by list_segments or create_segment. (max 128 chars)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_segment",
  "arguments": {
    "segment_id": "seg_123"
  }
}
Read-onlylist_lists
GET /lists

List contact lists

Campaigns: Contact lists with subscribed, pending, and unsubscribed counts and their hosted signup form settings.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
Returns{data: [lists], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_lists",
  "arguments": {}
}
Changes statecreate_list
POST /lists

Create 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.

매개변수타입필수설명
namestring예List name, shown on the signup form. (max 200 chars)
descriptionstring아니요Short description shown on the signup form. (max 500 chars)
form_enabledboolean아니요Publish the hosted signup form.
form_fromstring아니요Sender of signup confirmation emails, e.g. Acme <news@example.com>, on a verified domain. (max 320 chars)
redirect_urlstring아니요https page to open after a signup is confirmed. (max 500 chars)
welcomeobject아니요Welcome email sent once, from form_from, when someone confirms a signup. Needs subject and html or markdown when enabled.
welcome.enabledboolean아니요Send it.
welcome.subjectstring아니요Subject; merge tags allowed. (max 300 chars)
welcome.htmlstring아니요HTML body; merge tags allowed. (max 500000 chars)
welcome.markdownstring아니요Markdown body instead of html, rendered with the workspace design. (max 200000 chars)
siteobject아니요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.enabledboolean아니요Publish the site.
site.slugstring,null아니요Address after /n/ (3-48 characters, a-z, 0-9, -). Defaults to the list name. (max 48 chars)
site.titlestring,null아니요Site title. Defaults to the list name. (max 120 chars)
site.descriptionstring,null아니요Short description under the title. (max 300 chars)
site.accentstring,null아니요Accent color, e.g. #0a7d4f.
ReturnsThe list.
tools/call params 예시
{
  "name": "create_list",
  "arguments": {
    "name": "Product updates"
  }
}
Read-onlyget_list
GET /lists/:list_id

Get a list

Campaigns: One list with member counts and signup form settings.

매개변수타입필수설명
list_idstring예List ID (starts with lst_), as returned by a list or create tool. (max 128 chars)
ReturnsThe list.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_list",
  "arguments": {
    "list_id": "lst_123"
  }
}
Changes stateupdate_list
PATCH /lists/:list_id

Update 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_idstring예List ID (starts with lst_), as returned by a list or create tool. (max 128 chars)
namestring아니요New name. (max 200 chars)
descriptionstring아니요New description. (max 500 chars)
form_enabledboolean아니요Publish or unpublish the hosted signup form.
form_fromstring아니요Sender of signup confirmation emails, on a verified domain. (max 320 chars)
redirect_urlstring아니요https page to open after a signup is confirmed. (max 500 chars)
welcomeobject아니요Welcome email sent once, from form_from, when someone confirms a signup. Needs subject and html or markdown when enabled.
welcome.enabledboolean아니요Send it.
welcome.subjectstring아니요Subject; merge tags allowed. (max 300 chars)
welcome.htmlstring아니요HTML body; merge tags allowed. (max 500000 chars)
welcome.markdownstring아니요Markdown body instead of html, rendered with the workspace design. (max 200000 chars)
siteobject아니요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.enabledboolean아니요Publish the site.
site.slugstring,null아니요Address after /n/ (3-48 characters, a-z, 0-9, -). Defaults to the list name. (max 48 chars)
site.titlestring,null아니요Site title. Defaults to the list name. (max 120 chars)
site.descriptionstring,null아니요Short description under the title. (max 300 chars)
site.accentstring,null아니요Accent color, e.g. #0a7d4f.
ReturnsThe updated list.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "update_list",
  "arguments": {
    "list_id": "lst_123",
    "form_enabled": false
  }
}
Destructivedelete_list
DELETE /lists/:list_id

Delete 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_idstring예List ID (starts with lst_), as returned by a list or create tool. (max 128 chars)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_list",
  "arguments": {
    "list_id": "lst_123"
  }
}
Changes stateadd_list_contacts
POST /lists/:list_id/contacts

Add 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_idstring예List ID (starts with lst_), as returned by a list or create tool. (max 128 chars)
contact_idsstring[]아니요Contact IDs (ct_…). (0–500 items)
emailsstring[]아니요Contact email addresses. (0–500 items)
Returns{listId, added, notFound, list}.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "add_list_contacts",
  "arguments": {
    "list_id": "lst_123",
    "emails": [
      "ada@example.net"
    ]
  }
}
Destructiveremove_list_contact
DELETE /lists/:list_id/contacts/:contact_id

Remove a contact from a list

DESTRUCTIVE: remove one contact from a list. The contact and its status are kept. Part of Campaigns.

매개변수타입필수설명
list_idstring예List ID (starts with lst_), as returned by a list or create tool. (max 128 chars)
contact_idstring예Contact ID (starts with ct_) or the contact's email address. (max 320 chars)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "remove_list_contact",
  "arguments": {
    "list_id": "lst_123",
    "contact_id": "ct_123"
  }
}
Read-onlylist_broadcasts
GET /broadcasts

List broadcasts

Campaigns: Newest-first broadcasts with their status. Paginated: the result includes pagination.

매개변수타입필수설명
statusstring아니요Only broadcasts with this status. (one of draft, sending, sent, cancelled, failed)
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
Returns{data: [broadcasts], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_broadcasts",
  "arguments": {}
}
Changes statecreate_broadcast
POST /broadcasts

Create 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.

매개변수타입필수설명
namestring아니요Internal name. Defaults to the subject. (max 200 chars)
list_idstring아니요The list to send to (lst_…).
fromstring아니요Sender on a verified domain, e.g. Acme <news@example.com>. (max 320 chars)
reply_tostring아니요Reply-To address. (max 320 chars)
subjectstring아니요Subject line; merge tags allowed. (max 998 chars)
preview_textstring아니요Inbox preview text shown after the subject. (max 300 chars)
htmlstring아니요HTML body; merge tags allowed and escaped.
textstring아니요Plain-text body; merge tags allowed.
templateobject아니요A published hosted template instead of subject/html/text. Template variables are filled from the contact's name, email, and fields.
template.idstring아니요
template.keystring아니요
template.version_idstring아니요
markdownstring아니요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)
contentobject,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.
editorstring아니요Which editor the dashboard opens: html or blocks. Set automatically for markdown and content. (one of html, blocks)
audienceobject아니요Who gets it, within the list. Subscribed, non-dormant members only.
audience.segment_idstring,null아니요Only list members matching this segment (seg_…), or null for the whole list.
audience.orderstring아니요With a limit: signup (default) or engaged (most engaged first). (one of signup, engaged)
audience.limitinteger,null아니요Send to at most this many people (send_broadcast_to_more sends to more later), or null for everyone. (1–10000000)
trackingobject아니요Open and click tracking, both on by default. Opens are estimates (bot-filtered pixel loads), never proof that someone read the email.
tracking.opensboolean아니요Add an open pixel.
tracking.clicksboolean아니요Rewrite links to signed SendHQ redirects (the unsubscribe link never is).
webobject아니요Publish this issue on the list's newsletter site (see create_list site) once it is sent.
web.enabledboolean아니요Publish it.
web.slugstring,null아니요Issue address; defaults to the subject. (max 100 chars)
web.pinnedboolean아니요Keep it at the top of the site.
ReturnsThe draft broadcast.
tools/call params 예시
{
  "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
    }
  }
}
Read-onlyget_broadcast
GET /broadcasts/:broadcast_id

Get 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
ReturnsThe broadcast.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_broadcast",
  "arguments": {
    "broadcast_id": "bc_123"
  }
}
Changes stateupdate_broadcast
PATCH /broadcasts/:broadcast_id

Edit 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
namestring아니요Internal name. (max 200 chars)
list_idstring아니요The list to send to.
fromstring아니요Sender on a verified domain. (max 320 chars)
reply_tostring아니요Reply-To address. (max 320 chars)
subjectstring아니요제목. (최대 998자)
preview_textstring아니요Inbox preview text. (max 300 chars)
htmlstring아니요HTML 본문.
textstring아니요일반 텍스트 본문.
templateobject,null아니요A published hosted template, or null to remove it.
markdownstring아니요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)
contentobject,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.
editorstring아니요Which editor the dashboard opens: html or blocks. Set automatically for markdown and content. (one of html, blocks)
audienceobject아니요Who gets it, within the list. Subscribed, non-dormant members only.
audience.segment_idstring,null아니요Only list members matching this segment (seg_…), or null for the whole list.
audience.orderstring아니요With a limit: signup (default) or engaged (most engaged first). (one of signup, engaged)
audience.limitinteger,null아니요Send to at most this many people (send_broadcast_to_more sends to more later), or null for everyone. (1–10000000)
trackingobject아니요Open and click tracking, both on by default. Opens are estimates (bot-filtered pixel loads), never proof that someone read the email.
tracking.opensboolean아니요Add an open pixel.
tracking.clicksboolean아니요Rewrite links to signed SendHQ redirects (the unsubscribe link never is).
webobject아니요Publish this issue on the list's newsletter site (see create_list site) once it is sent.
web.enabledboolean아니요Publish it.
web.slugstring,null아니요Issue address; defaults to the subject. (max 100 chars)
web.pinnedboolean아니요Keep it at the top of the site.
ReturnsThe updated draft.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "update_broadcast",
  "arguments": {
    "broadcast_id": "bc_123",
    "subject": "October product update"
  }
}
Destructivedelete_broadcast
DELETE /broadcasts/:broadcast_id

Delete a draft broadcast

DESTRUCTIVE: permanently delete a draft broadcast. Broadcasts that were sent cannot be deleted. Part of Campaigns.

매개변수타입필수설명
broadcast_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
반환값{ok: true}.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "delete_broadcast",
  "arguments": {
    "broadcast_id": "bc_123"
  }
}
Sends real emailsend_broadcast
POST /broadcasts/:broadcast_id/send

Send 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
idempotency_keystring아니요Idempotency-Key 헤더(최대 200자). 이 요청을 그대로 재시도할 때만 재사용하세요. (최대 200자)
ReturnsThe broadcast with status sending and totals.
tools/call params 예시
{
  "name": "send_broadcast",
  "arguments": {
    "broadcast_id": "bc_123",
    "idempotency_key": "october-update"
  }
}
Destructivecancel_broadcast
POST /broadcasts/:broadcast_id/cancel

Cancel 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
ReturnsThe cancelled broadcast with totals.
어노테이션destructiveHint idempotentHint
tools/call params 예시
{
  "name": "cancel_broadcast",
  "arguments": {
    "broadcast_id": "bc_123"
  }
}
Read-onlylist_broadcast_recipients
GET /broadcasts/:broadcast_id/recipients

List 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
statusstring아니요Only recipients with this outcome. (one of queued, sending, sent, held, skipped, failed)
activitystring아니요Only recipients who did this. (one of opened, clicked, not_opened, not_delivered, bounced, complained, unsubscribed)
querystring아니요Recipient email contains this text. (max 200 chars)
includestring아니요links adds the links each recipient clicked (implied by activity: clicked). (one of links)
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
Returns{data: [{contactId, email, status, skipReason, emailId, error, provider, deliveredAt, openedAt, clickedAt, opens, clicks, bouncedAt, complainedAt, unsubscribedAt, links?}], count, totals, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_broadcast_recipients",
  "arguments": {
    "broadcast_id": "bc_123",
    "status": "failed"
  }
}
Read-onlycheck_broadcast
GET /broadcasts/:broadcast_id/checks

Run 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
Returns{ready, checks: [{id, level: ok|warn|block, label, detail}], audience: {total, matching}}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "check_broadcast",
  "arguments": {
    "broadcast_id": "bc_123"
  }
}
Sends real emailsend_broadcast_test
POST /broadcasts/:broadcast_id/test

Send 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
tostring[]아니요Test recipients (up to 5). (1–5 items)
contact_idstring아니요Fill merge tags from this contact (ct_…). (max 320 chars)
rememberboolean아니요Save to as the default test recipients.
Returns{data: [{to, id, status: sent|failed, error?}]}.
tools/call params 예시
{
  "name": "send_broadcast_test",
  "arguments": {
    "broadcast_id": "bc_123",
    "to": [
      "owner@example.com"
    ]
  }
}
Sends real emailschedule_broadcast
POST /broadcasts/:broadcast_id/schedule

Schedule 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
scheduled_atstring예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)
ReturnsThe broadcast with scheduledAt.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "schedule_broadcast",
  "arguments": {
    "broadcast_id": "bc_123",
    "scheduled_at": "2026-11-10T09:00:00Z"
  }
}
Changes stateunschedule_broadcast
POST /broadcasts/:broadcast_id/unschedule

Unschedule 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
ReturnsThe draft broadcast.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "unschedule_broadcast",
  "arguments": {
    "broadcast_id": "bc_123"
  }
}
Changes stateduplicate_broadcast
POST /broadcasts/:broadcast_id/duplicate

Duplicate 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
ReturnsThe new draft broadcast.
tools/call params 예시
{
  "name": "duplicate_broadcast",
  "arguments": {
    "broadcast_id": "bc_123"
  }
}
Sends real emailsend_broadcast_to_more
POST /broadcasts/:broadcast_id/send-more

Send 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
limitinteger예How many more people at most. (1–10000000)
idempotency_keystring아니요Idempotency-Key 헤더(최대 200자). 이 요청을 그대로 재시도할 때만 재사용하세요. (최대 200자)
Returns{added, broadcast}.
tools/call params 예시
{
  "name": "send_broadcast_to_more",
  "arguments": {
    "broadcast_id": "bc_123",
    "limit": 500,
    "idempotency_key": "october-update-more-1"
  }
}
Read-onlyget_broadcast_report
GET /broadcasts/:broadcast_id/report

Get 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_idstring예Broadcast ID (starts with bc_), as returned by a list or create tool. (max 128 chars)
Returns{stats: {sent, delivered, opened, clicked, bounced, complained, unsubscribed, opens, clicks, rates}, providers, links, timeline, average, machine, tracking, totals, remaining}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_broadcast_report",
  "arguments": {
    "broadcast_id": "bc_123"
  }
}
Read-onlyget_newsletter_settings
GET /newsletter-settings

Get 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.

매개변수 없음.

Returns{postalAddress, design: {accentColor, font, align}, cleanup: {enabled, afterSends, quietDays, subject, body, from}, testRecipients}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_newsletter_settings",
  "arguments": {}
}
Changes stateupdate_newsletter_settings
PATCH /newsletter-settings

Update 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_addressstring아니요Sender's postal address for the footer. Empty string removes it. (max 300 chars)
designobject아니요Rendering design for Markdown and block content.
design.accentColorstring,null아니요Hex color like #0a7d4f, or null for the default.
design.fontstring아니요Font family. (one of sans, serif, mono)
design.alignstring아니요Text alignment. (one of left, center)
cleanupobject아니요List cleanup of readers who stopped opening.
cleanup.enabledboolean아니요Turn list cleanup on or off.
cleanup.afterSendsinteger아니요Broadcasts in a row without an open or click (3-50). (3–50)
cleanup.quietDaysinteger아니요Days without engagement (30-730). (30–730)
cleanup.subjectstring,null아니요Subject of the cleanup email; merge tags allowed. (max 200 chars)
cleanup.bodystring,null아니요Body text of the cleanup email. (max 2000 chars)
cleanup.fromstring,null아니요Sender on a verified domain. Defaults to the last sent broadcast's sender. (max 320 chars)
test_recipientsstring[]아니요Default addresses for send_broadcast_test (up to 5). (0–5 items)
ReturnsThe updated settings.
어노테이션idempotentHint
tools/call params 예시
{
  "name": "update_newsletter_settings",
  "arguments": {
    "postal_address": "Acme Inc., 1 Main St, Springfield",
    "design": {
      "accentColor": "#0a7d4f"
    }
  }
}
Read-onlyget_campaign_overview
GET /campaigns/overview

Get 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.

매개변수타입필수설명
daysinteger아니요Window in days, 7 to 365. Defaults to 30. (7–365)
Returns{subscribers: {active, dormant, pending, joined, left}, series: [{day, subscribers, joined, left}], recent: [{id, name, subject, status, startedAt, sent, openRate, clickRate}], averages}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_campaign_overview",
  "arguments": {
    "days": 30
  }
}
Read-onlylist_uploaded_images
GET /uploads/images

List 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.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
Returns{data: [{id, url, width, height, size, filename, createdAt}], pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_uploaded_images",
  "arguments": {}
}

계정, 사용량, 분석, 키

읽기 전용get_account
GET /account

계정, 사용량, 결제 정보 조회

계정 소유자 이메일, 요금제/액세스 등급, 현재 기간의 수신자 전달 수(사용량 대비 할당량), 도메인 사용량 대비 한도, 첨부 파일 전송량, 평판 요약, 구독 상태, 공개된 요금제, 워크스페이스 수. 남은 할당량이나 체험판이 전달할 수 있는 대상(계정 이메일)을 확인할 때 사용하세요.

매개변수 없음.

반환값{user: {email, …}, usage: {domainsUsed, domainLimit, recipientDeliveries, emailQuotaMonth, attachmentBytes, attachmentByteLimit, periodKey}, access: {tier, planCode}, reputation, infrastructure, billing: {status, subscriptions, …}, plans, workspace: {mailer, stats}}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_account",
  "arguments": {}
}
Read-onlyget_account_diagnostics
GET /account/diagnostics

Diagnose 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.

매개변수 없음.

Returns{generatedAt, windowDays, issues: [{severity, code, message}], plan: {tier, usage, sendingLimit}, domains: [{name, status, dkim: {required, verified, missing}, inbound}], sendingIdentities, inbound, deliverability: {sent, delivered, bounced, complained, rates, senders}, suppressions: {total, byReason, unsubscribes, recent}, failures: {notSent, recentNotSent, recentProviderEvents}, webhooks}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_account_diagnostics",
  "arguments": {}
}
읽기 전용get_analytics
GET /analytics

발송 분석 조회

최근 7일, 30일 또는 90일의 대시보드 분석: 발송/수신/전달/반송/차단/열람/클릭/스팸 신고 합계, 일별 타임라인, 상위 발신 도메인, 상위 제목.

매개변수타입필수설명
daysinteger아니요일 단위 기간: 7, 30(기본값) 또는 90. (다음 중 하나: 7, 30, 90)
반환값{window, days, metrics, timeline: [{day, sent, received}], domains, topContent}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_analytics",
  "arguments": {
    "days": 30
  }
}
읽기 전용list_api_keys
GET /keys

API 키 메타데이터 목록 조회

API 키 이름, 비밀이 아닌 접두사, 마지막 사용 시각을 나열합니다. 읽기 전용입니다. 이 MCP 서버는 키를 만들거나 교체하거나 폐기할 수 없으며, 이는 사람이 대시보드에서 수행합니다. 페이지네이션: 결과에 pagination {offset, limit, returned, total?, has_more, next_offset}이 포함됩니다.

매개변수타입필수설명
limitinteger아니요페이지 크기. 기본값은 50입니다. (기본값 50; 1–200)
offsetinteger아니요건너뛸 레코드 수. 이전 페이지의 pagination.next_offset을 사용하세요. (기본값 0; 0–…)
반환값{data: [{id, name, prefix, lastUsedAt, createdAt}], count, pagination}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "list_api_keys",
  "arguments": {}
}
읽기 전용get_service_health
GET /health

SendHQ 서비스 상태 확인

SendHQ API가 작동 중인지, 어떤 메일 제공업체가 활성화되어 있는지 확인합니다. 유효한 API 키가 필요하지 않습니다.

매개변수 없음.

반환값{ok, service, mailer}.
어노테이션readOnlyHint idempotentHint
tools/call params 예시
{
  "name": "get_service_health",
  "arguments": {}
}

API 지원 범위 목록

공개 API의 모든 작업과 이를 지원하는 도구입니다. 대시보드에서 사용자가 할 수 있고 API가 있는 모든 작업은 지원됩니다. 아래의 제외 항목은 의도적인 것입니다.

엔드포인트도구비고
POST /emailssend_email이메일 한 통 발송
POST /emails/batchsend_batch개별화된 메시지를 최대 100건까지 발송
GET /emailslist_emails발신 및 수신 이메일 목록 조회
GET /emails/:idget_email이메일과 첨부 파일 조회
PATCH /emails/:idmark_email읽음, 보관, 스팸, 카테고리, 중요도 업데이트
POST /emails/:id/labelslabel_email이메일에 라벨 추가 또는 제거
DELETE /emails/:iddelete_email보관 중인 이메일 삭제
GET /emails/:id/eventslist_email_events이메일의 전송 이벤트 목록 조회
GET /threads/:idget_thread대화를 시간순으로 조회
GET /labelslist_labels메시지 수와 분류 규칙이 포함된 라벨 목록 조회
POST /labelscreate_label라벨 생성(자동 분류 규칙 선택 지정 가능)
GET /labels/:idget_labelID 또는 이름으로 라벨 조회
PATCH /labels/:idupdate_label라벨 이름 변경, 색상 변경 또는 버킷으로 전환
DELETE /labels/:iddelete_label이메일은 삭제하지 않고 라벨만 삭제
POST /labels/:id/rulescreate_label_rule라벨에 자동 분류 규칙 추가
DELETE /labels/:id/rules/:rule_iddelete_label_rule자동 분류 규칙 삭제
POST /draftscreate_draft작성 화면 초안 생성
GET /draftslist_drafts작성 화면 초안 목록 조회
GET /drafts/:idget_draft초안과 첨부 파일 조회
PUT /drafts/:idupdate_draft초안 내용 교체
DELETE /drafts/:iddelete_draft초안 폐기
POST /drafts/:id/attachmentsupload_attachment초안에 첨부 파일 업로드
GET /attachments/:iddownload_attachment비공개 첨부 파일 다운로드
DELETE /attachments/:iddelete_attachment비공개 첨부 파일 삭제
GET /sending-identitieslist_sending_identities검증된 발신 ID 목록 조회
GET /templateslist_templates호스팅 템플릿 목록 조회
POST /templatescreate_template호스팅 템플릿 생성
GET /templates/:idget_template초안, 릴리스, 사용 현황 조회
PUT /templates/:id/draftupdate_template_draft템플릿 초안 자동 저장
POST /templates/:id/draftcreate_template_draft게시된 릴리스에서 새 초안 생성
POST /templates/:id/renderrender_template서버가 실제로 출력하는 결과 렌더링
POST /templates/:id/testsend_template_test테스트 스냅샷 발송
POST /templates/:id/publishpublish_template변경 불가능한 템플릿 릴리스 게시
POST /templates/:id/archivearchive_template템플릿 보관 처리
POST /templates/:id/restorerestore_template보관된 템플릿 복원
POST /domainsadd_domain발신 도메인 추가
GET /domainslist_domains도메인과 캐시된 DNS 상태 조회
GET /domains/:idget_domain도메인 설정 세부 정보 조회
POST /domains/:id/verifyverify_domainRefresh domain and DNS verification
POST /domains/:id/inbound/setupsetup_inboundProvision inbound receiving
POST /domains/:id/inbound/verifyverify_inbound수신 MX 라우팅 검증
DELETE /domains/:iddelete_domain도메인 삭제
GET /dns/providerget_dns_provider권한 있는 DNS 제공업체와 상대 레코드 호스트 감지
GET /dns/domain-connect/connectget_domain_connect_link원클릭 DNS 설정을 위한 Domain Connect 동의 링크 생성
POST /inboxescreate_inbox수신 주소 생성
GET /inboxeslist_inboxes수신 주소 목록 조회
GET /inboxes/:idget_inbox수신 주소 조회
PATCH /inboxes/:idupdate_inbox수신함 이름 변경, 활성화 또는 비활성화
PUT /inboxes/:id/forwardingset_inbox_forwarding수신함이 받은 메일을 다른 주소로 전달
DELETE /inboxes/:iddelete_inbox메시지는 보관한 채 수신함 삭제
GET /deliverability/statsdeliverability_stats최근 30일 전송 통계 조회
GET /deliverability/reputationlist_sender_reputation정확한 발신 ID별 평판 상태 조회
GET /deliverability/accountdeliverability_accountAccount delivery rates, daily ladder, and bounce trend
GET /deliverability/domainsdeliverability_domainsPer-domain sent, delivered, hard and soft bounces, complaints, and failures
GET /deliverability/sendersdeliverability_sendersPer-From-address delivery rates
GET /emails/:id/deliveryemail_deliveryDelivery timeline for one email, with bounce and complaint reasons
GET /threads/:id/deliverythread_deliveryPer-thread delivery counts and per-message failure reasons
GET /suppressionslist_suppressions워크스페이스의 발송 제외 목록 조회
DELETE /suppressions/:emailremove_suppression해제 가능한 반송 발송 제외 항목 삭제
GET /blocked-recipientslist_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 /contactslist_contactsList contacts
POST /contactscreate_contactAdd a contact with its consent basis
POST /contacts/bulkbulk_update_contactsTag, 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/:idget_contactRetrieve a contact by ID or email
PATCH /contacts/:idupdate_contactUpdate a contact's name, fields, or tags, or unsubscribe it
DELETE /contacts/:iddelete_contactDelete a contact and its list memberships
POST /contact-importsimport_contactsImport contacts from CSV
GET /contact-importslist_contact_importsList recent contact imports
GET /tagslist_tagsList contact tags with how many contacts carry each
GET /contact-fieldslist_contact_fieldsList custom contact field definitions
PUT /contact-fields/:keyset_contact_fieldDefine or change a custom contact field
DELETE /contact-fields/:keydelete_contact_fieldDelete a custom field definition
GET /segmentslist_segmentsList saved segments with live counts
POST /segmentscreate_segmentSave a segment
POST /segments/previewpreview_segmentCount and sample the contacts that match unsaved conditions
GET /segments/:idget_segmentRetrieve a segment and its live count
PATCH /segments/:idupdate_segmentRename a segment or change its conditions
DELETE /segments/:iddelete_segmentDelete a segment
GET /listslist_listsList contact lists with member counts
POST /listscreate_listCreate a list with an optional signup form, welcome email, and newsletter site
GET /lists/:idget_listRetrieve a list
PATCH /lists/:idupdate_listRename a list or change its signup form, welcome email, or site
DELETE /lists/:iddelete_listDelete a list without deleting its contacts
POST /lists/:id/contactsadd_list_contactsAdd existing contacts to a list
DELETE /lists/:id/contacts/:contact_idremove_list_contactRemove a contact from a list
GET /broadcastslist_broadcastsList broadcasts
POST /broadcastscreate_broadcastCreate a broadcast draft
GET /broadcasts/:idget_broadcastRetrieve a broadcast and its delivery totals
PATCH /broadcasts/:idupdate_broadcastEdit a draft broadcast
DELETE /broadcasts/:iddelete_broadcastDelete a draft broadcast
GET /broadcasts/:id/checkscheck_broadcastRun the pre-send checks for a broadcast
POST /broadcasts/:id/testsend_broadcast_testSend a test copy of a draft
POST /broadcasts/:id/scheduleschedule_broadcastSchedule a draft to send later
POST /broadcasts/:id/unscheduleunschedule_broadcastUnschedule a draft
POST /broadcasts/:id/duplicateduplicate_broadcastCopy a broadcast into a new draft
POST /broadcasts/:id/sendsend_broadcastSend a broadcast to its audience
POST /broadcasts/:id/send-moresend_broadcast_to_moreSend a sent broadcast to more of its audience
POST /broadcasts/:id/cancelcancel_broadcastCancel a draft or sending broadcast
GET /broadcasts/:id/recipientslist_broadcast_recipientsList a broadcast's recipients, outcomes, and engagement
GET /broadcasts/:id/reportget_broadcast_reportRetrieve a broadcast's engagement report
GET /campaigns/overviewget_campaign_overviewRetrieve subscriber growth and recent broadcast performance
GET /newsletter-settingsget_newsletter_settingsRetrieve newsletter settings
PATCH /newsletter-settingsupdate_newsletter_settingsChange 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/imageslist_uploaded_imagesList recently uploaded images
GET /accountget_accountAPI 키로 계정, 사용량, 결제 상태, 워크스페이스 수 조회
GET /account/diagnosticsget_account_diagnosticsDiagnose sending and receiving problems in the workspace
GET /analyticsget_analytics7일, 30일 또는 90일 기간의 대시보드 발송 분석 조회
GET /profileget_accountGET /account의 세션 전용 대응 항목입니다. MCP 서버는 API 키 경로를 읽습니다.
POST /billing/checkout노출되지 않음결제 변경은 설계상 세션 전용이며 대시보드에서 계정 소유자가 직접 수행해야 합니다. 결제 상태는 get_account로 읽을 수 있습니다.
POST /billing/cancel노출되지 않음결제 변경은 설계상 세션 전용이며 대시보드에서 계정 소유자가 직접 수행해야 합니다. 결제 상태는 get_account로 읽을 수 있습니다.
POST /keys노출되지 않음의도적으로 제외됨: 에이전트가 자격 증명을 발급하거나 파기해서는 안 됩니다. 키는 사람이 대시보드에서 관리합니다.
GET /keyslist_api_keysAPI 키 메타데이터 목록 조회
DELETE /keys/:id노출되지 않음의도적으로 제외됨: 에이전트가 자격 증명을 발급하거나 파기해서는 안 됩니다. 키는 사람이 대시보드에서 관리합니다.

의도적으로 제공하지 않는 기능

기능엔드포인트사유
API 키 생성, 교체, 폐기 또는 삭제POST /keys, DELETE /keys/:id의도적으로 제외됨: 에이전트가 자격 증명을 발급하거나 파기해서는 안 됩니다. 키는 사람이 대시보드에서 관리합니다.
결제 시작 또는 구독 취소POST /billing/checkout, POST /billing/cancel결제 변경은 설계상 세션 전용이며 대시보드에서 계정 소유자가 직접 수행해야 합니다. 결제 상태는 get_account로 읽을 수 있습니다.
Cloudflare 원클릭 DNS(OAuth)GET /api/dns/cloudflare/connect대화형 브라우저 세션과 Cloudflare OAuth 동의가 필요합니다. 대신 get_domain 레코드, get_dns_provider 호스트 또는 get_domain_connect_link를 사용하세요.
가입, 로그인, 로그아웃, Google 계정 연결/api/auth/*사람의 브라우저 인증입니다. MCP 서버는 API 키로 인증합니다.
지원 문의 양식POST /api/contact사람을 위한 공개 마케팅 사이트 양식이며 워크스페이스 작업이 아닙니다.
Webhook endpoints and deliveriesGET /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/retryWebhook 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 CSVPOST /uploads/images, GET /contacts/exportImage 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이 같은 카탈로그를 출력합니다.