Skip to main content
POST
cURL

Authorizations

X-API-KEY
string
header
required

Production API Key. You can find it under My API in the ADP platform. Make sure the API Key is active and belongs to the production environment.

Path Parameters

tenant_name
string
default:laiye
required

Tenant name. Default: laiye.

Body

application/json
app_id
string
required

Application ID.

extract_fields
object[]
required

Extraction field configuration list. Up to 20 fields.

Maximum array length: 20
parse_mode
enum<string>
required

Parsing mode. Required for standard custom extraction applications. High-speed custom extraction applications do not support setting this parameter. Available parsing modes are:

  • standard: Standard parsing for clear digital documents, balancing speed and accuracy.
  • advance: Enhanced parsing 1.0 for documents with stamps, signatures, multiple tables, or moderately complex layouts.
  • agentic: Smart parsing that combines standard and enhanced parsing and performs secondary parsing when conditions are met.
  • fast_vlm: Enhanced parsing 2.0 for complex layouts, scanned documents, and documents with multiple tables, improving parsing stability.
  • agentic_v2: Smart parsing 2.0 with two-stage layout analysis and content recognition for documents with complex layouts, tables, and formulas.
Available options:
standard,
advance,
agentic,
fast_vlm,
agentic_v2
app_name
string

Application name. If omitted or passed as an empty string, the name is not updated.

config_version
string

Current configuration version. The update is saved as a new version.

app_label
string[]

Application labels. Up to 5 labels.

Maximum array length: 5
enable_highlight
enum<integer>
default:1

Whether to include source locations. Pass 1 to enable or 0 to disable. Supported by standard, agentic, fast_vlm, and agentic_v2. Not supported by advance.

Available options:
0,
1
enable_pdf_parse
boolean
default:false

Whether to prefer PDF text extraction. Use this for digital PDFs with selectable text to improve processing speed and text stability.

pdf_pic_second_parsing
boolean
default:false

When PDF text extraction is enabled, whether to run secondary parsing on images inside the PDF.

enable_stamp_recognition
boolean
default:false

Whether to enable stamp recognition. The service attempts to recognize stamp information in the document. Stamp recognition capability must be enabled.

enable_field_value_translation
boolean
default:false

Whether to enable extracted value translation. Disabled by default.

enable_long_doc
boolean
default:false

Whether to enable long document support. Standard custom extraction applications support this parameter. High-speed custom extraction applications do not support setting this parameter.

long_doc_config
object[]

Long document configuration. Used only when enable_long_doc is true.

Maximum array length: 5

Response

Extraction application update result.

code

Business code. A successful response is usually success or 200.

message
string

Response message.

tips
string | null

Details. Defaults to null.

data
object