REST-API cho chuyên gia
DocUnderstand đi kèm một REST-API cục bộ. FileMaker, Xojo, script hoặc công cụ riêng của bạn gửi một tài liệu qua HTTP và nhận lại tên tệp, thẻ Finder cùng dữ liệu có cấu trúc.
curl -X POST http://localhost:8787/process \ -H "Authorization: Bearer ••••••••" \ -H "Content-Type: application/json" \ -d '{"filename":"Hóa đơn.pdf", ...}'
// Mã hóa foto.jpg sang Base64Set Variable [ $data ; Base64EncodeRFC(...) ]Insert from URL [ $response ; "http://localhost:8787/process" ]
' Mã hóa Hợp đồng.pdf sang 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": "Hóa đơn", "tags": ["Hóa đơn", "Di động"], "text": "Hóa đơn tháng 8 năm 2026 của bạn …", "extraction": { "invoiceNumber": "RG-2026-081045", "grossAmount": 99.00 }}
{ "filename": "2026-07-14 Bãi biển kỳ nghỉ.jpg", "documentType": "Ảnh", "tags": ["Ảnh", "Kỳ nghỉ"], "exif": { "camera": "iPhone 16 Pro", "dateTaken": "2026-07-14 16:32", "gpsLocation": "43.71° N, 7.26° E" }}
{ "filename": "2026-03-01 Acme Hợp đồng thuê.pdf", "documentType": "Hợp đồng", "tags": ["Hợp đồng", "Thuê"], "text": "Hợp đồng thuê giữa Acme GmbH …", "extraction": { "customerNumber": "K-88213", "servicePeriod": "từ 2026-03-01" }}