Identity Platform API
ออก token, จัดการ user และองค์กร — ทุก API อื่นใช้ token จากที่นี่
Base URL: https://pip.pcampus.co
วิธีเชื่อมต่อ
- สร้าง Application ใน Console
- ออก M2M API key (
pip_…) - ส่ง header
Authorization: Bearer pip_YOUR_API_KEY
ตัวอย่าง — ตรวจ token
curl https://pip.pcampus.co/identity/me \
-H "Authorization: Bearer pip_YOUR_API_KEY"ตัวอย่างคำตอบ
{
"id": "usr_xxxxxxxxxxxx",
"email": "you@example.com",
"organizationId": "org_xxxxxxxxxxxx"
}หน้าตัวอย่างถัดไป
| หน้า | ใช้เมื่อ |
|---|---|
| Users | โปรไฟล์ผู้ใช้ |
| Organizations | องค์กรและสมาชิก |
| Access | สิทธิ์ |
| Applications | แอปและ API key |