Quickstart
2. Get Credentials

รับ Credentials

หลังจากลงทะเบียน application แล้ว คุณสามารถออก credentials ได้สองประเภท

M2M API Key

ใช้สำหรับ server-to-server calls ที่ไม่มี end user เข้ามาเกี่ยวข้อง (batch jobs, webhooks, backend APIs)

สร้าง key

  1. เปิด application ใน Console
  2. ไปที่แท็บ API Keys
  3. คลิก New API Key
  4. ตั้งชื่อและเลือก scopes (ถ้าต้องการ)
  5. คลิก Create — คัดลอก key ทันที จะไม่แสดงอีกครั้ง

รูปแบบ key

pip_live_xxxxxxxxxxxxxxxxxxxxxxxx

ใช้ใน requests

curl https://pip.pcampus.co/identity/users \
  -H "Authorization: Bearer pip_live_xxxxxxxx"
⚠️

เก็บ key ใน environment variable เท่านั้น ห้ามใส่ใน source code

ขั้นตอนถัดไป: ทำ API call แรก

ทำ API call แรก →

Get Credentials

After registering your application you can issue two types of credentials.

M2M API Key

Use for server-to-server calls where no end user is involved (batch jobs, webhooks, backend APIs).

Generate a key

  1. Open your application in the Console.
  2. Go to the API Keys tab.
  3. Click New API Key.
  4. Give it a name and optional scopes.
  5. Click Create — copy the key immediately. It will not be shown again.

Key format

pip_live_xxxxxxxxxxxxxxxxxxxxxxxx

Use in requests

curl https://pip.pcampus.co/identity/users \
  -H "Authorization: Bearer pip_live_xxxxxxxx"
⚠️

Store the key in an environment variable, never in source code.

Next: make your first API call

Make your first API call →