API Reference
Pulse
Pulse API

Pulse API

แปะมุมมองเรื่องราวลูกค้าในหน้า admin ของคุณ

Base URL: https://pulse.pcampus.co

ข้อมูลเรื่องราวอ่านได้จาก Story API โดยตรง — Pulse เป็นหน้าต่างแสดงผล

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

<iframe
  src="https://pulse.pcampus.co/embed/customer/CUST-1?token=YOUR_EMBED_TOKEN"
  width="100%"
  height="600"
  title="Customer story"
></iframe>

ตัวอย่าง — ขอ embed token

curl https://pulse.pcampus.co/embed/token \
  -H "Authorization: Bearer pip_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "entityId": "CUST-1",
    "tenantId": "your-tenant-id"
  }'

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

{
  "embedToken": "emb_001",
  "expiresAt": "2026-07-16T12:00:00.000Z"
}

อย่าใส่ API key ในหน้าเว็บสาธารณะ — ใช้ embed token ที่มีอายุสั้นแทน