Extract Documents $10.00 / 1,000 calls

Document type

What this tool does

This tool tells you what a document is. It reads the text (or the scan through OCR) and returns the canonical document type with a confidence score, without extracting the fields.

When to use it

  • Sorting an inbox of PDFs before archiving them.
  • Deciding which extraction prompt to run afterwards.
  • Rejecting documents that are not the expected type.
  • Costing a classification pass over many files.

What to expect

You receive document_type, confidence, language, pages and whether OCR was used.

Limitations

  • Uses the same canonical type list as extract-document-fields; anything unknown comes back as other.
  • Scanned files go through OCR first, so they take longer.
  • Up to 100 pages per request.

When it fails

  • The document has no extractable text.
  • The AI provider is not configured or returns an invalid answer.
  • The page limit is exceeded.

Good to know

  • Cheaper than extracting fields: the model returns metadata only.
  • Chain it with extract-invoice or extract-document-fields.

Supported document types (63)

Detection is automatic: the engine classifies the document and extracts its fields. You can force a type with the document_type parameter. Example output for an invoice:

{
  "document_metadata": { "type": "invoice", "language": "es", "confidence": 0.95 },
  "fields": [
    { "key": "invoice_number", "value": "2026-0142", "type": "string" },
    { "key": "invoice_date",   "value": "2026-11-03", "type": "date" },
    { "key": "vendor_tax_id",  "value": "B12345678", "type": "string" },
    { "key": "total_amount",   "value": "1234.56",   "type": "number" },
    { "key": "currency",       "value": "EUR",       "type": "string" }
  ]
}
Company & HR 6
  • board_resolution Board resolution
  • certificate_of_origin Certificate of origin
  • executive_report Executive report
  • meeting_minutes Meeting minutes
  • payslip Payslip
  • project_plan Project plan
Contracts & legal 31
  • assignment_agreement Assignment of rights
  • collaboration_agreement Collaboration agreement
  • confidentiality_agreement Non-disclosure agreement (NDA)
  • consulting_agreement Consulting agreement
  • contract Generic contract
  • distribution_agreement Distribution agreement
  • employment_agreement Employment contract
  • franchise_agreement Franchise agreement
  • independent_contractor_agreement Freelance / contractor agreement
  • joint_venture_agreement Joint venture agreement
  • lease_agreement Lease agreement
  • letter_of_intent Letter of intent
  • licensing_agreement Licence agreement
  • loan_agreement Loan agreement
  • master_services_agreement Master services agreement
  • memorandum_of_understanding Memorandum of understanding
  • merger_acquisition_agreement Merger or acquisition agreement
  • mortgage_agreement Mortgage agreement
  • non_compete_agreement Non-compete agreement
  • non_solicitation_agreement Non-solicitation agreement
  • operating_agreement Operating agreement (LLC)
  • partnership_agreement Partnership agreement
  • power_of_attorney Power of attorney
  • purchase_agreement Purchase agreement
  • sales_agreement Sales agreement
  • service_agreement Service agreement
  • severance_agreement Severance agreement
  • shareholders_agreement Shareholders' agreement
  • stock_purchase_agreement Share purchase agreement
  • supply_agreement Supply agreement
  • term_sheet Term sheet
Finance & accounting 14
  • balance_sheet Balance sheet
  • bank_statement Bank statement
  • cash_flow_statement Cash flow statement
  • credit_note Credit note (refund)
  • debit_note Debit note
  • expense_report Expense report
  • financial_statement Financial statements
  • payment_confirmation Payment confirmation
  • profit_and_loss Profit and loss account
  • reimbursement_claim Reimbursement claim
  • remittance_advice Remittance advice
  • tax_return Tax return
  • utility_bill Utility bill
  • vat_declaration VAT declaration
Purchasing & logistics 12
  • air_waybill Air waybill
  • customs_declaration Customs declaration
  • delivery_note Delivery note
  • delivery_receipt Delivery receipt
  • goods_received_note Goods received note
  • invoice Invoice
  • packing_list Packing list
  • purchase_order Purchase order
  • quotation_proposal Quote or commercial proposal
  • receipt Receipt or till ticket
  • sales_order Sales order
  • shipping_label Shipping label

Input data

Parameter Required Example Description
url Yes https://public.downloads.uproc.io/samples/sample.pdf Public URL of the PDF or image.
language No auto Document language: leave it in "auto" to detect it, or force an ISO-639-1 code.

Output data

Field Description
document_type Detected canonical document type.
confidence Confidence of the classification (0-1).
language Detected document language.
pages Pages read.
ocr_used True when the text came from OCR.

Frequently asked questions

Do I need to tell the type?

No. The engine classifies the document in the same call. document_type only forces a type when detection is ambiguous.

Does it work with scans?

Yes. If a page has no text layer, OCR is applied automatically before classifying and extracting.

What if a value is missing?

The model never invents: values that are not in the document come back as null.