Extract document (sync)
For a user-uploaded document, call the specified document extraction application and extract content from the file based on the application configuration and rules. The same endpoint applies to custom extraction applications, overseas invoices, receipts, purchase orders, domestic general bills, and cards. Synchronous extraction disables human collaboration by default; use the asynchronous create and query endpoints for human review.
Authorizations
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.
Headers
Field name language. Use zh for Chinese or en for English.
zh, en Path Parameters
Tenant name. Default: laiye.
Body
- Use file URL
- Use file Base64
Unique application ID.
File URL. Use either file_url or file_base64.
File name. Provide it when using Base64 or when the file name cannot be inferred from the URL.
Whether to return document recognition results. High-speed extraction does not return recognition results.