ดูข้อมูล Recipient
GET
https://api.voice-agent.gowajee.ai/api/recipient/:recipientIdดึงข้อมูล recipient หนึ่งคน ดู ID ของ recipient ได้จาก ดู Recipient ใน Campaign
หรือจาก calls[].recipient.id ใน ดู Call ใน Campaign
Path parameters
หัวข้อที่มีชื่อว่า “Path parameters”| ชื่อ | คำอธิบาย |
|---|---|
recipientId |
ID ของ recipient |
Request
หัวข้อที่มีชื่อว่า “Request”curl "https://api.voice-agent.gowajee.ai/api/recipient/5b1f0c9e-2d4a-4f6b-9a61-3c7e8d2f1a04" \ -H "X-API-Key: $GOWAJEE_API_KEY"const res = await fetch(`https://api.voice-agent.gowajee.ai/api/recipient/${recipientId}`, { headers: { 'X-API-Key': process.env.GOWAJEE_API_KEY },});res = requests.get( f"https://api.voice-agent.gowajee.ai/api/recipient/{recipient_id}", headers={"X-API-Key": os.environ["GOWAJEE_API_KEY"]}, timeout=30,)Response
หัวข้อที่มีชื่อว่า “Response”{ "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 }}{ "success": false, "statusCode": 404, "code": "RECIPIENT_NOT_FOUND", "message": "Recipient not found", "errors": ["Recipient not found"]}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 นี้เป็นขององค์กรอื่น |