メールの受信:連絡先とオーディエンス
Get Delivery Status
送信したメール1通の配信状況(受信者ごと)。読み取り専用。
POST
https://g.sendcorex.com/v1command: get_delivery_statusstatus: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でコマンドの結果内に返ります。
- 401
TOKEN_EXPIREDaccess tokenの有効期限が切れました。Refresh Tokenを呼んでリクエストを繰り返してください。
- 401
INVALID_TOKENトークンの形式が不正、不明、または取り消されています。
- 429
RATE_LIMITED同じIP + メールボックスで毎秒15リクエストまたは同時15件を超えました。Retry-Afterの秒数だけ待ってください。
- CMD
INVALID_ARGS必須の引数がないか不正です。
- CMD
NOT_FOUNDこのトークンでは、そのメッセージ、スレッド、フォルダーは存在しません。
- CMD
INTERNALサーバーエラー。詳細はサーバーのログにのみ記録されます。