---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://docs.sendcorex.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://docs.sendcorex.com/llms.txt"
---

Source: https://docs.sendcorex.com/ja/testing

はじめに

# テスト

実際のメールを送らずに連携をテストできます。どのキーでもテストアドレスを使うか、すべてのチェックを実行して何も配信しないテスト用API keyを使ってください。

- クレジット消費なし
- レピュテーションへの影響なし
- API、MCP、SMTP、Webメール

## テストアドレス

どのキーでも、API、MCP、SMTP、Webメールから`test.sendcorex.com`のアドレスに送信できます。Sendcorexの外には何も出ません。

`delivered@test.sendcorex.com` 配信済み

queued delivered

`bounced@test.sendcorex.com` バウンス

queued bounced (550 5.1.1)

`complaint@test.sendcorex.com` 迷惑メール報告

queued delivered fbl_complaint

`…@test.sendcorex.com` その他のアドレス

delivered

`+`でタグを付けるとテストを区別できます（例：`delivered+signup@test.sendcorex.com`）。

クレジット不要

テスト送信はクレジットを消費せず、1日の上限にも含まれません。

レピュテーションへの影響なし

レピュテーションやバウンスリストに影響することはありません。

Webhook

Webhookイベントには`"test": true`が含まれます。

Webメール

Webメールからのテスト送信はメールログにだけ表示され、webhookは送られません。

## テスト用API key

Dashboard → API keysで「テストキー」にチェックを入れて作成します。実際の送信と同じチェックをすべて実行するため、エラーは本番と同じですが、何も配信されません。

すべてのチェックを実行

`POST /v3.0/send`とMCPのtool `email_send`は、本番と同じようにドメイン、内容、アンチスパム、上限をチェックします。

何も送信されません

すべての受信者がシミュレートされます。実在のアドレスは配信済みとして返ります。

予約送信

`scheduled_at`は待たずにすぐシミュレートされます。

読み取りルート

読み取りルート（ログ、連絡先など）では、キーは通常どおり動作します。

[API keysを開く](https://app.sendcorex.com/dashboard/developer)

## レスポンスのテストモード

キーがテストキーの場合、またはすべての受信者がテストアドレスの場合、送信レスポンスに`"test_mode": true`が含まれます。

リクエスト · POST /v3.0/send

```
{
  "from": "noreply@yourdomain.com",
  "senderName": "My App",
  "to": "bounced+signup@test.sendcorex.com",
  "subject": "Welcome",
  "html": "<p>Hello!</p>"
}
```

レスポンス

```
{
  "success": true,
  "message": "Email queued successfully",
  "code": "EMAIL_QUEUED_SUCCESS",
  "id": "3f2a1b4c-8e9d-4f7a-b2c3-1a2b3c4d5e6f",
  "recipients": 1,
  "scheduledAt": null,
  "test_mode": true
}
```

メールログでは、これらの送信は「Delivered (simulated — test address)」「Delivered (simulated — test API key)」「Bounced (simulated — …)」と表示されます。
