ข้ามไปยังเนื้อหา

เครื่องมือนักพัฒนา

API Playground

ทดลองใช้ workspace management API ของ tracio.ai โดยไม่ต้องสมัคร สร้างคำขอ, ดูการตอบกลับ และสำรวจว่า webhooks และข้อมูลผู้เข้าชมทำงานอย่างไร

การตอบกลับจำลอง — playground นี้ไม่ได้เชื่อมต่อกับ API จริง การตอบกลับเป็นข้อมูลตัวอย่างเพื่อสาธิตรูปแบบของ API

ลงทะเบียน webhook endpoint เพื่อรับเหตุการณ์การระบุตัวตน

Request

curl -X POST \
https://app.tracio.ai/api/v1/workspaces/{workspaceId}/webhooks \
-H "Authorization: Bearer <clerk-session-jwt>" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-server.com/webhook/tracio",
"events": []
}'
POST /api/v1/workspaces/{workspaceId}/webhooks

Response

คลิก "ส่งคำขอ" เพื่อดูการตอบกลับ

รูปแบบการตอบกลับ

การตอบกลับของ Management API ใช้ envelope ที่สอดคล้องกัน: flag ok และ payload data (หรือ error) ผลลัพธ์การระบุตัวตนต่อผู้เข้าชมจะถูกส่งไปยังเซิร์ฟเวอร์ของคุณผ่าน webhooks

{
"ok": true, // whether the request succeeded
"data": { }, // the requested resource, or an array of them
"error": null // populated with { code, message } on failure
}

รับ API Key ของคุณ

พร้อมเชื่อมต่อแล้วใช่ไหม? สมัครบัญชีฟรีและรับ API key ใช้งานจริงของคุณภายในไม่ถึงหนึ่งนาที