รับอีเมล: ผู้ติดต่อและการติดตามผล

List Followups

การเตือนสำหรับอีเมลที่ยังไม่มีใครตอบ ใกล้ถึงก่อน

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

pending = รอถึงเวลา nudged = ถึงเวลาโดยไม่มีคำตอบและบทสนทนากลับไปกล่องจดหมายเข้า คำตอบจริงจะลบการเตือนเอง (การตอบอัตโนมัติไม่นับ)

อาร์กิวเมนต์

endpoint นี้ไม่มีอาร์กิวเมนต์

เริ่มต้นอย่างรวดเร็ว

import axios from 'axios';

const response = await axios.post(
  'https://g.sendcorex.com/v1',
  {
    commands: [
      {
        command: "list_followups"
      }
    ]
  },
  { 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": "list_followups",
      "id": "0",
      "type": "SUCCESS",
      "data": {
        "followups": [
          {
            "thread_id": "thr_9a1c4e72",
            "message_uid": "Vj0xQUJDMTIz",
            "status": "pending",
            "remind_at": "2026-10-29T01:00:00Z",
            "sent_at": "2026-10-26T01:00:00Z",
            "subject": "Proposal",
            "to_email": "ana@client.com",
            "created_at": "2026-10-26T01:00:00Z"
          }
        ]
      }
    }
  ]
}

ข้อผิดพลาด

ข้อผิดพลาดระดับ HTTP ส่งกลับ type, code และ message ข้อผิดพลาดที่มีเครื่องหมาย CMD จะกลับมาในผลลัพธ์ของคำสั่ง พร้อม HTTP 200

  • 401TOKEN_EXPIRED

    access token หมดอายุแล้ว เรียก Refresh Token แล้วส่งคำขอซ้ำ

  • 401INVALID_TOKEN

    โทเค็นผิดรูปแบบ ไม่รู้จัก หรือถูกเพิกถอน

  • 429RATE_LIMITED

    เกิน 15 คำขอ/วินาที หรือ 15 คำขอพร้อมกันสำหรับ IP + กล่องจดหมายเดียวกัน รอจำนวนวินาทีใน Retry-After

  • CMDINTERNAL

    ข้อผิดพลาดของเซิร์ฟเวอร์ รายละเอียดเขียนเฉพาะในล็อกเซิร์ฟเวอร์