Classification
Classify, then extract
Handle documents that arrive without a reliable label.
Generated endpoint reference
Before you start
Step 1 — Classify
python -c "
import base64, json
content = base64.b64encode(open('unknown.pdf','rb').read()).decode()
json.dump({'content': content}, open('classify.json','w'))
"
curl -X POST "https://api-docai-uat.uptiq.ai/classify/sync" \
-H "X-Api-Key: $DOCAI_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @classify.jsonStep 2 — Gate on confidence
Asynchronous classification, if you prefer
Step 3 — Extract with the classified type
A shortcut worth knowing
Value
Behaviour
Handling a ZIP of mixed documents
When it goes wrong
Symptom
Cause
Fix
Related pages
Last updated

