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

Field configuration generation request. Standard applications require at least one of prompt, file_url, or file_base64. High-speed applications still require file_url or file_base64, and prompt is only supporting guidance. Because the application type is resolved from app_id, OpenAPI cannot fully express the two conditional contracts from request fields alone.

app_id
string
required

Application ID. When you pass a high-speed custom extraction application, the response returns a high-speed auto-configuration preview.

prompt
string
required

User-provided generation instruction. Standard applications can use prompt alone; high-speed applications must also provide a file.

file_base64
string

Base64-encoded file. Required for high-speed applications if file_url is not provided.

file_url
string<uri>

File URL. Required for high-speed applications if file_base64 is not provided.

doc_type
string

Document type. You can provide this for standard application recommendations. High-speed applications detect the document type automatically.

doc_type_description
string

Document type description. You can provide this for standard application recommendations.

Response

Field configuration generation result. High-speed applications return a configuration preview and do not save a configuration version.

code

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

message
string

Response message.

tips
string | null

Details. Defaults to null.

data
object