API Reference
PBCP
Context API

Context API

อ่านสถานะล่าสุดของลูกค้าหลังจากส่ง event เข้าแล้ว

Base URL: https://pbcp-api.pcampus.co

วิธีเชื่อมต่อ

GET https://pbcp-api.pcampus.co/v1/context/customers/CUST-1
Authorization: Bearer pip_YOUR_API_KEY
x-tenant-id: your-tenant-id

ตัวอย่างคำตอบ

{
  "customerId": "CUST-1",
  "displayName": "Alex Rivera",
  "status": "active",
  "updatedAt": "2026-07-15T10:15:00.000Z"
}
สถานะเมื่อไหร่
200พบข้อมูล
401token ไม่ถูกต้อง
404ยังไม่มี context ของลูกค้านี้

ถ้าต้องการเรื่องราวที่อ่านง่ายกว่านี้ ใช้ Story API