🔑 API Keys

⚠️ API keys ใช้สำหรับเรียก API ด้วย script/SDK (Python/curl/Postman). หากใช้แค่ web UI ไม่ต้องสร้าง key (โหมด demo ไม่บังคับ auth)

สร้าง Key ใหม่

Keys ที่มีอยู่

Key (display)OrgRoleRate/minCreatedLast usedStatus

วิธีใช้ key ในโค้ด

เมื่อได้ key แล้ว ส่งใน header ทุก request:

Authorization: Bearer ttve_xxxxxxxxxxxxxxxxxxxx

Python SDK:

from ttve_client import TTVEClient
c = TTVEClient(api_key="ttve_...")

curl:

curl -H "Authorization: Bearer ttve_..." http://localhost:8080/whoami