メールの受信:連絡先とオーディエンス

Get Delivery Status

送信したメール1通の配信状況(受信者ごと)。読み取り専用。

POSThttps://g.sendcorex.com/v1command: get_delivery_status

status:delivered、sending、retrying、rate_limited、bounced、spam、not_sent、filtered、suppressed。

引数

  • idstring必須

    送信したメールのmessage_uid。

  • cursornumber任意

    前のページのcursor。

クイックスタート

import axios from 'axios';

const response = await axios.post(
  'https://g.sendcorex.com/v1',
  {
    commands: [
      {
        command: "get_delivery_status",
        args: {
          id: "Vj0xQUJDMTIz"
        }
      }
    ]
  },
  { headers: { Authorization: process.env.SENDCOREX_TOKEN } },
);

const [result] = response.data.results;
if (result.type !== 'SUCCESS') throw new Error(`${result.code}: ${result.message}`);
console.log(result.data);

レスポンス

{
  "type": "SUCCESS",
  "results": [
    {
      "command": "get_delivery_status",
      "id": "0",
      "type": "SUCCESS",
      "data": {
        "total": 2,
        "audience_total": null,
        "recipients": [
          {
            "email": "ana@empresa.com",
            "status": "delivered",
            "reason": null,
            "at": "2026-11-21T09:40:00Z"
          },
          {
            "email": "joao@empresa.com",
            "status": "bounced",
            "reason": "550 mailbox not found",
            "at": "2026-11-21T09:40:02Z"
          }
        ],
        "cursor": null
      }
    }
  ]
}

レスポンスの項目

  • total

    これまでにステータスがある受信者。

  • audience_total

    最適時間送信:その日のうちに受け取る人数。通常の送信ではnull。

  • recipients[]

    email、status、reason、at。1ページ50件。

  • cursor

    次のページ、またはnull。

エラー

HTTPレベルのエラーはtype、code、messageを返します。CMDと表示されたエラーは、HTTP 200でコマンドの結果内に返ります。

  • 401TOKEN_EXPIRED

    access tokenの有効期限が切れました。Refresh Tokenを呼んでリクエストを繰り返してください。

  • 401INVALID_TOKEN

    トークンの形式が不正、不明、または取り消されています。

  • 429RATE_LIMITED

    同じIP + メールボックスで毎秒15リクエストまたは同時15件を超えました。Retry-Afterの秒数だけ待ってください。

  • CMDINVALID_ARGS

    必須の引数がないか不正です。

  • CMDNOT_FOUND

    このトークンでは、そのメッセージ、スレッド、フォルダーは存在しません。

  • CMDINTERNAL

    サーバーエラー。詳細はサーバーのログにのみ記録されます。