v1

OpenAPI 3.1.02026-08-04552282508.9 KB
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 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