REST API สำหรับมืออาชีพ
DocUnderstand มาพร้อม REST API ภายในเครื่อง FileMaker, Xojo, สคริปต์ หรือเครื่องมือของคุณเองสามารถส่งเอกสารผ่าน HTTP แล้วรับชื่อไฟล์ แท็ก Finder และข้อมูลที่มีโครงสร้างกลับมาได้
curl -X POST http://localhost:8787/process \ -H "Authorization: Bearer ••••••••" \ -H "Content-Type: application/json" \ -d '{"filename":"ใบแจ้งหนี้.pdf", ...}'
// เข้ารหัส foto.jpg เป็น Base64Set Variable [ $data ; Base64EncodeRFC(...) ]Insert from URL [ $response ; "http://localhost:8787/process" ]
' เข้ารหัส สัญญา.pdf เป็น Base64Var req As New URLConnectionreq.SetRequestContent(json, "application/json")Var antwort As String = req.SendSync("POST", _ "http://localhost:8787/process")
{ "filename": "2026-08-10 T-Mobile…pdf", "documentType": "ใบแจ้งหนี้", "tags": ["ใบแจ้งหนี้", "มือถือ"], "text": "ใบแจ้งหนี้ของคุณสำหรับเดือนสิงหาคม 2026 …", "extraction": { "invoiceNumber": "RG-2026-081045", "grossAmount": 99.00 }}
{ "filename": "2026-07-14 ทะเลวันหยุด.jpg", "documentType": "รูปภาพ", "tags": ["รูปภาพ", "วันหยุด"], "exif": { "camera": "iPhone 16 Pro", "dateTaken": "2026-07-14 16:32", "gpsLocation": "43.71° N, 7.26° E" }}
{ "filename": "2026-03-01 Acme สัญญาเช่า.pdf", "documentType": "สัญญา", "tags": ["สัญญา", "ค่าเช่า"], "text": "สัญญาเช่าระหว่าง Acme GmbH กับ …", "extraction": { "customerNumber": "K-88213", "servicePeriod": "ตั้งแต่ 2026-03-01" }}