SendHQ開発者向けドキュメント

結果が明確にわかるメールインフラ。

ドメインの検証、想定どおりのメール送信、返信の受信、型付きテンプレートの公開、配信状況の確認を、プロバイダーの状態を隠すことなく行えます。

メールを送信する
curl https://sendhq.cc/api/v1/emails \
  -H "Authorization: Bearer $SENDHQ_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: welcome-user-42" \
  -d '{"from":"Acme <hello@example.com>","to":["customer@example.net"],"subject":"Welcome","text":"Your workspace is ready."}'

目的から選ぶ

実現したい作業から始めましょう。

プロダクトガイド

個別のリクエストではなく、システム全体の流れを追えます。

はじめに

クイックスタート

キーを作成し、ドメインを検証し、再試行しても安全なリクエストで管理されたメールを送信します。

はじめに

Resendからの移行

ResendのHTTP送信をSendHQに対応付け、切り替え前に互換性の境界を把握します。

Start here

Migrate from SendGrid

Move SendGrid Mail Send, dynamic templates, Event Webhook, suppressions, and Inbound Parse to the SendHQ API, with a prompt your coding agent can run.

Start here

Migrate from Mailgun

Move Mailgun Messages API sends, templates, webhooks, suppressions, and Routes to the SendHQ API, with a prompt your coding agent can run.

Start here

Migrate from Postmark

Move Postmark Email API sends, message streams, templates, webhooks, suppressions, and inbound processing to the SendHQ API, with a prompt your coding agent can run.

Start here

Migrate from Amazon SES

Move Amazon SES SendEmail calls, configuration-set events, the account suppression list, templates, and receipt rules to the SendHQ API, with a prompt your coding agent can run.

Start here

Migrate from AgentMail

Move AgentMail inboxes, sends, replies, threads, labels, and message webhooks for AI agents to SendHQ inboxes and the SendHQ API, with a prompt your coding agent can run.

Start here

Migrate from Mailtrap

Move Mailtrap Email Sending API calls, webhooks, and suppressions to the SendHQ API, with a prompt your coding agent can run.

Start here

Migrate from Brevo

Move Brevo transactional email API sends, templates, webhooks, and blocked contacts to the SendHQ API, with a prompt your coding agent can run.

Start here

Use SendHQ with ShipFast

Send ShipFast's sendEmail() and NextAuth magic-link emails through the SendHQ API instead of Resend and SMTP, with a prompt your coding agent can run.

はじめに

認証

プロダクトとの連携にはサーバー側のAPIキーを、ワークスペースの管理にはブラウザセッションを使います。

はじめに

エラーと再試行

標準のJSONエラーエンベロープを解析し、再試行しても安全かどうかを判断します。

はじめに

バージョニングと廃止

URLのメジャーバージョン、互換性のある追加、非推奨の通知、提供終了までの期間について説明します。

送信

メールの送信

トランザクションメッセージ、一括送信、返信、添付ファイル、ホスト型テンプレートを安全に送信します。

送信

ドメインとDNS

Provision sender identities and interpret DNS, propagation, and repair states.

送信

ホスト型テンプレート

型付きの下書きを作成し、正確な出力をプレビューし、変更不可のリリースを公開し、送信の来歴を保持します。

Send

Newsletters and campaigns

Keep consented contacts, target segments, write, test, schedule, and send broadcasts, read bot-filtered open and click reports, and publish a newsletter site.

Send

Events and connections

Tell SendHQ what your contacts do, from your own code, from a payment provider's webhook, or from a spreadsheet, and see what came in and which automations it started.

受信

メール受信

インボックスを作成し、ルーティングされたメッセージを受信し、添付ファイルを保持し、時系列の会話を構築します。

受信

ラベルとバケット

送受信したメールを自動でラベルに振り分けます。また、エージェントには会話が外に出ることのないバケットを割り当てられます。

受信

迷惑メール・更新・重要度

SendHQが受信メールをメイン、更新、迷惑メールに振り分け、重要なメッセージにフラグを付け、修正から学習する仕組みを説明します。

運用

到達率

プロバイダーのイベント、送信者IDのレピュテーション、1日ごとの段階的な引き上げ、自動回復について説明します。

運用

サプレッションと配信停止

バウンス、苦情、配信停止のあった受信者への危険な配信を防ぎます。

Operate

Webhooks

Receive signed email events (sent, delivered, delayed, bounced, complained, failed, received) at your own HTTPS endpoint, with retries.

運用

請求と上限

Understand the subscription requirement, the daily sending ramp, recipient credits, attachment transfer, and webhook-driven entitlements.

Tools

Command-line interface

Install the SendHQ CLI to send and read email, verify domains, manage inboxes and templates, and run the MCP server from a terminal, a script, or CI.

Integrations

Supabase Auth emails

Send Supabase sign-up, magic link, password reset, and email change messages through SendHQ with Supabase's Send Email hook and an Edge Function.

機械可読な仕様

OpenAPI 3.1。これらのページと同じカタログから生成されています。

この仕様は、クライアント、テスト、ディスカバリー、エージェント用ツールに利用できます。

仕様を開くエンドポイントを見る