ข้ามไปยังเนื้อหา

ดูข้อมูล Recipient

GEThttps://api.voice-agent.gowajee.ai/api/recipient/:recipientId

ดึงข้อมูล recipient หนึ่งคน ดู ID ของ recipient ได้จาก ดู Recipient ใน Campaign หรือจาก calls[].recipient.id ใน ดู Call ใน Campaign

ชื่อ คำอธิบาย
recipientId ID ของ recipient
curl "https://api.voice-agent.gowajee.ai/api/recipient/5b1f0c9e-2d4a-4f6b-9a61-3c7e8d2f1a04" \
-H "X-API-Key: $GOWAJEE_API_KEY"
{
"success": true,
"message": "Get Recipient details successfully",
"data": {
"id": "5b1f0c9e-2d4a-4f6b-9a61-3c7e8d2f1a04",
"customerName": "Somchai",
"tel": "0812345678",
"callAttempt": 2,
"latestCallStatus": "COMPLETED",
"agentParams": { "customer_name": "Somchai", "amount_due": 1500 },
"campaignId": "eac2489c-672c-455e-ab8c-4e0ecd18d7dc",
"createdAt": "2026-09-30T08:12:44.120Z",
"updatedAt": "2026-10-01T03:20:11.004Z",
"personalDataMasked": false
}
}

field ทั้งหมดเหมือนใน ดู Recipient ใน Campaign

body ใช้รูปแบบ error ปกติ

Status code message สาเหตุ
400 INVALID_ID recipientId must be a valid UUID ID ใน path ไม่ใช่ UUID
404 RECIPIENT_NOT_FOUND Recipient not found ID ผิด หรือ recipient นี้เป็นขององค์กรอื่น