PDF Form Processing

Detect Mappings

Use AI to intelligently map document data to PDF form fields.

Supports two modes:

  1. Legacy: Single document via document_data field
  2. New: Multiple documents via documents array with schema descriptions

The new mode searches across all documents and returns alternatives.

Args: request: Contains base64-encoded PDF and document data

Returns: DetectMappingsResponse with suggested field mappings and alternatives

post/api/pdf/detect-mappings

Request

  • Base URL
    https://api.qomplement.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.qomplement.com/api/pdf/detect-mappings
  • Auth
    none declared

Request body

pdf_contentstring required
document_dataobject nullable
high_precisionboolean
field_descriptionsobject nullable
custom_fieldsobject[] nullable
agent_rulesstring nullable

Response

Successful Response

successboolean required
errorstring nullable
noticestring nullable

Changes

No recorded changes to this operation across all 9 revisions of this API.