PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
This reference describes authentication, request parameters, response structures, task states, calling sequences and error handling for the ComPDF AI Open API. The public API base URL is https://hub.compdf.com. All endpoint paths use the /api/v2 prefix.
The public API base URL is https://hub.compdf.com. Append the endpoint path to this base URL to form the full request URL, for example: https://hub.compdf.com/api/v2/files/upload.
All endpoint paths use the /api/v2 prefix. When calling the public API, replace API_BASE_URL in the examples with https://hub.compdf.com, without duplicating /api/v2, and API_KEY with a valid Service API Key. For self-hosted deployments, use the API base URL provided by your deployment environment.
| Field | Description |
|---|---|
| X-API-Key | Provide the Service API Key value. |
| Authorization | Alternative to X-API-Key, using Bearer <API_KEY>. |
| Content-Type | Use application/json for JSON requests and multipart/form-data for file uploads. The client generates the multipart boundary. |
| Accept-Version / parser_version | Applicable result endpoints support v2 and v3. When both selectors are supplied, they must agree. Parser version controls parsing structure; result_format controls extraction presentation. |
API keys identify the tenant and resource-access scope. Use and management permissions for shared default templates are controlled separately and exposed through fields such as usable and manageable. Send the key only in request headers. X-Request-ID correlates errors with service logs.
Replace the service URL and API key in each curl example as described above.
| Method | Path | Purpose |
|---|---|---|
| POST | /api/v2/files/upload | Upload files (asynchronous processing) |
| DELETE | /api/v2/files | Delete files |
| PUT | /api/v2/files/{fileId}/template | Change the file template |
| GET | /api/v2/batches/{batchId}/tasks | List batch tasks |
| POST | /api/v2/tasks/{taskId}/retry | Retry or reprocess a task |
| DELETE | /api/v2/tasks/ | Cancel a task |
| GET | /api/v2/templates | List templates |
| GET | /api/v2/templates/{id}/fields | Get template fields |
| POST | /api/v2/templates | Create a template |
| PUT | /api/v2/templates/ | Update a template |
| DELETE | /api/v2/templates/ | Delete a template |
| POST | /api/v2/templates/samples | Upload an initial template sample |
| POST | /api/v2/templates/{templateId}/samples | Add or replace template samples |
| GET | /api/v2/templates/{templateId}/samples | List template samples |
| DELETE | /api/v2/templates/{templateId}/samples/ | Delete a template sample |
| POST | /api/v2/extract/{fileId}/fields | Extract custom fields |
| GET | /api/v2/tasks/ | Get file processing results |
| PUT | /api/v2/tasks/ | Update file processing results |
| GET | /api/v2/classify/{taskId}/result | Get file classification |
| POST | /api/v2/rules | Create a reminder rule |
| PUT | /api/v2/rules/ | Update a reminder rule |
| GET | /api/v2/rules | List reminder rules |
| GET | /api/v2/rules/ | Get a reminder rule |
| PATCH | /api/v2/rules/{rule_id}/status | Enable or disable a reminder rule |
| DELETE | /api/v2/rules/ | Delete a reminder rule |
| GET | /api/v2/assets | Get asset information |
| API/field | Format | Description |
|---|---|---|
| Files, tasks, templates, assets | HTTP 200; code=200 | code is numeric. Depending on the endpoint, data is an object, array, string or null. |
| Reminder rules | code=0; HTTP 200/201 | Creation returns HTTP201. Deletion returns HTTP204 with no body. |
| Error response | HTTP status and business code | Read HTTP status, code/error_code and error_detail together. Preserve zero-prefixed business codes as strings. |
| error_detail.request_id | string | Error correlation identifier matching the X-Request-ID response header. |
Interpret date-time fields without a UTC offset using the service-configured time zone. Reminder-rule timestamps use UTC ISO8601 with Z. Set expectedUpdateDate to the exact updateDate from the latest query, preserving its representation and precision.
The sample list uses page and page_size for pagination. Other lists accept the filters defined by their endpoint. Preserve field spelling and case. Dots denote nested objects, [] denotes array items, and <name> denotes dynamic business keys.
JSON request bodies contain the business object; send headers separately. curl examples use Bash. Replace example IDs, timestamps, keys and files before calling an endpoint. Request and response examples are included with each endpoint.
Upload, retry and re-extraction operations return submission results. Read processing progress through the batch or task-query endpoints, and follow the state requirements for subsequent operations. After a write request times out, query the resource state before retrying. Callbacks and notifications are delivered asynchronously through configured channels.
Batch filters, classification and retry responses use pending, processing, completed, failed and cancelled. Task-detail status uses pending_parsing, parsing, parsing_failed, pending_classification, classifying, classification_failed, pending_extraction, extracting, extraction_completed, extraction_failed and cancelled. Tasks move from waiting to processing, then complete, fail or are cancelled. Retry retains taskId, returns createdNewTask=false and moves the task back to waiting. It loads the latest saved template as the snapshot for that processing attempt. Read the task state before retrying and wait for an active attempt to finish.
Batch states are pending, processing, completed, failed, partial_failed, cancelled and empty. A processing task takes precedence, followed by a pending task. A homogeneous terminal set uses its corresponding state; mixed terminal states use partial_failed, and an empty batch uses empty. Filtering the task list does not change the aggregate state. Upload responses provide the submission-time state; query the batch or task for subsequent progress. Callbacks follow administrator-configured subscriptions and delivery rules.
Template lists filter by active/inactive, while template objects use numeric status 0 for disabled, 1 for enabled and 2 for deleted. A template can have at most five samples, and at least one must remain. Sample and profile processing states include processing, active and failed; read revision fields and classificationNeedsSave together with the state.
Write operations are subject to API key, tenant, license and product-quota controls. Processing reserves resources according to mode, stage and page count. Successful processing settles actual usage; failures or cancellation release outstanding reservations. The quota panel updates as asynchronous settlement completes. Deletion and cancellation retain settled usage. Asset queries return available, reserved and used amounts together with the unlimited flag. A null usageExact indicates unknown historical usage.
DELETE /tasks/{taskId} cancels a pending or processing task. File deletion selects by file IDs, creation-time range or metadata. Top-level selectors form a union, while entries within metadata conditions must all match. deletePermanently defaults to false; true performs permanent removal. Bulk deletion reports per-file outcomes through deletedCount, failedCount, failedIds and failedReasons. Repeated requests remain subject to resource and state checks.
Processing state, confirmStatus and scoring state are independent. A completed result with pending confirmation may be edited. Revoke confirmation through the management workflow first for confirmed results, then GET the latest values. Supply at least one of fields/tables/parse_result; submitted sections are full replacements, so omitted fields/elements may be removed. confirm defaults to true; false only avoids explicit confirmation in this request, and scoring may still auto-confirm later. expectedUpdateDate is an optional exact-match token: copy it from GET without time-zone/precision changes. Re-read and reconcile conflicts rather than blindly replaying. Saving does not rerun extraction; use the defined retry/custom-field operations.
Rule status is active/inactive, defaulting to active on creation. Updates preserve omitted fields and revalidate the merged configuration. review_status conditions use pending/confirmed; processing_status uses the detailed values in S1; score uses 1–100. The service scheduler evaluates daily/hourly rules. Trigger deduplication applies for 24 hours to the same rule and source; updates may reset the rule record. Email and callbacks are delivered asynchronously through configured channels. Delivery depends on valid recipients and channel state; requests without valid recipients are skipped, and failures follow the channel retry policy. Deleting a rule leaves sent notifications unchanged.
Endpoints are grouped by files, tasks, templates and document processing, reminder rules, and assets. Each endpoint describes parameter locations, types, required conditions, defaults, request examples and response fields.
The upload endpoint submits files and returns batch and task identifiers. Query processing progress and results through the task endpoints.
Upload local files or a public URL and submit asynchronous processing tasks. This endpoint returns batchId, fileIds and taskIds without waiting for final results. After submission, use the batch-task or file-processing-result endpoint to retrieve progress and results.
| Item | Value |
|---|---|
| Method | POST |
| URL | <API_BASE_URL>/api/v2/files/upload |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | multipart/form-data |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| file | binary or binary[] | Exactly one of file or url | None | None | At most 104857600 bytes per file; pdf/doc/docx/xls/xlsx/png/jpg/jpeg/bmp/tif/tiff. Gateway or license limits may be lower. | File bytes, not a local path string. Multiple files may be uploaded in one request. | @invoice.pdf |
| url | string | Exactly one of file or url | None | None | 10-second connect and 30-second read timeouts; at most four HTTP attempts, allowing a successful download after at most three redirects. Hosts are checked again after redirects. | A publicly downloadable HTTP/HTTPS file URL. Local, private, link-local and multicast hosts are rejected. | https://files.example.com/invoice.pdf |
| mode | string | Yes | None | VisualExtract: visual extraction; LayoutExtract: parsing followed by extraction | — | Select the processing mode using the exact enum spelling. | VisualExtract |
| template_id | string | No | Automatic classification | None | — | Use an accessible template to bypass automatic template classification. | template_example |
| metadata | string | No | None | None | Subject to server request-size and storage limits. | Caller metadata, supplied as JSON text in a string. Task responses retain text; this form field is not an object. | |
| user_id | string | No | Organization identity of the API key | None | — | User ID assigned to the uploaded file. Organization membership is checked when supplied; omission assigns the file to the API key organization. | user_example |
| user_email | string | No | None | None | — | Recorded uploader email. File ownership is determined by user_id and the API key. | [email protected] |
| enable_scoring | boolean | No | true | true: enabled; false: disabled | — | Whether scoring is enabled; enableScoring is a supported alias. | false |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request POST "<API_BASE_URL>/api/v2/files/upload" \
--header "X-API-Key: <API_KEY>" \
--form "[email protected]" \
--form "mode=VisualExtract" \
--form "template_id=template_example" \
--form 'metadata={"source":"api"}'For URL import, omit the file part and use:
--form "url=https://files.example.com/invoice.pdf"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"batchId": "batch_example",
"fileIds": [
"task_example"
],
"taskIds": [
"task_example"
],
"tasks": [
{
"taskId": "task_example",
"fileId": "task_example",
"status": "pending_extraction",
"phase": "extracting",
"failureCode": null,
"error": null
}
],
"uploadStatus": "processing"
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.batchId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Upload-batch identifier; it may be null for historical tasks. |
| data.fileIds | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File/task identifiers created by this upload, in corresponding order. |
| data.fileIds[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File/task identifiers created by this upload, in corresponding order. |
| data.taskIds | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File/task identifiers created by this upload, in corresponding order. |
| data.taskIds[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File/task identifiers created by this upload, in corresponding order. |
| data.tasks | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Status information for the tasks in this batch. |
| data.tasks[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Status information for the tasks in this batch. |
| data.tasks[].taskId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Task identifier used for subsequent polling. |
| data.tasks[].fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.tasks[].status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.tasks[].phase | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing stage: parsing/classifying/extracting; null when no corresponding stage applies. |
| data.tasks[].failureCode | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.tasks[].error | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.uploadStatus | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Upload submission status, returned as processing. Read each file processing state through tasks and the task-query endpoint. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA, E-FORMAT
Delete files and results selected by explicit criteria.
| Item | Value |
|---|---|
| Method | DELETE |
| URL | <API_BASE_URL>/api/v2/files |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | application/json |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| fileIds | array<string> | At least one of the three selectors | None | None | — | IDs of the files to delete. Alias: file_ids. | ["task_example"] |
| dateRange | object | At least one of the three selectors | None | None | — | Select by file creation time; alias: date_range. Combined with other top-level selectors using a UNION. | |
| dateRange.start / dateRange.end | string | At least one bound when dateRange is used | None | None | — | Inclusive local date-time bounds without a UTC offset; interpret using the deployment time zone. | 2026-10-23T08:00:00 |
| metadataConditions | object | At least one of the three selectors | None | None | — | Match metadata key/value pairs. Entries within this object use AND; top-level selectors use OR. Alias: metadata_conditions. | |
| deletePermanently | boolean | No | false | None | — | false performs soft deletion/recycling; true permanently removes the file. Alias: delete_permanently. | false |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request DELETE "<API_BASE_URL>/api/v2/files" \
--header "X-API-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data-raw '{
"fileIds": [
"task_example"
],
"deletePermanently": false
}'JSON Body only:
{
"fileIds": [
"task_example"
],
"deletePermanently": false
}HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"deletedCount": 1,
"failedCount": 0,
"failedIds": [],
"failedReasons": {}
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.deletedCount | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Number of successful or failed deletions in this request. |
| data.failedCount | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Number of successful or failed deletions in this request. |
| data.failedIds | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failed file IDs and reasons keyed by ID. Check failedCount for partial failures. |
| data.failedReasons | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failed file IDs and reasons keyed by ID. Check failedCount for partial failures. |
| data.failedIds[] | string | When failures exist | None | A matching failure exists | An ID whose deletion failed. |
| data.failedReasons.<fileId> | string | When failures exist | None | A matching failure exists | Failure reason keyed by file ID. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM
Change the template used by a file and trigger reprocessing.
| Item | Value |
|---|---|
| Method | PUT |
| URL | <API_BASE_URL>/api/v2/files/{fileId}/template |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | application/json |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| fileId | string | Yes | None | None | — | File ID, normally identical to taskId in this task model. | task_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| groupTemplateId | string | Yes | None | None | — | A group-template relationship ID, not the template ID. Read groupTemplateId from the template list. Alias: group_template_id. | group_example |
| enableScoring | boolean | No | Preserve task setting | None | — | Scoring for reprocessing; alias: enable_scoring. | true |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request PUT "<API_BASE_URL>/api/v2/files/task_example/template" \
--header "X-API-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data-raw '{
"groupTemplateId": "group_example",
"enableScoring": false
}'JSON Body only:
{
"groupTemplateId": "group_example",
"enableScoring": false
}HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"fileId": "task_example",
"templateId": "template_example",
"groupTemplateId": "group_example",
"taskId": "task_example"
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.templateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.groupTemplateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Group-template relationship identifier, distinct from templateId. |
| data.taskId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Task identifier used for subsequent polling. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA
Read aggregate state and task snapshots for an upload batch.
| Item | Value |
|---|---|
| Method | GET |
| URL | <API_BASE_URL>/api/v2/batches/{batchId}/tasks |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| batchId | string | Yes | None | None | — | batchId returned by upload. | batch_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| status | string | No | All | pending/processing/completed/failed/cancelled | — | Filter tasks in this batch by coarse status, not detailed stage. No pagination parameters are provided. | failed |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request GET "<API_BASE_URL>/api/v2/batches/batch_example/tasks" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"batchId": "batch_example",
"batchStatus": "completed",
"tasks": [
{
"taskId": "task_example",
"fileId": "task_example",
"fileName": "invoice.pdf",
"batchId": "batch_example",
"taskType": "WORKFLOW_VISUAL_EXTRACT",
"templateId": "template_example",
"groupTemplateId": "group_example",
"templateName": "Invoice Template",
"status": "extraction_completed",
"phase": null,
"conversionStatus": "completed",
"confirmStatus": "pending",
"metadata": "{\"source\":\"api\"}",
"error": null,
"failureCode": null,
"failureStage": null,
"createdAt": "2026-10-23T08:00:00",
"completedAt": "2026-10-23T08:00:00",
"updateDate": "2026-10-23T08:00:00",
"output": null,
"layoutOutput": null,
"apiVersion": null,
"fieldExceptions": "[]",
"updatedFields": null,
"extractionResult": null,
"parsingResult": null,
"parseResult": null,
"parseResultStatus": null,
"fieldExceptionDetails": [],
"score": null,
"confidence": null,
"input": {
"fileId": "task_example",
"templateId": "template_example",
"groupTemplateId": "group_example",
"templateName": "Invoice Template",
"mode": "VisualExtract"
},
"consumption": {
"pages": 1
},
"originalFile": null,
"artifacts": null,
"customJsonExport": null,
"jsonExportError": null,
"extractionSource": null,
"parseResultUpdated": null
}
]
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.batchId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Upload-batch identifier; it may be null for historical tasks. |
| data.batchStatus | string | When parent exists; see conditions for optional projections | pending / processing / completed / failed / partial_failed / cancelled / empty | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Aggregate batch status; see S2. |
| data.tasks | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Status information for the tasks in this batch. |
| data.tasks[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Status information for the tasks in this batch. |
| data.tasks[].taskId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Task identifier used for subsequent polling. |
| data.tasks[].fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.tasks[].fileName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File name; sourceFileName identifies the original source name. |
| data.tasks[].batchId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Upload-batch identifier; it may be null for historical tasks. |
| data.tasks[].taskType | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Existing task-type identifier, such as WORKFLOW_VISUAL_EXTRACT/WORKFLOW_LAYOUT_EXTRACT; legacy types are retained. |
| data.tasks[].templateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.tasks[].groupTemplateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Group-template relationship identifier, distinct from templateId. |
| data.tasks[].templateName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.tasks[].status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.tasks[].phase | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing stage: parsing/classifying/extracting; null when no corresponding stage applies. |
| data.tasks[].conversionStatus | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File-conversion status, as returned by the service; not a replacement for task stage. |
| data.tasks[].confirmStatus | string | When parent exists; see conditions for optional projections | pending / confirmed | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Result confirmation state: pending or confirmed, independent of processing state. |
| data.tasks[].metadata | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Original metadata text from upload; it is not automatically converted to an object. |
| data.tasks[].error | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.tasks[].failureCode | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.tasks[].failureStage | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing stage: parsing/classifying/extracting; null when no corresponding stage applies. |
| data.tasks[].createdAt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Java local date-time string without an explicit UTC offset. It may be null when unknown or unfinished. updateDate is used for exact version comparison. |
| data.tasks[].completedAt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Update time of a completed task. Subsequent result edits update this timestamp. |
| data.tasks[].updateDate | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Java local date-time string without an explicit UTC offset. It may be null when unknown or unfinished. updateDate is used for exact version comparison. |
| data.tasks[].output | JSON | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Extraction result. output retains the compatible representation; extractionResult provides structured fields, tables, ordering and pages. |
| data.tasks[].layoutOutput | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible parser result encoded as a JSON string; parse it before treating it as an object. |
| data.tasks[].apiVersion | string | null | When parent exists; see conditions for optional projections | v2 / v3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parser version v2/v3 selected for this response; distinct in naming from api_version inside the parser document. |
| data.tasks[].fieldExceptions | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Legacy JSON-string representation of validation exceptions. |
| data.tasks[].updatedFields | array | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Extraction field names involved in this save; not a complete audit trail. |
| data.tasks[].extractionResult | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Extraction result. output retains the compatible representation; extractionResult provides structured fields, tables, ordering and pages. |
| data.tasks[].parsingResult | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible object fields representing the same public parser document; null when no archive is available or reading fails. |
| data.tasks[].parseResult | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible object fields representing the same public parser document; null when no archive is available or reading fails. |
| data.tasks[].parseResultStatus | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | available, not_available, or read_failed. |
| data.tasks[].fieldExceptionDetails | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Structured field-validation issues; entries depend on the validation result. |
| data.tasks[].score | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible scoring object with status, overall score, risk and field map; missing scores are not fabricated as zero. |
| data.tasks[].confidence | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | In task results, an additive scoring view; in classification results, a nullable numeric confidence value. |
| data.tasks[].input | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Task input summary, used to confirm the effective mode and template. |
| data.tasks[].input.fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.tasks[].input.templateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.tasks[].input.groupTemplateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Group-template relationship identifier, distinct from templateId. |
| data.tasks[].input.templateName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.tasks[].input.mode | string | When parent exists; see conditions for optional projections | VisualExtract / LayoutExtract | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing mode: VisualExtract or LayoutExtract. |
| data.tasks[].consumption | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource usage for the task. |
| data.tasks[].consumption.pages | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.tasks[].originalFile | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Original-file information and existing link fields. |
| data.tasks[].artifacts | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Availability information for result artifacts. |
| data.tasks[].customJsonExport | boolean | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether a custom JSON export structure was applied. |
| data.tasks[].jsonExportError | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Error applying an export structure; null when no such error occurred. |
| data.tasks[].extractionSource | JSON | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Original extraction data retained when needed for custom export; may be null for ordinary requests. |
| data.tasks[].parseResultUpdated | boolean | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | In update responses, indicates whether the parsing section was modified. |
| data.tasks[].score.reason | string | No | None | When the service provides the diagnostic | Reason for unavailable/failed scoring, such as scoring_disabled. |
| data.tasks[].score.modelFileScore | integer | No | None | When the service provides the diagnostic | Model diagnostic score. Use fileScore for the overall score. |
| data.tasks[].score.scoredFieldCount | integer | No | None | When the service provides the diagnostic | Model-supplied count of scored fields; may be absent. |
E-AUTH, E-RESOURCE, E-INTERNAL
Retry or reprocess a file task.
| Item | Value |
|---|---|
| Method | POST |
| URL | <API_BASE_URL>/api/v2/tasks/{taskId}/retry |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| taskId | string | Yes | None | None | — | Task ID from taskIds in the upload response. | task_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| enable_scoring | boolean | No | Preserve existing value | None | — | Scoring for reprocessing; alias: enableScoring. | false |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request POST "<API_BASE_URL>/api/v2/tasks/task_example/retry" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"taskId": "task_example",
"fileId": "task_example",
"batchId": null,
"status": "pending",
"mode": "VisualExtract",
"startPhase": "extracting",
"createdNewTask": false
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.taskId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Task identifier used for subsequent polling. |
| data.fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.batchId | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Upload-batch identifier; it may be null for historical tasks. |
| data.status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.mode | string | When parent exists; see conditions for optional projections | VisualExtract / LayoutExtract | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing mode: VisualExtract or LayoutExtract. |
| data.startPhase | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing stage: parsing/classifying/extracting; null when no corresponding stage applies. |
| data.createdNewTask | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether a new task was created. Retry returns false and retains the original taskId. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA, E-STATE
Cancel a pending or processing task.
| Item | Value |
|---|---|
| Method | DELETE |
| URL | <API_BASE_URL>/api/v2/tasks/ |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| taskId | string | Yes | None | None | — | Task ID from taskIds in the upload response. | task_example |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request DELETE "<API_BASE_URL>/api/v2/tasks/task_example" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": null
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | null | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-STATE
List templates usable by the current identity.
| Item | Value |
|---|---|
| Method | GET |
| URL | <API_BASE_URL>/api/v2/templates |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| search | string | No | No filter | None | — | Filter by a substring in the template name. | Invoice |
| status | string | No | All | active: enabled; inactive: disabled | — | Filter by template activation state. | active |
Embedded output structure and limitations. Returned id/status/owner fields do not grant privileges or control activation.
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request GET "<API_BASE_URL>/api/v2/templates" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": [
{
"keys": {
"invoice_number": {
"prompt": "Read the invoice number",
"mapping": "invoice_number",
"aliases": [
"Invoice No."
]
},
"invoice_total": {
"prompt": "Read total amount",
"mapping": null,
"aliases": []
}
},
"name": "Invoice Template",
"id": "template_example",
"fileId": "sample_file_example",
"enableScoring": false,
"page": 1,
"status": 1,
"source": "organization",
"editable": true,
"statusEditable": true,
"lifecycle": "published",
"pinned": null,
"groupTemplateId": "group_example",
"ownerType": "tenant",
"ownerUserId": null,
"createdByUserId": "user_example",
"usable": true,
"manageable": true,
"tableHeaders": {
"Items": {
"name": {
"prompt": "Item name",
"mapping": null,
"aliases": []
},
"qty": {
"prompt": "Quantity",
"mapping": null,
"aliases": []
}
}
},
"outputConfigs": null,
"tableOutputConfigs": null,
"elementOrder": [
{
"type": "key",
"name": "invoice_number",
"columnOrder": null
},
{
"type": "key",
"name": "invoice_total",
"columnOrder": null
},
{
"type": "table",
"name": "Items",
"columnOrder": [
"name",
"qty"
]
}
]
}
]
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | array | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business extension supplied by this object; preserve its field and type without treating it as a new endpoint. |
| data[].keys | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template definitions for ordinary fields or table columns. |
| data[].keys.invoice_number | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data[].keys.invoice_number.prompt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].keys.invoice_number.mapping | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].keys.invoice_number.aliases | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].keys.invoice_number.aliases[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].keys.invoice_total | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data[].keys.invoice_total.prompt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].keys.invoice_total.mapping | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].keys.invoice_total.aliases | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data[].id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Identifier of this object; sample items[].id is used for sample deletion, while a template id selects the template. |
| data[].fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data[].enableScoring | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template/task scoring option; the effective task setting takes precedence. |
| data[].page | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data[].status | integer | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data[].source | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template source, such as default or organization. |
| data[].editable | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether the current key identity can edit, change status, use or manage the template. |
| data[].statusEditable | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether the current key identity can edit, change status, use or manage the template. |
| data[].lifecycle | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template lifecycle, such as published; drafts are not ordinary extraction choices. |
| data[].pinned | boolean | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | User pin state; it may be null in a service-key context. |
| data[].groupTemplateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Group-template relationship identifier, distinct from templateId. |
| data[].ownerType | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template ownership type, owner user and creator IDs; submitting these response fields does not grant permissions. |
| data[].ownerUserId | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template ownership type, owner user and creator IDs; submitting these response fields does not grant permissions. |
| data[].createdByUserId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template ownership type, owner user and creator IDs; submitting these response fields does not grant permissions. |
| data[].usable | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether the current key identity can edit, change status, use or manage the template. |
| data[].manageable | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether the current key identity can edit, change status, use or manage the template. |
| data[].tableHeaders | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template definitions for ordinary fields or table columns. |
| data[].tableHeaders.Items | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data[].tableHeaders.Items.name | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data[].tableHeaders.Items.name.prompt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].tableHeaders.Items.name.mapping | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].tableHeaders.Items.name.aliases | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].tableHeaders.Items.qty | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data[].tableHeaders.Items.qty.prompt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].tableHeaders.Items.qty.mapping | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].tableHeaders.Items.qty.aliases | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data[].outputConfigs | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Output configuration for fields or table columns embedded in the template. Separate configuration records are maintained through the associated management functions. |
| data[].tableOutputConfigs | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Output configuration for fields or table columns embedded in the template. Separate configuration records are maintained through the associated management functions. |
| data[].elementOrder | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data[].elementOrder[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data[].elementOrder[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data[].elementOrder[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data[].elementOrder[].columnOrder | array | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data[].elementOrder[].columnOrder[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
E-AUTH, E-RESOURCE, E-INTERNAL
Read ordinary fields, table columns and display order for a template.
| Item | Value |
|---|---|
| Method | GET |
| URL | <API_BASE_URL>/api/v2/templates/{id}/fields |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| id | string | Yes | None | None | — | Template ID, not a sample ID. | template_example |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request GET "<API_BASE_URL>/api/v2/templates/template_example/fields" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"keys": {
"invoice_number": {
"prompt": "Read the invoice number",
"mapping": "invoice_number",
"aliases": [
"Invoice No."
]
},
"invoice_total": {
"prompt": "Read total amount",
"mapping": null,
"aliases": []
}
},
"tableHeaders": {
"Items": {
"name": {
"prompt": "Item name",
"mapping": null,
"aliases": []
},
"qty": {
"prompt": "Quantity",
"mapping": null,
"aliases": []
}
}
},
"elementOrder": [
{
"type": "key",
"name": "invoice_number",
"columnOrder": null
},
{
"type": "key",
"name": "invoice_total",
"columnOrder": null
},
{
"type": "table",
"name": "Items",
"columnOrder": [
"name",
"qty"
]
}
]
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.keys | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template definitions for ordinary fields or table columns. |
| data.keys.invoice_number | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.keys.invoice_number.prompt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.keys.invoice_number.mapping | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.keys.invoice_number.aliases | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.keys.invoice_number.aliases[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.keys.invoice_total | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.keys.invoice_total.prompt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.keys.invoice_total.mapping | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.keys.invoice_total.aliases | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.tableHeaders | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template definitions for ordinary fields or table columns. |
| data.tableHeaders.Items | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.tableHeaders.Items.name | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.tableHeaders.Items.name.prompt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.tableHeaders.Items.name.mapping | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.tableHeaders.Items.name.aliases | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.tableHeaders.Items.qty | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.tableHeaders.Items.qty.prompt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.tableHeaders.Items.qty.mapping | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.tableHeaders.Items.qty.aliases | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field extraction prompt, display mapping name or alternative labels. |
| data.elementOrder | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.elementOrder[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.elementOrder[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.elementOrder[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.elementOrder[].columnOrder | array | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.elementOrder[].columnOrder[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
E-AUTH, E-RESOURCE, E-INTERNAL
Create a template from an already uploaded initial sample.
| Item | Value |
|---|---|
| Method | POST |
| URL | <API_BASE_URL>/api/v2/templates |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | application/json |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| name | string | Required for create; send a complete definition for update | None | None | — | Nonempty template name. | Invoice Template |
| fileId | string | Required for create; preserved by the service on update | None | None | — | sampleFileId returned by the initial sample upload; alias: file_id. | sample_file_example |
| keys | object | At least one of keys/tableHeaders must be nonempty | None | None | — | Map of ordinary field names to field definitions. | {"invoice_number": {"prompt": "Read the invoice number"}} |
| tableHeaders | object | At least one of keys/tableHeaders must be nonempty | None | None | — | Table name to column name to field definition; names belong to the caller template. | {"Items": {"qty": {"prompt": "Quantity"}}} |
| keys.<name>.prompt / tableHeaders.<table>.<column>.prompt | string | No | None | None | — | Describes the field content to extract from the document. | Read the invoice number |
| keys.<name>.mapping / tableHeaders.<table>.<column>.mapping | string | No | Original field name | None | — | Display or mapping name of the field. | invoice_number |
| keys.<name>.aliases / tableHeaders.<table>.<column>.aliases | array<string> | No | [] | None | — | Alternative labels for the same field. | ["Invoice No."] |
| page | integer | No | None | None | — | Selected sample page, normally starting at 1; use an existing page. | 1 |
| enableScoring | boolean | No | None | None | — | Template scoring setting; task upload can override it. Alias: enable_scoring. | false |
| elementOrder | array<object> | No | None | None | — | Display order of ordinary fields and tables. | [{"type": "key", "name": "invoice_number"}] |
| elementOrder[].type | string | Yes | None | key / table | — | key denotes an ordinary field; table denotes a table. | key |
| elementOrder[].name | string | Yes | None | None | — | Must identify a name in keys or tableHeaders. | invoice_number |
| elementOrder[].columnOrder | array<string> | No | None | None | — | Column order for a table; column names must exist in that table. | ["name", "qty"] |
| outputConfigs / tableOutputConfigs | object | No | None | None | — | Compatibility output-configuration data embedded in the template. Creating or updating a template leaves separately stored output-configuration records unchanged. | null |
Embedded output structure and limitations. Returned id/status/owner fields do not grant privileges or control activation.
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request POST "<API_BASE_URL>/api/v2/templates" \
--header "X-API-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data-raw '{
"name": "Invoice Template",
"fileId": "sample_file_example",
"page": 1,
"enableScoring": false,
"keys": {
"invoice_number": {
"prompt": "Read the invoice number",
"mapping": "invoice_number",
"aliases": [
"Invoice No."
]
},
"invoice_total": {
"prompt": "Read the total invoice amount"
}
},
"tableHeaders": {
"Items": {
"name": {
"prompt": "Item name"
},
"qty": {
"prompt": "Quantity"
}
}
},
"elementOrder": [
{
"type": "key",
"name": "invoice_number"
},
{
"type": "key",
"name": "invoice_total"
},
{
"type": "table",
"name": "Items",
"columnOrder": [
"name",
"qty"
]
}
]
}'JSON Body only:
{
"name": "Invoice Template",
"fileId": "sample_file_example",
"page": 1,
"enableScoring": false,
"keys": {
"invoice_number": {
"prompt": "Read the invoice number",
"mapping": "invoice_number",
"aliases": [
"Invoice No."
]
},
"invoice_total": {
"prompt": "Read the total invoice amount"
}
},
"tableHeaders": {
"Items": {
"name": {
"prompt": "Item name"
},
"qty": {
"prompt": "Quantity"
}
}
},
"elementOrder": [
{
"type": "key",
"name": "invoice_number"
},
{
"type": "key",
"name": "invoice_total"
},
{
"type": "table",
"name": "Items",
"columnOrder": [
"name",
"qty"
]
}
]
}HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": "template_example"
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | string | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA
Template objects can contain the following output-configuration fields. Creating or updating a template leaves separately stored configuration records unchanged.
| Field | Type | Default | Meaning |
|---|---|---|---|
| outputType | string | Text | Text/Number/Date/Enum |
| exportFieldName | string|null | Original field name | Export name, not an extraction instruction |
| pageConsistency | string | unknown | unknown: unchecked; consistent: equal expected; inconsistent: differing expected; Visual scoring only |
| conversion | object | {} | Type-specific options: numeric currency/separators/precision, text whitespace/replacement/regex, date outputFormat, enum mapping |
| validation.required | boolean | false | The value must be nonempty; not an HTTP required flag |
| validation.regex | string|null | null | Java regular-expression validation |
| validation.comparison / comparisonValue | string|null | null | gt/gte/eq/lt/lte; comparison value as text |
| validation.failureStrategy / defaultValue | string|null | mark_exception | mark_exception marks an issue; default_value uses the default |
Save a complete template definition.
| Item | Value |
|---|---|
| Method | PUT |
| URL | <API_BASE_URL>/api/v2/templates/ |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | application/json |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| id | string | Yes | None | None | — | Template ID, not a sample ID. | template_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| name | string | Required for create; send a complete definition for update | None | None | — | Nonempty template name. | Invoice Template |
| fileId | string | Required for create; preserved by the service on update | None | None | — | sampleFileId returned by the initial sample upload; alias: file_id. | sample_file_example |
| keys | object | At least one of keys/tableHeaders must be nonempty | None | None | — | Map of ordinary field names to field definitions. | {"invoice_number": {"prompt": "Read the invoice number"}} |
| tableHeaders | object | At least one of keys/tableHeaders must be nonempty | None | None | — | Table name to column name to field definition; names belong to the caller template. | {"Items": {"qty": {"prompt": "Quantity"}}} |
| keys.<name>.prompt / tableHeaders.<table>.<column>.prompt | string | No | None | None | — | Describes the field content to extract from the document. | Read the invoice number |
| keys.<name>.mapping / tableHeaders.<table>.<column>.mapping | string | No | Original field name | None | — | Display or mapping name of the field. | invoice_number |
| keys.<name>.aliases / tableHeaders.<table>.<column>.aliases | array<string> | No | [] | None | — | Alternative labels for the same field. | ["Invoice No."] |
| page | integer | No | None | None | — | Selected sample page, normally starting at 1; use an existing page. | 1 |
| enableScoring | boolean | No | None | None | — | Template scoring setting; task upload can override it. Alias: enable_scoring. | false |
| elementOrder | array<object> | No | None | None | — | Display order of ordinary fields and tables. | [{"type": "key", "name": "invoice_number"}] |
| elementOrder[].type | string | Yes | None | key / table | — | key denotes an ordinary field; table denotes a table. | key |
| elementOrder[].name | string | Yes | None | None | — | Must identify a name in keys or tableHeaders. | invoice_number |
| elementOrder[].columnOrder | array<string> | No | None | None | — | Column order for a table; column names must exist in that table. | ["name", "qty"] |
| outputConfigs / tableOutputConfigs | object | No | None | None | — | Compatibility output-configuration data embedded in the template. Creating or updating a template leaves separately stored output-configuration records unchanged. | null |
Embedded output structure and limitations. Returned id/status/owner fields do not grant privileges or control activation.
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request PUT "<API_BASE_URL>/api/v2/templates/template_example" \
--header "X-API-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data-raw '{
"name": "Invoice Template",
"fileId": "sample_file_example",
"page": 1,
"enableScoring": false,
"keys": {
"invoice_number": {
"prompt": "Read the invoice number",
"mapping": "invoice_number",
"aliases": [
"Invoice No."
]
},
"invoice_total": {
"prompt": "Read the total invoice amount"
}
},
"tableHeaders": {
"Items": {
"name": {
"prompt": "Item name"
},
"qty": {
"prompt": "Quantity"
}
}
},
"elementOrder": [
{
"type": "key",
"name": "invoice_number"
},
{
"type": "key",
"name": "invoice_total"
},
{
"type": "table",
"name": "Items",
"columnOrder": [
"name",
"qty"
]
}
]
}'JSON Body only:
{
"name": "Invoice Template",
"fileId": "sample_file_example",
"page": 1,
"enableScoring": false,
"keys": {
"invoice_number": {
"prompt": "Read the invoice number",
"mapping": "invoice_number",
"aliases": [
"Invoice No."
]
},
"invoice_total": {
"prompt": "Read the total invoice amount"
}
},
"tableHeaders": {
"Items": {
"name": {
"prompt": "Item name"
},
"qty": {
"prompt": "Quantity"
}
}
},
"elementOrder": [
{
"type": "key",
"name": "invoice_number"
},
{
"type": "key",
"name": "invoice_total"
},
{
"type": "table",
"name": "Items",
"columnOrder": [
"name",
"qty"
]
}
]
}HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": null
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | null | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM
Delete a template manageable by the current identity.
| Item | Value |
|---|---|
| Method | DELETE |
| URL | <API_BASE_URL>/api/v2/templates/ |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| id | string | Yes | None | None | — | Template ID, not a sample ID. | template_example |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request DELETE "<API_BASE_URL>/api/v2/templates/template_example" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": null
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | null | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM
Upload an initial sample before creating a template.
| Item | Value |
|---|---|
| Method | POST |
| URL | <API_BASE_URL>/api/v2/templates/samples |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | multipart/form-data |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| file | binary | Yes | None | None | Upload one nonempty document file per request. | One nonempty sample file, supplied as a file part. | @sample.pdf |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request POST "<API_BASE_URL>/api/v2/templates/samples" \
--header "X-API-Key: <API_KEY>" \
--form "[email protected]"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"sampleFileId": "sample_file_example",
"fileName": "sample.pdf",
"fileSize": 102400
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.sampleFileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Underlying sample-file identifier returned before template creation. |
| data.fileName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File name; sourceFileName identifies the original source name. |
| data.fileSize | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File size in bytes, not MB; it may be null for legacy samples with unknown size. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA, E-FORMAT
Append one sample to an existing template, or replace all its sample associations.
| Item | Value |
|---|---|
| Method | POST |
| URL | <API_BASE_URL>/api/v2/templates/{templateId}/samples |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | multipart/form-data |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| templateId | string | Yes | None | None | — | Template ID from listing or creation. | template_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| file | binary | Yes | None | None | Upload one nonempty document file per request. | One nonempty sample file, supplied as a file part. | @sample.pdf |
| replace_all | boolean | No | false | true / false | — | false appends; true replaces all existing sample associations with this new sample. | false |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request POST "<API_BASE_URL>/api/v2/templates/template_example/samples" \
--header "X-API-Key: <API_KEY>" \
--form "[email protected]" \
--form "replace_all=false"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"templateId": "template_example",
"page": 1,
"pageSize": 20,
"total": 1,
"count": 1,
"limit": 5,
"items": [
{
"id": "sample_example",
"fileId": "sample_file_example",
"fileName": "sample.pdf",
"fileSize": 102400,
"status": "processing",
"profileRevision": "revision_example",
"failureReason": null,
"fileType": "pdf",
"uploadedAt": "2026-10-23T08:00:00"
}
],
"profile": {
"activeRevision": "revision_example",
"pendingRevision": "revision_next",
"status": "processing",
"failureReason": null,
"classificationPrompt": null,
"scoringConfig": null
},
"classificationNeedsSave": true,
"deletedSampleId": null
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.templateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.page | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.pageSize | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Effective sample page size from request parameter page_size. |
| data.total | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Total associated samples in a sample page, not the current-page length; total means quota capacity in asset data. |
| data.count | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Total associated samples in a sample page, not the current-page length; total means quota capacity in asset data. |
| data.limit | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Maximum of five samples per template. |
| data.items | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Sample entries on the current page. |
| data.items[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Sample entries on the current page. |
| data.items[].id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Identifier of this object; sample items[].id is used for sample deletion, while a template id selects the template. |
| data.items[].fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.items[].fileName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File name; sourceFileName identifies the original source name. |
| data.items[].fileSize | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File size in bytes, not MB; it may be null for legacy samples with unknown size. |
| data.items[].status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.items[].profileRevision | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Active, pending or sample-associated profile revision; null when no such revision exists. |
| data.items[].failureReason | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.items[].fileType | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File-extension type or MIME content type, as indicated by the field name. |
| data.items[].uploadedAt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Java local date-time string without an explicit UTC offset. It may be null when unknown or unfinished. updateDate is used for exact version comparison. |
| data.profile | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | State and revisions of the template classification profile. |
| data.profile.activeRevision | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Active, pending or sample-associated profile revision; null when no such revision exists. |
| data.profile.pendingRevision | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Active, pending or sample-associated profile revision; null when no such revision exists. |
| data.profile.status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.profile.failureReason | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.profile.classificationPrompt | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Classification prompt associated with the profile; may be null before generation. |
| data.profile.scoringConfig | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Profile scoring configuration, with a structure determined by generation. |
| data.classificationNeedsSave | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether the service reports classification/sample changes still needing a save. |
| data.deletedSampleId | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Deleted sample-association ID; null for other operations. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA, E-SAMPLE, E-FORMAT
List template samples and profile state with pagination.
| Item | Value |
|---|---|
| Method | GET |
| URL | <API_BASE_URL>/api/v2/templates/{templateId}/samples |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| templateId | string | Yes | None | None | — | Template ID from listing or creation. | template_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| page | integer | No | 1 | None | >=1 | One-based page number. | 1 |
| page_size | integer | No | 20 | None | 1–100 | Items per page. | 20 |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request GET "<API_BASE_URL>/api/v2/templates/template_example/samples" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"templateId": "template_example",
"page": 1,
"pageSize": 20,
"total": 1,
"count": 1,
"limit": 5,
"items": [
{
"id": "sample_example",
"fileId": "sample_file_example",
"fileName": "sample.pdf",
"fileSize": 102400,
"status": "active",
"profileRevision": "revision_example",
"failureReason": null,
"fileType": "pdf",
"uploadedAt": "2026-10-23T08:00:00"
}
],
"profile": {
"activeRevision": "revision_example",
"pendingRevision": null,
"status": "active",
"failureReason": null,
"classificationPrompt": null,
"scoringConfig": null
},
"classificationNeedsSave": false,
"deletedSampleId": null
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.templateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.page | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.pageSize | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Effective sample page size from request parameter page_size. |
| data.total | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Total associated samples in a sample page, not the current-page length; total means quota capacity in asset data. |
| data.count | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Total associated samples in a sample page, not the current-page length; total means quota capacity in asset data. |
| data.limit | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Maximum of five samples per template. |
| data.items | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Sample entries on the current page. |
| data.items[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Sample entries on the current page. |
| data.items[].id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Identifier of this object; sample items[].id is used for sample deletion, while a template id selects the template. |
| data.items[].fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.items[].fileName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File name; sourceFileName identifies the original source name. |
| data.items[].fileSize | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File size in bytes, not MB; it may be null for legacy samples with unknown size. |
| data.items[].status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.items[].profileRevision | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Active, pending or sample-associated profile revision; null when no such revision exists. |
| data.items[].failureReason | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.items[].fileType | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File-extension type or MIME content type, as indicated by the field name. |
| data.items[].uploadedAt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Java local date-time string without an explicit UTC offset. It may be null when unknown or unfinished. updateDate is used for exact version comparison. |
| data.profile | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | State and revisions of the template classification profile. |
| data.profile.activeRevision | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Active, pending or sample-associated profile revision; null when no such revision exists. |
| data.profile.pendingRevision | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Active, pending or sample-associated profile revision; null when no such revision exists. |
| data.profile.status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.profile.failureReason | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.profile.classificationPrompt | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Classification prompt associated with the profile; may be null before generation. |
| data.profile.scoringConfig | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Profile scoring configuration, with a structure determined by generation. |
| data.classificationNeedsSave | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether the service reports classification/sample changes still needing a save. |
| data.deletedSampleId | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Deleted sample-association ID; null for other operations. |
E-AUTH, E-RESOURCE, E-INTERNAL
Delete one sample association from a template.
| Item | Value |
|---|---|
| Method | DELETE |
| URL | <API_BASE_URL>/api/v2/templates/{templateId}/samples/ |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| templateId | string | Yes | None | None | — | Template ID from listing or creation. | template_example |
| sampleId | string | Yes | None | None | — | items[].id from the sample list, not fileId. | sample_example |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request DELETE "<API_BASE_URL>/api/v2/templates/template_example/samples/sample_example" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"templateId": "template_example",
"page": 1,
"pageSize": 20,
"total": 1,
"count": 1,
"limit": 5,
"items": [
{
"id": "remaining_sample_example",
"fileId": "remaining_sample_file_example",
"fileName": "remaining-sample.pdf",
"fileSize": 102400,
"status": "active",
"profileRevision": "revision_example",
"failureReason": null,
"fileType": "pdf",
"uploadedAt": "2026-10-23T08:00:00"
}
],
"profile": {
"activeRevision": "revision_example",
"pendingRevision": null,
"status": "active",
"failureReason": null,
"classificationPrompt": null,
"scoringConfig": null
},
"classificationNeedsSave": false,
"deletedSampleId": "sample_example"
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.templateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.page | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.pageSize | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Effective sample page size from request parameter page_size. |
| data.total | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Total associated samples in a sample page, not the current-page length; total means quota capacity in asset data. |
| data.count | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Total associated samples in a sample page, not the current-page length; total means quota capacity in asset data. |
| data.limit | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Maximum of five samples per template. |
| data.items | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Sample entries on the current page. |
| data.items[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Sample entries on the current page. |
| data.items[].id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Identifier of this object; sample items[].id is used for sample deletion, while a template id selects the template. |
| data.items[].fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.items[].fileName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File name; sourceFileName identifies the original source name. |
| data.items[].fileSize | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File size in bytes, not MB; it may be null for legacy samples with unknown size. |
| data.items[].status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.items[].profileRevision | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Active, pending or sample-associated profile revision; null when no such revision exists. |
| data.items[].failureReason | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.items[].fileType | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File-extension type or MIME content type, as indicated by the field name. |
| data.items[].uploadedAt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Java local date-time string without an explicit UTC offset. It may be null when unknown or unfinished. updateDate is used for exact version comparison. |
| data.profile | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | State and revisions of the template classification profile. |
| data.profile.activeRevision | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Active, pending or sample-associated profile revision; null when no such revision exists. |
| data.profile.pendingRevision | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Active, pending or sample-associated profile revision; null when no such revision exists. |
| data.profile.status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.profile.failureReason | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.profile.classificationPrompt | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Classification prompt associated with the profile; may be null before generation. |
| data.profile.scoringConfig | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Profile scoring configuration, with a structure determined by generation. |
| data.classificationNeedsSave | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether the service reports classification/sample changes still needing a save. |
| data.deletedSampleId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Deleted sample-association ID; null for other operations. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-SAMPLE
Add field definitions to an existing task and re-extract.
| Item | Value |
|---|---|
| Method | POST |
| URL | <API_BASE_URL>/api/v2/extract/{fileId}/fields |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | application/json |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| fileId | string | Yes | None | None | — | File ID, normally identical to taskId in this task model. | task_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| keys | object | At least one of keys/tableHeaders | None | None | — | Add or override ordinary field definitions for this task, using the template keys structure. | {"invoice_date": {"prompt": "Read invoice date"}} |
| tableHeaders | object | At least one of keys/tableHeaders | None | None | — | Add table-column definitions using the template tableHeaders structure. | {} |
| enableScoring | boolean | No | Preserve existing setting | None | — | Whether to score re-extraction; alias: enable_scoring. | false |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request POST "<API_BASE_URL>/api/v2/extract/task_example/fields" \
--header "X-API-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data-raw '{
"keys": {
"invoice_date": {
"prompt": "Read invoice date"
}
},
"enableScoring": false
}'JSON Body only:
{
"keys": {
"invoice_date": {
"prompt": "Read invoice date"
}
},
"enableScoring": false
}HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"taskId": "task_example",
"fileId": "task_example",
"batchId": null,
"status": "pending",
"mode": null,
"startPhase": null,
"createdNewTask": null
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.taskId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Task identifier used for subsequent polling. |
| data.fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.batchId | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Upload-batch identifier; it may be null for historical tasks. |
| data.status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.mode | string | null | When parent exists; see conditions for optional projections | VisualExtract / LayoutExtract | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing mode: VisualExtract or LayoutExtract. |
| data.startPhase | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing stage: parsing/classifying/extracting; null when no corresponding stage applies. |
| data.createdNewTask | boolean | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether a new task was created. Retry returns false and retains the original taskId. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA
Read file state, extraction/parsing results, confirmation and scoring.
| Item | Value |
|---|---|
| Method | GET |
| URL | <API_BASE_URL>/api/v2/tasks/ |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Accept-Version | string | No | v2 | v2: legacy; v3: public projection | — | Parser representation version; must agree with parser_version when both are supplied. | v3 |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| taskId | string | Yes | None | None | — | Task ID from taskIds in the upload response. | task_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| parser_version | string | No | v2 | v2 / v3 | — | Alternative to Accept-Version; conflicting selections return 08026. | v3 |
| result_format | string | No | legacy | legacy: original presentation; unified: normalized presentation | — | Controls extraction-result presentation independently of parser v3. | legacy |
| json_export_id | string | No | Configured default, if any | None | — | Select an administrator-configured JSON export format. | export_example |
Parser structure: shared fields. Copy the full GET document before editing; do not overwrite multipage content with a one-element example.
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request GET "<API_BASE_URL>/api/v2/tasks/task_example" \
--header "X-API-Key: <API_KEY>" \
--header "Accept-Version: v3"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"taskId": "task_example",
"fileId": "task_example",
"fileName": "invoice.pdf",
"batchId": "batch_example",
"taskType": "WORKFLOW_VISUAL_EXTRACT",
"templateId": "template_example",
"groupTemplateId": "group_example",
"templateName": "Invoice Template",
"status": "extraction_completed",
"phase": null,
"conversionStatus": "completed",
"confirmStatus": "pending",
"metadata": "{\"source\":\"api\"}",
"error": null,
"failureCode": null,
"failureStage": null,
"createdAt": "2026-10-23T08:00:00",
"completedAt": "2026-10-23T08:00:00",
"updateDate": "2026-10-23T08:00:00",
"output": {
"resultFormat": null,
"fields": {
"invoice_number": "INV-2026-001",
"invoice_total": "100.00"
},
"tables": {
"Items": [
{
"name": "Paper",
"qty": 3
}
]
},
"orderedElements": [
{
"type": "key",
"name": "invoice_number",
"value": "INV-2026-001"
},
{
"type": "key",
"name": "invoice_total",
"value": "100.00"
},
{
"type": "table",
"name": "Items",
"columns": [
"name",
"qty"
],
"rows": [
{
"name": "Paper",
"qty": 3
}
]
}
],
"pages": [
{
"page": 1,
"pageKey": "Page-1",
"sourcePageKey": null,
"tableBboxes": null,
"fields": {
"invoice_number": "INV-2026-001",
"invoice_total": "100.00"
},
"tables": {
"Items": [
{
"name": "Paper",
"qty": 3
}
]
},
"orderedElements": [
{
"type": "key",
"name": "invoice_number",
"value": "INV-2026-001"
},
{
"type": "key",
"name": "invoice_total",
"value": "100.00"
},
{
"type": "table",
"name": "Items",
"columns": [
"name",
"qty"
],
"rows": [
{
"name": "Paper",
"qty": 3
}
]
}
]
}
]
},
"layoutOutput": "{\"api_version\":\"v3\",\"result\":{\"pages\":[{\"page_id\":1,\"page_number\":1,\"width\":1000,\"height\":1400,\"dpi\":144}],\"detail\":[{\"page_id\":1,\"element_id\":1,\"paragraph_id\":1,\"block_id\":\"block_example\",\"type\":\"text\",\"text\":\"Invoice number: INV-2026-001\",\"position\":[10,20,200,60]}]}}",
"apiVersion": "v3",
"fieldExceptions": "[]",
"updatedFields": null,
"extractionResult": {
"resultFormat": null,
"fields": {
"invoice_number": "INV-2026-001",
"invoice_total": "100.00"
},
"tables": {
"Items": [
{
"name": "Paper",
"qty": 3
}
]
},
"orderedElements": [
{
"type": "key",
"name": "invoice_number",
"value": "INV-2026-001"
},
{
"type": "key",
"name": "invoice_total",
"value": "100.00"
},
{
"type": "table",
"name": "Items",
"columns": [
"name",
"qty"
],
"rows": [
{
"name": "Paper",
"qty": 3
}
]
}
],
"pages": [
{
"page": 1,
"pageKey": "Page-1",
"sourcePageKey": null,
"tableBboxes": null,
"fields": {
"invoice_number": "INV-2026-001",
"invoice_total": "100.00"
},
"tables": {
"Items": [
{
"name": "Paper",
"qty": 3
}
]
},
"orderedElements": [
{
"type": "key",
"name": "invoice_number",
"value": "INV-2026-001"
},
{
"type": "key",
"name": "invoice_total",
"value": "100.00"
},
{
"type": "table",
"name": "Items",
"columns": [
"name",
"qty"
],
"rows": [
{
"name": "Paper",
"qty": 3
}
]
}
]
}
]
},
"parsingResult": {
"api_version": "v3",
"result": {
"pages": [
{
"page_id": 1,
"page_number": 1,
"width": 1000,
"height": 1400,
"dpi": 144
}
],
"detail": [
{
"page_id": 1,
"element_id": 1,
"paragraph_id": 1,
"block_id": "block_example",
"type": "text",
"text": "Invoice number: INV-2026-001",
"position": [
10,
20,
200,
60
]
}
]
}
},
"parseResult": {
"api_version": "v3",
"result": {
"pages": [
{
"page_id": 1,
"page_number": 1,
"width": 1000,
"height": 1400,
"dpi": 144
}
],
"detail": [
{
"page_id": 1,
"element_id": 1,
"paragraph_id": 1,
"block_id": "block_example",
"type": "text",
"text": "Invoice number: INV-2026-001",
"position": [
10,
20,
200,
60
]
}
]
}
},
"parseResultStatus": "available",
"fieldExceptionDetails": [],
"score": {
"status": "complete",
"fileScore": 72,
"risk": "medium",
"fields": {
"Page-1.invoice_number": {
"score": 72,
"risk": "medium",
"reasons": [
"low_confidence"
]
}
}
},
"confidence": {
"status": "complete",
"fileScore": 72,
"risk": "medium",
"fields": [
{
"name": "Page-1.invoice_number",
"score": 72,
"risk": "medium",
"deductions": [
"low_confidence"
]
}
]
},
"input": {
"fileId": "task_example",
"templateId": "template_example",
"groupTemplateId": "group_example",
"templateName": "Invoice Template",
"mode": "VisualExtract"
},
"consumption": {
"pages": 1
},
"originalFile": {
"sourceFileName": "invoice.pdf",
"fileName": "invoice.pdf",
"contentType": "application/pdf",
"normalizedPdf": true,
"previewUrl": "<opaque-preview-link>",
"downloadUrl": "<opaque-original-link>"
},
"artifacts": {
"parsingZip": {
"available": true,
"downloadUrl": "<opaque-parsing-link>"
},
"extractionJson": {
"available": true,
"downloadUrl": "<opaque-extraction-link>"
},
"integratedZip": {
"available": false,
"downloadUrl": null
}
},
"customJsonExport": null,
"jsonExportError": null,
"extractionSource": null,
"parseResultUpdated": null
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.taskId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Task identifier used for subsequent polling. |
| data.fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.fileName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File name; sourceFileName identifies the original source name. |
| data.batchId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Upload-batch identifier; it may be null for historical tasks. |
| data.taskType | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Existing task-type identifier, such as WORKFLOW_VISUAL_EXTRACT/WORKFLOW_LAYOUT_EXTRACT; legacy types are retained. |
| data.templateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.groupTemplateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Group-template relationship identifier, distinct from templateId. |
| data.templateName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.phase | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing stage: parsing/classifying/extracting; null when no corresponding stage applies. |
| data.conversionStatus | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File-conversion status, as returned by the service; not a replacement for task stage. |
| data.confirmStatus | string | When parent exists; see conditions for optional projections | pending / confirmed | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Result confirmation state: pending or confirmed, independent of processing state. |
| data.metadata | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Original metadata text from upload; it is not automatically converted to an object. |
| data.error | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.failureCode | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.failureStage | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing stage: parsing/classifying/extracting; null when no corresponding stage applies. |
| data.createdAt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Java local date-time string without an explicit UTC offset. It may be null when unknown or unfinished. updateDate is used for exact version comparison. |
| data.completedAt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Update time of a completed task. Subsequent result edits update this timestamp. |
| data.updateDate | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Java local date-time string without an explicit UTC offset. It may be null when unknown or unfinished. updateDate is used for exact version comparison. |
| data.output | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Extraction result. output retains the compatible representation; extractionResult provides structured fields, tables, ordering and pages. |
| data.output.resultFormat | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | unified when the normalized extraction view is selected; may be absent in the legacy view. |
| data.output.fields | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from business field names to values, or from field paths to score entries within a score object. |
| data.output.fields.invoice_number | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.fields.invoice_total | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.tables | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from table names to row arrays; row keys are business column names. |
| data.output.tables.Items | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.tables.Items[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.tables.Items[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.tables.Items[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.orderedElements | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.output.orderedElements[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.output.orderedElements[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.output.orderedElements[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.orderedElements[].value | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business value of the ordinary field, retaining its JSON type. |
| data.output.orderedElements[].columns | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.orderedElements[].columns[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.orderedElements[].rows | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.orderedElements[].rows[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.orderedElements[].rows[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.orderedElements[].rows[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.output.pages[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.output.pages[].page | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.output.pages[].pageKey | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.output.pages[].sourcePageKey | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.output.pages[].tableBboxes | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.output.pages[].fields | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from business field names to values, or from field paths to score entries within a score object. |
| data.output.pages[].fields.invoice_number | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages[].fields.invoice_total | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages[].tables | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from table names to row arrays; row keys are business column names. |
| data.output.pages[].tables.Items | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages[].tables.Items[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages[].tables.Items[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.pages[].tables.Items[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages[].orderedElements | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.output.pages[].orderedElements[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.output.pages[].orderedElements[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.output.pages[].orderedElements[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.pages[].orderedElements[].value | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business value of the ordinary field, retaining its JSON type. |
| data.output.pages[].orderedElements[].columns | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.pages[].orderedElements[].columns[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.pages[].orderedElements[].rows | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.pages[].orderedElements[].rows[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.pages[].orderedElements[].rows[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.pages[].orderedElements[].rows[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.layoutOutput | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible parser result encoded as a JSON string; parse it before treating it as an object. |
| data.apiVersion | string | When parent exists; see conditions for optional projections | v2 / v3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parser version v2/v3 selected for this response; distinct in naming from api_version inside the parser document. |
| data.fieldExceptions | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Legacy JSON-string representation of validation exceptions. |
| data.updatedFields | array | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Extraction field names involved in this save; not a complete audit trail. |
| data.extractionResult | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Extraction result. output retains the compatible representation; extractionResult provides structured fields, tables, ordering and pages. |
| data.extractionResult.resultFormat | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | unified when the normalized extraction view is selected; may be absent in the legacy view. |
| data.extractionResult.fields | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from business field names to values, or from field paths to score entries within a score object. |
| data.extractionResult.fields.invoice_number | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.fields.invoice_total | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.tables | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from table names to row arrays; row keys are business column names. |
| data.extractionResult.tables.Items | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.tables.Items[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.tables.Items[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.tables.Items[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.orderedElements | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.extractionResult.orderedElements[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.extractionResult.orderedElements[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.extractionResult.orderedElements[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.orderedElements[].value | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business value of the ordinary field, retaining its JSON type. |
| data.extractionResult.orderedElements[].columns | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.orderedElements[].columns[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.orderedElements[].rows | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.orderedElements[].rows[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.orderedElements[].rows[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.orderedElements[].rows[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.extractionResult.pages[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.extractionResult.pages[].page | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.extractionResult.pages[].pageKey | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.extractionResult.pages[].sourcePageKey | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.extractionResult.pages[].tableBboxes | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.extractionResult.pages[].fields | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from business field names to values, or from field paths to score entries within a score object. |
| data.extractionResult.pages[].fields.invoice_number | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages[].fields.invoice_total | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages[].tables | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from table names to row arrays; row keys are business column names. |
| data.extractionResult.pages[].tables.Items | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages[].tables.Items[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages[].tables.Items[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.pages[].tables.Items[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages[].orderedElements | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.extractionResult.pages[].orderedElements[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.extractionResult.pages[].orderedElements[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.extractionResult.pages[].orderedElements[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.pages[].orderedElements[].value | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business value of the ordinary field, retaining its JSON type. |
| data.extractionResult.pages[].orderedElements[].columns | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.pages[].orderedElements[].columns[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.pages[].orderedElements[].rows | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.pages[].orderedElements[].rows[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.pages[].orderedElements[].rows[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.pages[].orderedElements[].rows[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.parsingResult | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible object fields representing the same public parser document; null when no archive is available or reading fails. |
| data.parsingResult.api_version | string | When parent exists; see conditions for optional projections | v2 / v3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parser-document version marker; preserve it when editing v3 data. |
| data.parsingResult.result | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parser-document body wrapper; historical documents without it use the document itself as the body. |
| data.parsingResult.result.pages | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.parsingResult.result.pages[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.parsingResult.result.pages[].page_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.pages[].page_number | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.pages[].width | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parsingResult.result.pages[].height | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parsingResult.result.pages[].dpi | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parsingResult.result.detail | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business extension supplied by this object; preserve its field and type without treating it as a new endpoint. |
| data.parsingResult.result.detail[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business extension supplied by this object; preserve its field and type without treating it as a new endpoint. |
| data.parsingResult.result.detail[].page_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.detail[].element_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.detail[].paragraph_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.detail[].block_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.detail[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parsed element type such as text/table/image; preserve the original business type. |
| data.parsingResult.result.detail[].text | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parsed business content. text is authoritative for text edits; preserve complete table structures. |
| data.parsingResult.result.detail[].position | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parsingResult.result.detail[].position[] | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResult | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible object fields representing the same public parser document; null when no archive is available or reading fails. |
| data.parseResult.api_version | string | When parent exists; see conditions for optional projections | v2 / v3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parser-document version marker; preserve it when editing v3 data. |
| data.parseResult.result | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parser-document body wrapper; historical documents without it use the document itself as the body. |
| data.parseResult.result.pages | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.parseResult.result.pages[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.parseResult.result.pages[].page_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.pages[].page_number | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.pages[].width | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResult.result.pages[].height | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResult.result.pages[].dpi | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResult.result.detail | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business extension supplied by this object; preserve its field and type without treating it as a new endpoint. |
| data.parseResult.result.detail[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business extension supplied by this object; preserve its field and type without treating it as a new endpoint. |
| data.parseResult.result.detail[].page_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.detail[].element_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.detail[].paragraph_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.detail[].block_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.detail[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parsed element type such as text/table/image; preserve the original business type. |
| data.parseResult.result.detail[].text | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parsed business content. text is authoritative for text edits; preserve complete table structures. |
| data.parseResult.result.detail[].position | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResult.result.detail[].position[] | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResultStatus | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | available, not_available, or read_failed. |
| data.fieldExceptionDetails | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Structured field-validation issues; entries depend on the validation result. |
| data.score | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible scoring object with status, overall score, risk and field map; missing scores are not fabricated as zero. |
| data.score.status | string | When parent exists; see conditions for optional projections | pending / complete / failed / missing | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Scoring state, not processing state; missing may indicate scoring is disabled. |
| data.score.fileScore | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Overall score, normally 1–100 in the public view; available only after scoring completes. |
| data.score.risk | string | When parent exists; see conditions for optional projections | low / medium / high | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Model-provided risk level low/medium/high; callers should not infer it from the score. |
| data.score.fields | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object mapping complete field paths to score details. Keys may contain dots; use the full key literally. |
| data.score.fields[<fieldPath>] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.score.fields[<fieldPath>].score | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized numeric score for this field, normally 1–100; not a score object. |
| data.score.fields[<fieldPath>].risk | string | When parent exists; see conditions for optional projections | low / medium / high | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Model-provided risk level low/medium/high; callers should not infer it from the score. |
| data.score.fields[<fieldPath>].reasons | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Reason list for this score entry; it may be empty. |
| data.score.fields[<fieldPath>].reasons[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Overall score 1–100, risk low/medium/high, and reasons/deductions; missing scores are not zero. |
| data.confidence | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | In task results, an additive scoring view; in classification results, a nullable numeric confidence value. |
| data.confidence.status | string | When parent exists; see conditions for optional projections | pending / complete / failed / missing | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Scoring state, not processing state; missing may indicate scoring is disabled. |
| data.confidence.fileScore | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Overall score, normally 1–100 in the public view; available only after scoring completes. |
| data.confidence.risk | string | When parent exists; see conditions for optional projections | low / medium / high | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Model-provided risk level low/medium/high; callers should not infer it from the score. |
| data.confidence.fields | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Array of field-score presentation entries, retained alongside the score.fields object map. |
| data.confidence.fields[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from business field names to values, or from field paths to score entries within a score object. |
| data.confidence.fields[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field-path name of the score entry, such as Page-1.invoice_number. |
| data.confidence.fields[].score | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized numeric score for this field, normally 1–100; not a score object. |
| data.confidence.fields[].risk | string | When parent exists; see conditions for optional projections | low / medium / high | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Model-provided risk level low/medium/high; callers should not infer it from the score. |
| data.confidence.fields[].deductions | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Deduction explanations in the scoring presentation array. |
| data.confidence.fields[].deductions[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Overall score 1–100, risk low/medium/high, and reasons/deductions; missing scores are not zero. |
| data.input | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Task input summary, used to confirm the effective mode and template. |
| data.input.fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.input.templateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.input.groupTemplateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Group-template relationship identifier, distinct from templateId. |
| data.input.templateName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.input.mode | string | When parent exists; see conditions for optional projections | VisualExtract / LayoutExtract | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing mode: VisualExtract or LayoutExtract. |
| data.consumption | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource usage for the task. |
| data.consumption.pages | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.originalFile | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Original-file information and existing link fields. |
| data.originalFile.sourceFileName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File name; sourceFileName identifies the original source name. |
| data.originalFile.fileName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File name; sourceFileName identifies the original source name. |
| data.originalFile.contentType | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File-extension type or MIME content type, as indicated by the field name. |
| data.originalFile.normalizedPdf | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether the source has been normalized to PDF. |
| data.originalFile.previewUrl | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource link. Null when the resource is unavailable; use the authentication required by the destination service. |
| data.originalFile.downloadUrl | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource link. Null when the resource is unavailable; use the authentication required by the destination service. |
| data.artifacts | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Availability information for result artifacts. |
| data.artifacts.parsingZip | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Availability object for a parsing ZIP, extraction JSON or integrated ZIP. |
| data.artifacts.parsingZip.available | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether this artifact exists and can be referenced by this response. |
| data.artifacts.parsingZip.downloadUrl | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource link. Null when the resource is unavailable; use the authentication required by the destination service. |
| data.artifacts.extractionJson | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Availability object for a parsing ZIP, extraction JSON or integrated ZIP. |
| data.artifacts.extractionJson.available | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether this artifact exists and can be referenced by this response. |
| data.artifacts.extractionJson.downloadUrl | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource link. Null when the resource is unavailable; use the authentication required by the destination service. |
| data.artifacts.integratedZip | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Availability object for a parsing ZIP, extraction JSON or integrated ZIP. |
| data.artifacts.integratedZip.available | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether this artifact exists and can be referenced by this response. |
| data.artifacts.integratedZip.downloadUrl | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource link. Null when the resource is unavailable; use the authentication required by the destination service. |
| data.customJsonExport | boolean | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether a custom JSON export structure was applied. |
| data.jsonExportError | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Error applying an export structure; null when no such error occurred. |
| data.extractionSource | JSON | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Original extraction data retained when needed for custom export; may be null for ordinary requests. |
| data.parseResultUpdated | boolean | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | In update responses, indicates whether the parsing section was modified. |
| data.score.reason | string | No | None | When the service provides the diagnostic | Reason for unavailable/failed scoring, such as scoring_disabled. |
| data.score.modelFileScore | integer | No | None | When the service provides the diagnostic | Model diagnostic score. Use fileScore for the overall score. |
| data.score.scoredFieldCount | integer | No | None | When the service provides the diagnostic | Model-supplied count of scored fields; may be absent. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-VERSION
P11 and P12 use the following parser-document structure. Preserve pages, coordinates, DPI and other public properties when updating a document.
| Field | Type | Required/condition | Meaning |
|---|---|---|---|
| api_version | string | Optional; preserve when editing v3 data | Version marker, not a substitute for the request selector. |
| result | object | Preserve when the wrapper exists | Body wrapper; historical documents without result use the root. Do not mix two pages/detail locations. |
| result.pages | array<object> | Required when editing | Complete retained page list, including blank pages. |
| result.pages[].page_id | integer | Yes | Positive, unique page ID; do not substitute an array index. |
| result.pages[].page_number / width / height / dpi | number / original type | Preserve when present | Page number, dimensions and DPI; preserve values/units rather than hard-coding 72/144. |
| result.detail | array<object> | Provide the complete list for ordinary edits | Authoritative content-element list; explicit [] removes all content and must not be reconstructed from old structured/content. |
| result.detail[].page_id | integer | Yes | Must reference an existing page in pages. |
| result.detail[].element_id / paragraph_id | integer | A valid element ID is required | Positive and unique within the page; aliases must agree when both are supplied. |
| result.detail[].block_id | string / original type | Preserve when present | Model reference; not a replacement for element_id. |
| result.detail[].type | string | Preserve original type | For example text/table/image; preserve the returned business type. |
| result.detail[].text / html / markdown / content | string or JSON | According to element type and original data | text is authoritative, including an empty string; preserve table HTML and other structures. |
| result.detail[].position / bbox / image / image_url / url | array or JSON | Preserve when present | Coordinates or image references; preserve coordinate units and archive-relative locations. |
| result.detail[].cells / cols / columns / rows / table | JSON | Preserve for tables when present | Structured table properties. Preserve associated rows, columns and cells when editing html. |
| result.detail[].continue / next_page_id / next_para_id | JSON | When cross-page relations exist | Cross-page relationship metadata; preserve references. |
| result.detail[].confidence / score / category / label / additional properties | JSON | As returned | Additional public properties returned by the model. Preserve their names, types and values during updates. |
Manually update results of a completed, unconfirmed task.
| Item | Value |
|---|---|
| Method | PUT |
| URL | <API_BASE_URL>/api/v2/tasks/ |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | application/json |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Accept-Version | string | No | v2 | v2: legacy; v3: public projection | — | Parser representation version; must agree with parser_version when both are supplied. | v3 |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| taskId | string | Yes | None | None | — | Task ID from taskIds in the upload response. | task_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| parser_version | string | No | v2 | v2 / v3 | — | Alternative to Accept-Version; conflicting selections return 08026. | v3 |
| result_format | string | No | legacy | legacy: original presentation; unified: normalized presentation | — | Controls extraction-result presentation independently of parser v3. | legacy |
| json_export_id | string | No | Configured default, if any | None | — | Select an administrator-configured JSON export format. | export_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| fields | object | At least one of fields/tables/parse_result | Omission leaves this section unchanged | None | — | Complete replacement of ordinary fields. Keys are business field names; preserve value types. | |
| tables | object | At least one of the three sections | Omission leaves this section unchanged | None | — | Table name to row array; replaces the submitted table section. Row keys are actual column names. | {"Items": [{"name": "Paper", "qty": 3}]} |
| parse_result | object | At least one of the three sections | Omission leaves parsing unchanged | None | — | Complete public parser document. Copy the GET result before editing; alias: parseResult. See shared structures. | null |
| confirm | boolean | No | true | None | — | Whether to confirm the result in this request. false does not prevent later scoring-based auto-confirmation. | false |
| expectedUpdateDate | string | No | No comparison of this version token | None | — | Exact updateDate from the latest GET response; do not change its time zone or precision. | 2026-10-23T08:00:00 |
Parser structure: shared fields. Copy the full GET document before editing; do not overwrite multipage content with a one-element example.
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request PUT "<API_BASE_URL>/api/v2/tasks/task_example" \
--header "X-API-Key: <API_KEY>" \
--header "Accept-Version: v3" \
--header "Content-Type: application/json" \
--data-raw '{
"fields": {
"invoice_number": "INV-2026-002",
"invoice_total": "100.00"
},
"tables": {
"Items": [
{
"name": "Paper",
"qty": 3
}
]
},
"parse_result": {
"api_version": "v3",
"result": {
"pages": [
{
"page_id": 1,
"width": 1000,
"height": 1400,
"dpi": 144,
"page_number": 1
}
],
"detail": [
{
"page_id": 1,
"element_id": 1,
"paragraph_id": 1,
"type": "text",
"text": "Invoice number: INV-2026-002",
"position": [
10,
20,
200,
60
],
"block_id": "block_example"
}
]
}
},
"confirm": false,
"expectedUpdateDate": "2026-10-23T08:00:00"
}'JSON Body only:
{
"fields": {
"invoice_number": "INV-2026-002",
"invoice_total": "100.00"
},
"tables": {
"Items": [
{
"name": "Paper",
"qty": 3
}
]
},
"parse_result": {
"api_version": "v3",
"result": {
"pages": [
{
"page_id": 1,
"width": 1000,
"height": 1400,
"dpi": 144,
"page_number": 1
}
],
"detail": [
{
"page_id": 1,
"element_id": 1,
"paragraph_id": 1,
"type": "text",
"text": "Invoice number: INV-2026-002",
"position": [
10,
20,
200,
60
],
"block_id": "block_example"
}
]
}
},
"confirm": false,
"expectedUpdateDate": "2026-10-23T08:00:00"
}HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"taskId": "task_example",
"fileId": "task_example",
"fileName": "invoice.pdf",
"batchId": "batch_example",
"taskType": "WORKFLOW_VISUAL_EXTRACT",
"templateId": "template_example",
"groupTemplateId": "group_example",
"templateName": "Invoice Template",
"status": "extraction_completed",
"phase": null,
"conversionStatus": "completed",
"confirmStatus": "pending",
"metadata": "{\"source\":\"api\"}",
"error": null,
"failureCode": null,
"failureStage": null,
"createdAt": "2026-10-23T08:00:00",
"completedAt": "2026-10-23T08:01:00",
"updateDate": "2026-10-23T08:01:00",
"output": {
"resultFormat": null,
"fields": {
"invoice_number": "INV-2026-002",
"invoice_total": "100.00"
},
"tables": {
"Items": [
{
"name": "Paper",
"qty": 3
}
]
},
"orderedElements": [
{
"type": "key",
"name": "invoice_number",
"value": "INV-2026-002"
},
{
"type": "key",
"name": "invoice_total",
"value": "100.00"
},
{
"type": "table",
"name": "Items",
"columns": [
"name",
"qty"
],
"rows": [
{
"name": "Paper",
"qty": 3
}
]
}
],
"pages": [
{
"page": 1,
"pageKey": "Page-1",
"sourcePageKey": null,
"tableBboxes": null,
"fields": {
"invoice_number": "INV-2026-002",
"invoice_total": "100.00"
},
"tables": {
"Items": [
{
"name": "Paper",
"qty": 3
}
]
},
"orderedElements": [
{
"type": "key",
"name": "invoice_number",
"value": "INV-2026-002"
},
{
"type": "key",
"name": "invoice_total",
"value": "100.00"
},
{
"type": "table",
"name": "Items",
"columns": [
"name",
"qty"
],
"rows": [
{
"name": "Paper",
"qty": 3
}
]
}
]
}
]
},
"layoutOutput": "{\"api_version\":\"v3\",\"result\":{\"pages\":[{\"page_id\":1,\"width\":1000,\"height\":1400,\"dpi\":144,\"page_number\":1}],\"detail\":[{\"page_id\":1,\"element_id\":1,\"paragraph_id\":1,\"type\":\"text\",\"text\":\"Invoice number: INV-2026-002\",\"position\":[10,20,200,60],\"block_id\":\"block_example\"}]}}",
"apiVersion": "v3",
"fieldExceptions": "[]",
"updatedFields": [
"invoice_number",
"invoice_total",
"Items"
],
"extractionResult": {
"resultFormat": null,
"fields": {
"invoice_number": "INV-2026-002",
"invoice_total": "100.00"
},
"tables": {
"Items": [
{
"name": "Paper",
"qty": 3
}
]
},
"orderedElements": [
{
"type": "key",
"name": "invoice_number",
"value": "INV-2026-002"
},
{
"type": "key",
"name": "invoice_total",
"value": "100.00"
},
{
"type": "table",
"name": "Items",
"columns": [
"name",
"qty"
],
"rows": [
{
"name": "Paper",
"qty": 3
}
]
}
],
"pages": [
{
"page": 1,
"pageKey": "Page-1",
"sourcePageKey": null,
"tableBboxes": null,
"fields": {
"invoice_number": "INV-2026-002",
"invoice_total": "100.00"
},
"tables": {
"Items": [
{
"name": "Paper",
"qty": 3
}
]
},
"orderedElements": [
{
"type": "key",
"name": "invoice_number",
"value": "INV-2026-002"
},
{
"type": "key",
"name": "invoice_total",
"value": "100.00"
},
{
"type": "table",
"name": "Items",
"columns": [
"name",
"qty"
],
"rows": [
{
"name": "Paper",
"qty": 3
}
]
}
]
}
]
},
"parsingResult": {
"api_version": "v3",
"result": {
"pages": [
{
"page_id": 1,
"width": 1000,
"height": 1400,
"dpi": 144,
"page_number": 1
}
],
"detail": [
{
"page_id": 1,
"element_id": 1,
"paragraph_id": 1,
"type": "text",
"text": "Invoice number: INV-2026-002",
"position": [
10,
20,
200,
60
],
"block_id": "block_example"
}
]
}
},
"parseResult": {
"api_version": "v3",
"result": {
"pages": [
{
"page_id": 1,
"width": 1000,
"height": 1400,
"dpi": 144,
"page_number": 1
}
],
"detail": [
{
"page_id": 1,
"element_id": 1,
"paragraph_id": 1,
"type": "text",
"text": "Invoice number: INV-2026-002",
"position": [
10,
20,
200,
60
],
"block_id": "block_example"
}
]
}
},
"parseResultStatus": "available",
"fieldExceptionDetails": [],
"score": {
"status": "complete",
"fileScore": 72,
"risk": "medium",
"fields": {
"Page-1.invoice_number": {
"score": 72,
"risk": "medium",
"reasons": [
"low_confidence"
]
}
}
},
"confidence": {
"status": "complete",
"fileScore": 72,
"risk": "medium",
"fields": [
{
"name": "Page-1.invoice_number",
"score": 72,
"risk": "medium",
"deductions": [
"low_confidence"
]
}
]
},
"input": {
"fileId": "task_example",
"templateId": "template_example",
"groupTemplateId": "group_example",
"templateName": "Invoice Template",
"mode": "VisualExtract"
},
"consumption": {
"pages": 1
},
"originalFile": {
"sourceFileName": "invoice.pdf",
"fileName": "invoice.pdf",
"contentType": "application/pdf",
"normalizedPdf": true,
"previewUrl": "<opaque-preview-link>",
"downloadUrl": "<opaque-original-link>"
},
"artifacts": {
"parsingZip": {
"available": true,
"downloadUrl": "<opaque-parsing-link>"
},
"extractionJson": {
"available": true,
"downloadUrl": "<opaque-extraction-link>"
},
"integratedZip": {
"available": false,
"downloadUrl": null
}
},
"customJsonExport": null,
"jsonExportError": null,
"extractionSource": null,
"parseResultUpdated": true
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.taskId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Task identifier used for subsequent polling. |
| data.fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.fileName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File name; sourceFileName identifies the original source name. |
| data.batchId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Upload-batch identifier; it may be null for historical tasks. |
| data.taskType | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Existing task-type identifier, such as WORKFLOW_VISUAL_EXTRACT/WORKFLOW_LAYOUT_EXTRACT; legacy types are retained. |
| data.templateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.groupTemplateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Group-template relationship identifier, distinct from templateId. |
| data.templateName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.phase | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing stage: parsing/classifying/extracting; null when no corresponding stage applies. |
| data.conversionStatus | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File-conversion status, as returned by the service; not a replacement for task stage. |
| data.confirmStatus | string | When parent exists; see conditions for optional projections | pending / confirmed | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Result confirmation state: pending or confirmed, independent of processing state. |
| data.metadata | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Original metadata text from upload; it is not automatically converted to an object. |
| data.error | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.failureCode | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Failure information, usually null outside failures. Use stable codes/stages rather than parsing message text. |
| data.failureStage | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing stage: parsing/classifying/extracting; null when no corresponding stage applies. |
| data.createdAt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Java local date-time string without an explicit UTC offset. It may be null when unknown or unfinished. updateDate is used for exact version comparison. |
| data.completedAt | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Update time of a completed task. Subsequent result edits update this timestamp. |
| data.updateDate | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Java local date-time string without an explicit UTC offset. It may be null when unknown or unfinished. updateDate is used for exact version comparison. |
| data.output | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Extraction result. output retains the compatible representation; extractionResult provides structured fields, tables, ordering and pages. |
| data.output.resultFormat | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | unified when the normalized extraction view is selected; may be absent in the legacy view. |
| data.output.fields | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from business field names to values, or from field paths to score entries within a score object. |
| data.output.fields.invoice_number | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.fields.invoice_total | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.tables | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from table names to row arrays; row keys are business column names. |
| data.output.tables.Items | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.tables.Items[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.tables.Items[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.tables.Items[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.orderedElements | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.output.orderedElements[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.output.orderedElements[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.output.orderedElements[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.orderedElements[].value | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business value of the ordinary field, retaining its JSON type. |
| data.output.orderedElements[].columns | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.orderedElements[].columns[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.orderedElements[].rows | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.orderedElements[].rows[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.orderedElements[].rows[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.orderedElements[].rows[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.output.pages[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.output.pages[].page | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.output.pages[].pageKey | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.output.pages[].sourcePageKey | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.output.pages[].tableBboxes | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.output.pages[].fields | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from business field names to values, or from field paths to score entries within a score object. |
| data.output.pages[].fields.invoice_number | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages[].fields.invoice_total | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages[].tables | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from table names to row arrays; row keys are business column names. |
| data.output.pages[].tables.Items | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages[].tables.Items[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages[].tables.Items[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.pages[].tables.Items[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.output.pages[].orderedElements | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.output.pages[].orderedElements[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.output.pages[].orderedElements[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.output.pages[].orderedElements[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.pages[].orderedElements[].value | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business value of the ordinary field, retaining its JSON type. |
| data.output.pages[].orderedElements[].columns | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.pages[].orderedElements[].columns[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.pages[].orderedElements[].rows | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.pages[].orderedElements[].rows[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.output.pages[].orderedElements[].rows[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.output.pages[].orderedElements[].rows[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.layoutOutput | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible parser result encoded as a JSON string; parse it before treating it as an object. |
| data.apiVersion | string | When parent exists; see conditions for optional projections | v2 / v3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parser version v2/v3 selected for this response; distinct in naming from api_version inside the parser document. |
| data.fieldExceptions | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Legacy JSON-string representation of validation exceptions. |
| data.updatedFields | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Extraction field names involved in this save; not a complete audit trail. |
| data.updatedFields[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Extraction field names involved in this save; not a complete audit trail. |
| data.extractionResult | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Extraction result. output retains the compatible representation; extractionResult provides structured fields, tables, ordering and pages. |
| data.extractionResult.resultFormat | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | unified when the normalized extraction view is selected; may be absent in the legacy view. |
| data.extractionResult.fields | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from business field names to values, or from field paths to score entries within a score object. |
| data.extractionResult.fields.invoice_number | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.fields.invoice_total | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.tables | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from table names to row arrays; row keys are business column names. |
| data.extractionResult.tables.Items | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.tables.Items[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.tables.Items[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.tables.Items[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.orderedElements | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.extractionResult.orderedElements[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.extractionResult.orderedElements[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.extractionResult.orderedElements[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.orderedElements[].value | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business value of the ordinary field, retaining its JSON type. |
| data.extractionResult.orderedElements[].columns | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.orderedElements[].columns[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.orderedElements[].rows | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.orderedElements[].rows[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.orderedElements[].rows[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.orderedElements[].rows[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.extractionResult.pages[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.extractionResult.pages[].page | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.extractionResult.pages[].pageKey | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.extractionResult.pages[].sourcePageKey | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Pagination page number or logical result-page number/key; sourcePageKey preserves the original key. |
| data.extractionResult.pages[].tableBboxes | object | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.extractionResult.pages[].fields | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from business field names to values, or from field paths to score entries within a score object. |
| data.extractionResult.pages[].fields.invoice_number | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages[].fields.invoice_total | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages[].tables | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from table names to row arrays; row keys are business column names. |
| data.extractionResult.pages[].tables.Items | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages[].tables.Items[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages[].tables.Items[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.pages[].tables.Items[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.extractionResult.pages[].orderedElements | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.extractionResult.pages[].orderedElements[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Ordered presentation entries for fields and tables. |
| data.extractionResult.pages[].orderedElements[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Template display ordering: type is key/table, name selects a field/table, and columnOrder specifies column order. |
| data.extractionResult.pages[].orderedElements[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.pages[].orderedElements[].value | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business value of the ordinary field, retaining its JSON type. |
| data.extractionResult.pages[].orderedElements[].columns | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.pages[].orderedElements[].columns[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.pages[].orderedElements[].rows | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.pages[].orderedElements[].rows[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Image, classification, table or cross-page relation properties of parsed elements; preserve returned business attributes rather than deleting them by an incomplete whitelist. |
| data.extractionResult.pages[].orderedElements[].rows[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.extractionResult.pages[].orderedElements[].rows[].qty | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.parsingResult | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible object fields representing the same public parser document; null when no archive is available or reading fails. |
| data.parsingResult.api_version | string | When parent exists; see conditions for optional projections | v2 / v3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parser-document version marker; preserve it when editing v3 data. |
| data.parsingResult.result | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parser-document body wrapper; historical documents without it use the document itself as the body. |
| data.parsingResult.result.pages | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.parsingResult.result.pages[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.parsingResult.result.pages[].page_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.pages[].page_number | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.pages[].width | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parsingResult.result.pages[].height | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parsingResult.result.pages[].dpi | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parsingResult.result.detail | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business extension supplied by this object; preserve its field and type without treating it as a new endpoint. |
| data.parsingResult.result.detail[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business extension supplied by this object; preserve its field and type without treating it as a new endpoint. |
| data.parsingResult.result.detail[].page_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.detail[].element_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.detail[].paragraph_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.detail[].block_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parsingResult.result.detail[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parsed element type such as text/table/image; preserve the original business type. |
| data.parsingResult.result.detail[].text | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parsed business content. text is authoritative for text edits; preserve complete table structures. |
| data.parsingResult.result.detail[].position | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parsingResult.result.detail[].position[] | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResult | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible object fields representing the same public parser document; null when no archive is available or reading fails. |
| data.parseResult.api_version | string | When parent exists; see conditions for optional projections | v2 / v3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parser-document version marker; preserve it when editing v3 data. |
| data.parseResult.result | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parser-document body wrapper; historical documents without it use the document itself as the body. |
| data.parseResult.result.pages | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.parseResult.result.pages[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.parseResult.result.pages[].page_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.pages[].page_number | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.pages[].width | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResult.result.pages[].height | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResult.result.pages[].dpi | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResult.result.detail | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business extension supplied by this object; preserve its field and type without treating it as a new endpoint. |
| data.parseResult.result.detail[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business extension supplied by this object; preserve its field and type without treating it as a new endpoint. |
| data.parseResult.result.detail[].page_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.detail[].element_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.detail[].paragraph_id | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.detail[].block_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page/element/model-reference IDs. Edit using page_id+element_id; paragraph_id is a compatible alias and must agree. Do not renumber block_id. |
| data.parseResult.result.detail[].type | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parsed element type such as text/table/image; preserve the original business type. |
| data.parseResult.result.detail[].text | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Parsed business content. text is authoritative for text edits; preserve complete table structures. |
| data.parseResult.result.detail[].position | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResult.result.detail[].position[] | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Page dimensions, resolution or position coordinates; preserve units and values. |
| data.parseResultStatus | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | available, not_available, or read_failed. |
| data.fieldExceptionDetails | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Structured field-validation issues; entries depend on the validation result. |
| data.score | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible scoring object with status, overall score, risk and field map; missing scores are not fabricated as zero. |
| data.score.status | string | When parent exists; see conditions for optional projections | pending / complete / failed / missing | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Scoring state, not processing state; missing may indicate scoring is disabled. |
| data.score.fileScore | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Overall score, normally 1–100 in the public view; available only after scoring completes. |
| data.score.risk | string | When parent exists; see conditions for optional projections | low / medium / high | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Model-provided risk level low/medium/high; callers should not infer it from the score. |
| data.score.fields | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object mapping complete field paths to score details. Keys may contain dots; use the full key literally. |
| data.score.fields[<fieldPath>] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business field/column in the example template. Actual keys are defined by the template; preserve their JSON types. |
| data.score.fields[<fieldPath>].score | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized numeric score for this field, normally 1–100; not a score object. |
| data.score.fields[<fieldPath>].risk | string | When parent exists; see conditions for optional projections | low / medium / high | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Model-provided risk level low/medium/high; callers should not infer it from the score. |
| data.score.fields[<fieldPath>].reasons | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Reason list for this score entry; it may be empty. |
| data.score.fields[<fieldPath>].reasons[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Overall score 1–100, risk low/medium/high, and reasons/deductions; missing scores are not zero. |
| data.confidence | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | In task results, an additive scoring view; in classification results, a nullable numeric confidence value. |
| data.confidence.status | string | When parent exists; see conditions for optional projections | pending / complete / failed / missing | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Scoring state, not processing state; missing may indicate scoring is disabled. |
| data.confidence.fileScore | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Overall score, normally 1–100 in the public view; available only after scoring completes. |
| data.confidence.risk | string | When parent exists; see conditions for optional projections | low / medium / high | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Model-provided risk level low/medium/high; callers should not infer it from the score. |
| data.confidence.fields | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Array of field-score presentation entries, retained alongside the score.fields object map. |
| data.confidence.fields[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Map from business field names to values, or from field paths to score entries within a score object. |
| data.confidence.fields[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Field-path name of the score entry, such as Page-1.invoice_number. |
| data.confidence.fields[].score | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized numeric score for this field, normally 1–100; not a score object. |
| data.confidence.fields[].risk | string | When parent exists; see conditions for optional projections | low / medium / high | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Model-provided risk level low/medium/high; callers should not infer it from the score. |
| data.confidence.fields[].deductions | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Deduction explanations in the scoring presentation array. |
| data.confidence.fields[].deductions[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Overall score 1–100, risk low/medium/high, and reasons/deductions; missing scores are not zero. |
| data.input | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Task input summary, used to confirm the effective mode and template. |
| data.input.fileId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File identifier; normally equals taskId for business tasks, but sample files are separate. |
| data.input.templateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.input.groupTemplateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Group-template relationship identifier, distinct from templateId. |
| data.input.templateName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.input.mode | string | When parent exists; see conditions for optional projections | VisualExtract / LayoutExtract | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Processing mode: VisualExtract or LayoutExtract. |
| data.consumption | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource usage for the task. |
| data.consumption.pages | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | A page count under consumption, or an array of pages under result data. |
| data.originalFile | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Original-file information and existing link fields. |
| data.originalFile.sourceFileName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File name; sourceFileName identifies the original source name. |
| data.originalFile.fileName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File name; sourceFileName identifies the original source name. |
| data.originalFile.contentType | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | File-extension type or MIME content type, as indicated by the field name. |
| data.originalFile.normalizedPdf | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether the source has been normalized to PDF. |
| data.originalFile.previewUrl | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource link. Null when the resource is unavailable; use the authentication required by the destination service. |
| data.originalFile.downloadUrl | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource link. Null when the resource is unavailable; use the authentication required by the destination service. |
| data.artifacts | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Availability information for result artifacts. |
| data.artifacts.parsingZip | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Availability object for a parsing ZIP, extraction JSON or integrated ZIP. |
| data.artifacts.parsingZip.available | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether this artifact exists and can be referenced by this response. |
| data.artifacts.parsingZip.downloadUrl | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource link. Null when the resource is unavailable; use the authentication required by the destination service. |
| data.artifacts.extractionJson | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Availability object for a parsing ZIP, extraction JSON or integrated ZIP. |
| data.artifacts.extractionJson.available | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether this artifact exists and can be referenced by this response. |
| data.artifacts.extractionJson.downloadUrl | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource link. Null when the resource is unavailable; use the authentication required by the destination service. |
| data.artifacts.integratedZip | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Availability object for a parsing ZIP, extraction JSON or integrated ZIP. |
| data.artifacts.integratedZip.available | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether this artifact exists and can be referenced by this response. |
| data.artifacts.integratedZip.downloadUrl | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Resource link. Null when the resource is unavailable; use the authentication required by the destination service. |
| data.customJsonExport | boolean | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether a custom JSON export structure was applied. |
| data.jsonExportError | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Error applying an export structure; null when no such error occurred. |
| data.extractionSource | JSON | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Original extraction data retained when needed for custom export; may be null for ordinary requests. |
| data.parseResultUpdated | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | In update responses, indicates whether the parsing section was modified. |
| data.score.reason | string | No | None | When the service provides the diagnostic | Reason for unavailable/failed scoring, such as scoring_disabled. |
| data.score.modelFileScore | integer | No | None | When the service provides the diagnostic | Model diagnostic score. Use fileScore for the overall score. |
| data.score.scoredFieldCount | integer | No | None | When the service provides the diagnostic | Model-supplied count of scored fields; may be absent. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-STATE, E-VERSION
Read current file-classification status and the associated template.
| Item | Value |
|---|---|
| Method | GET |
| URL | <API_BASE_URL>/api/v2/classify/{taskId}/result |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| taskId | string | Yes | None | None | — | Task ID from taskIds in the upload response. | task_example |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request GET "<API_BASE_URL>/api/v2/classify/task_example/result" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"taskId": "task_example",
"status": "completed",
"templateId": "template_example",
"templateName": "Invoice Template",
"confidence": null,
"metadata": "{\"source\":\"api\"}"
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.taskId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Task identifier used for subsequent polling. |
| data.status | string | When parent exists; see conditions for optional projections | Object-specific; see S1/S3 | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.templateId | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.templateName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.confidence | number | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | In task results, an additive scoring view; in classification results, a nullable numeric confidence value. |
| data.metadata | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Original metadata text from upload; it is not automatically converted to an object. |
E-AUTH, E-RESOURCE, E-INTERNAL
Create a reminder rule for the current tenant.
| Item | Value |
|---|---|
| Method | POST |
| URL | <API_BASE_URL>/api/v2/rules |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | application/json |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| name | string | Required for create; optional for update | None | None | 1–50 characters; unique within the current tenant | Rule name; omitted update fields are preserved. | Invoice Review Rule |
| template_id | string | Required for create; optional for update | None | None | — | Associated template ID. | template_example |
| frequency | string | Required for create; optional for update | None | daily; hourly; on_extract_complete after extraction; on_result_confirm after confirmation | — | Trigger schedule or event. | on_extract_complete |
| conditions | array<object> | Required and nonempty for create; optional for update | None | None | — | List of trigger conditions. | [{"field": "score", "operator": "lt", "value": 80}] |
| channels | array<string> | Required and nonempty for create; optional for update | None | in_app: in-app; email: email; webhook: callback | — | Notification channels; an enabled channel does not prove successful delivery. | ["in_app"] |
| recipients | object | Required for create; optional for update | None | None | — | Recipient configuration; see nested fields. | |
| title_template | string | Required for create; optional for update | None | None | 1–100 characters | Notification title template supporting event variables such as {file_name}. | Review |
| content_template | string | Required for create; optional for update | None | None | 1–500 characters | Notification body using supplied event-field variables. | Please review {file_name}. |
| status | string | Optional for update; create defaults to active | active | active: enabled; inactive: disabled | — | Rule activation state; this field does not override the initial state on creation. | inactive |
| conditions[].field | string | Yes | None | None | — | System field score/review_status/processing_status, or fields.<business-field>. | score |
| conditions[].operator | string | Yes | None | None | — | score supports eq/ne/gt/gte/lt/lte/between/not_between; status fields support eq/ne/in/not_in. | lt |
| conditions[].value | JSON | Yes | None | None | — | Use a number from 1–100 for score; two ordered numbers for ranges; a string for status eq/ne or an array for in/not_in. | 80 |
| conditions[].logic | string | No | AND | AND / OR | — | AND requires all; OR allows any. | AND |
| recipients.members | array<string> | No | [] | None | — | Active user IDs in this tenant, at most 50 distinct IDs; not membership-record IDs. | ["user_example"] |
| recipients.emails | array<string> | No | [] | None | — | Additional email addresses, validated and deduplicated for delivery. | ["[email protected]"] |
| recipients.field_bindings | array<string> | No | [] | None | — | Read recipient addresses from event fields, such as fields.contact_email. | ["fields.contact_email"] |
| recipients.webhook_ids | array<string> | Required when channels includes webhook | [] | None | — | Configured active callback IDs in the tenant subscribed to the rule_triggered event. | ["webhook_example"] |
| recipients.departments | array | No | [] | None | — | Department lists are not used for recipient resolution. Configure recipients through members, emails, field_bindings or webhook_ids. | [] |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request POST "<API_BASE_URL>/api/v2/rules" \
--header "X-API-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data-raw '{
"name": "Invoice Review Rule",
"template_id": "template_example",
"frequency": "on_extract_complete",
"conditions": [
{
"field": "score",
"operator": "lt",
"value": 80,
"logic": "AND"
}
],
"channels": [
"in_app"
],
"recipients": {
"members": [
"user_example"
]
},
"title_template": "Review {file_name}",
"content_template": "Please review {file_name}."
}'JSON Body only:
{
"name": "Invoice Review Rule",
"template_id": "template_example",
"frequency": "on_extract_complete",
"conditions": [
{
"field": "score",
"operator": "lt",
"value": 80,
"logic": "AND"
}
],
"channels": [
"in_app"
],
"recipients": {
"members": [
"user_example"
]
},
"title_template": "Review {file_name}",
"content_template": "Please review {file_name}."
}HTTP 201
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 0,
"message": "success",
"data": {
"rule_id": "rule_example",
"name": "Invoice Review Rule",
"status": "active",
"created_at": "2026-10-23T08:00:00Z"
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.rule_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Reminder-rule identifier. |
| data.name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.status | string | When parent exists; see conditions for optional projections | active / inactive | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.created_at | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Rule timestamp in UTC ISO8601 with Z. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-RULE
Partially update a reminder rule in the current tenant.
| Item | Value |
|---|---|
| Method | PUT |
| URL | <API_BASE_URL>/api/v2/rules/ |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | application/json |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| rule_id | string | Yes | None | None | — | Rule ID from rule_id in creation or listing. | rule_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| name | string | Required for create; optional for update | None | None | 1–50 characters; unique within the current tenant | Rule name; omitted update fields are preserved. | Invoice Review Rule |
| template_id | string | Required for create; optional for update | None | None | — | Associated template ID. | template_example |
| frequency | string | Required for create; optional for update | None | daily; hourly; on_extract_complete after extraction; on_result_confirm after confirmation | — | Trigger schedule or event. | on_extract_complete |
| conditions | array<object> | Required and nonempty for create; optional for update | None | None | — | List of trigger conditions. | [{"field": "score", "operator": "lt", "value": 80}] |
| channels | array<string> | Required and nonempty for create; optional for update | None | in_app: in-app; email: email; webhook: callback | — | Notification channels; an enabled channel does not prove successful delivery. | ["in_app"] |
| recipients | object | Required for create; optional for update | None | None | — | Recipient configuration; see nested fields. | |
| title_template | string | Required for create; optional for update | None | None | 1–100 characters | Notification title template supporting event variables such as {file_name}. | Review |
| content_template | string | Required for create; optional for update | None | None | 1–500 characters | Notification body using supplied event-field variables. | Please review {file_name}. |
| status | string | Optional for update; create defaults to active | active | active: enabled; inactive: disabled | — | Rule activation state; this field does not override the initial state on creation. | inactive |
| conditions[].field | string | Yes | None | None | — | System field score/review_status/processing_status, or fields.<business-field>. | score |
| conditions[].operator | string | Yes | None | None | — | score supports eq/ne/gt/gte/lt/lte/between/not_between; status fields support eq/ne/in/not_in. | lt |
| conditions[].value | JSON | Yes | None | None | — | Use a number from 1–100 for score; two ordered numbers for ranges; a string for status eq/ne or an array for in/not_in. | 80 |
| conditions[].logic | string | No | AND | AND / OR | — | AND requires all; OR allows any. | AND |
| recipients.members | array<string> | No | [] | None | — | Active user IDs in this tenant, at most 50 distinct IDs; not membership-record IDs. | ["user_example"] |
| recipients.emails | array<string> | No | [] | None | — | Additional email addresses, validated and deduplicated for delivery. | ["[email protected]"] |
| recipients.field_bindings | array<string> | No | [] | None | — | Read recipient addresses from event fields, such as fields.contact_email. | ["fields.contact_email"] |
| recipients.webhook_ids | array<string> | Required when channels includes webhook | [] | None | — | Configured active callback IDs in the tenant subscribed to the rule_triggered event. | ["webhook_example"] |
| recipients.departments | array | No | [] | None | — | Department lists are not used for recipient resolution. Configure recipients through members, emails, field_bindings or webhook_ids. | [] |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request PUT "<API_BASE_URL>/api/v2/rules/rule_example" \
--header "X-API-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data-raw '{
"name": "Invoice Review Rule - Priority",
"conditions": [
{
"field": "score",
"operator": "lt",
"value": 70,
"logic": "AND"
}
]
}'JSON Body only:
{
"name": "Invoice Review Rule - Priority",
"conditions": [
{
"field": "score",
"operator": "lt",
"value": 70,
"logic": "AND"
}
]
}HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 0,
"message": "success",
"data": {
"rule_id": "rule_example",
"name": "Invoice Review Rule - Priority",
"template_id": "template_example",
"status": "active",
"channels": [
"in_app"
],
"frequency": "on_extract_complete",
"created_at": "2026-10-23T08:00:00Z",
"updated_at": "2026-10-23T08:00:00Z",
"conditions": [
{
"field": "score",
"operator": "lt",
"value": 70,
"logic": "AND"
}
],
"recipients": {
"members": [
"user_example"
],
"departments": [],
"emails": [],
"field_bindings": [],
"webhook_ids": []
},
"title_template": "Review {file_name}",
"content_template": "Please review {file_name}."
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.rule_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Reminder-rule identifier. |
| data.name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.template_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.status | string | When parent exists; see conditions for optional projections | active / inactive | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.channels | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Notification channels or trigger frequency/event; enums are defined in the request section. |
| data.channels[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Notification channels or trigger frequency/event; enums are defined in the request section. |
| data.frequency | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Notification channels or trigger frequency/event; enums are defined in the request section. |
| data.created_at | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Rule timestamp in UTC ISO8601 with Z. |
| data.updated_at | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Rule timestamp in UTC ISO8601 with Z. |
| data.conditions | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Stored conditions, recipients or notification templates; list summaries omit the full configuration. |
| data.conditions[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Stored conditions, recipients or notification templates; list summaries omit the full configuration. |
| data.conditions[].field | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Event-field path evaluated by the condition. |
| data.conditions[].operator | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Condition comparison operator, with allowed values determined by the field type. |
| data.conditions[].value | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Condition field, operator, comparison value and AND/OR logic; value denotes a business field value in result data. |
| data.conditions[].logic | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | AND or OR condition-combination logic. |
| data.recipients | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Stored conditions, recipients or notification templates; list summaries omit the full configuration. |
| data.recipients.members | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.recipients.members[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.recipients.departments | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.recipients.emails | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.recipients.field_bindings | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.recipients.webhook_ids | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.title_template | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Stored conditions, recipients or notification templates; list summaries omit the full configuration. |
| data.content_template | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Stored conditions, recipients or notification templates; list summaries omit the full configuration. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-RULE
List reminder-rule summaries for the current tenant.
| Item | Value |
|---|---|
| Method | GET |
| URL | <API_BASE_URL>/api/v2/rules |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| status | string | No | All | active / inactive | — | Filter rule activation state; no pagination parameters. | active |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request GET "<API_BASE_URL>/api/v2/rules" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 0,
"message": "success",
"data": [
{
"rule_id": "rule_example",
"name": "Invoice Review Rule",
"template_id": "template_example",
"status": "active",
"channels": [
"in_app"
],
"frequency": "on_extract_complete",
"created_at": "2026-10-23T08:00:00Z",
"updated_at": "2026-10-23T08:00:00Z"
}
]
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | array | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Business extension supplied by this object; preserve its field and type without treating it as a new endpoint. |
| data[].rule_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Reminder-rule identifier. |
| data[].name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data[].template_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data[].status | string | When parent exists; see conditions for optional projections | active / inactive | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data[].channels | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Notification channels or trigger frequency/event; enums are defined in the request section. |
| data[].channels[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Notification channels or trigger frequency/event; enums are defined in the request section. |
| data[].frequency | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Notification channels or trigger frequency/event; enums are defined in the request section. |
| data[].created_at | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Rule timestamp in UTC ISO8601 with Z. |
| data[].updated_at | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Rule timestamp in UTC ISO8601 with Z. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-RULE
Read the complete configuration of an accessible reminder rule.
| Item | Value |
|---|---|
| Method | GET |
| URL | <API_BASE_URL>/api/v2/rules/ |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| rule_id | string | Yes | None | None | — | Rule ID from rule_id in creation or listing. | rule_example |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request GET "<API_BASE_URL>/api/v2/rules/rule_example" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 0,
"message": "success",
"data": {
"rule_id": "rule_example",
"name": "Invoice Review Rule",
"template_id": "template_example",
"status": "active",
"channels": [
"in_app"
],
"frequency": "on_extract_complete",
"created_at": "2026-10-23T08:00:00Z",
"updated_at": "2026-10-23T08:00:00Z",
"conditions": [
{
"field": "score",
"operator": "lt",
"value": 80,
"logic": "AND"
}
],
"recipients": {
"members": [
"user_example"
],
"departments": [],
"emails": [],
"field_bindings": [],
"webhook_ids": []
},
"title_template": "Review {file_name}",
"content_template": "Please review {file_name}."
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.rule_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Reminder-rule identifier. |
| data.name | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Object or template name, retaining the original business-content language. |
| data.template_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Associated template identifier; it may be null before classification completes. |
| data.status | string | When parent exists; see conditions for optional projections | active / inactive | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
| data.channels | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Notification channels or trigger frequency/event; enums are defined in the request section. |
| data.channels[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Notification channels or trigger frequency/event; enums are defined in the request section. |
| data.frequency | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Notification channels or trigger frequency/event; enums are defined in the request section. |
| data.created_at | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Rule timestamp in UTC ISO8601 with Z. |
| data.updated_at | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Rule timestamp in UTC ISO8601 with Z. |
| data.conditions | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Stored conditions, recipients or notification templates; list summaries omit the full configuration. |
| data.conditions[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Stored conditions, recipients or notification templates; list summaries omit the full configuration. |
| data.conditions[].field | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Event-field path evaluated by the condition. |
| data.conditions[].operator | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Condition comparison operator, with allowed values determined by the field type. |
| data.conditions[].value | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Condition field, operator, comparison value and AND/OR logic; value denotes a business field value in result data. |
| data.conditions[].logic | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | AND or OR condition-combination logic. |
| data.recipients | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Stored conditions, recipients or notification templates; list summaries omit the full configuration. |
| data.recipients.members | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.recipients.members[] | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.recipients.departments | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.recipients.emails | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.recipients.field_bindings | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.recipients.webhook_ids | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Normalized recipient configuration; departments is currently an empty array. |
| data.title_template | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Stored conditions, recipients or notification templates; list summaries omit the full configuration. |
| data.content_template | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Stored conditions, recipients or notification templates; list summaries omit the full configuration. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-RULE
Enable or disable a reminder rule.
| Item | Value |
|---|---|
| Method | PATCH |
| URL | <API_BASE_URL>/api/v2/rules/{rule_id}/status |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | application/json |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| rule_id | string | Yes | None | None | — | Rule ID from rule_id in creation or listing. | rule_example |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| status | string | Yes | None | active: enabled; inactive: disabled | — | Rule state is a string, not the numeric template status 0/1. | inactive |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request PATCH "<API_BASE_URL>/api/v2/rules/rule_example/status" \
--header "X-API-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data-raw '{
"status": "inactive"
}'JSON Body only:
{
"status": "inactive"
}HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 0,
"message": "success",
"data": {
"rule_id": "rule_example",
"status": "inactive"
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.rule_id | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Reminder-rule identifier. |
| data.status | string | When parent exists; see conditions for optional projections | active / inactive | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current object state. Task, sample, upload-session and rule enums differ; see S1/S2/S3. |
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-RULE
Delete a reminder rule in the current tenant.
| Item | Value |
|---|---|
| Method | DELETE |
| URL | <API_BASE_URL>/api/v2/rules/ |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| rule_id | string | Yes | None | None | — | Rule ID from rule_id in creation or listing. | rule_example |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request DELETE "<API_BASE_URL>/api/v2/rules/rule_example" \
--header "X-API-Key: <API_KEY>"HTTP 204
Success without a response body; do not parse JSON or expect code.
E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-RULE
Read the asset and product-quota panel for the key organization.
| Item | Value |
|---|---|
| Method | GET |
| URL | <API_BASE_URL>/api/v2/assets |
| Authentication | X-API-Key; tenant resources accessible/manageable by this key |
| Content-Type | No body; Content-Type not required |
| Field | Type | Required | Default | Enum | Format/limits | Meaning/dependencies | Example |
|---|---|---|---|---|---|---|---|
| X-API-Key | string | Yes; Bearer alternative supported | None | None | Do not put it in URL or Body | Authenticate the key tenant and ownership | <API_KEY> |
Replace the service URL, API key, resource IDs, timestamps and files before running the example.
curl --request GET "<API_BASE_URL>/api/v2/assets" \
--header "X-API-Key: <API_KEY>"HTTP 200
Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.
{
"code": 200,
"message": "success",
"data": {
"asset": 900,
"assetTypeName": null,
"overageTime": null,
"assetTotal": 1000,
"user": {
"avatar": null,
"username": "Example User",
"email": "[email protected]"
},
"accountType": null,
"accountTypeName": null,
"expireTime": null,
"showExpireTime": false,
"showAssetEntry": true,
"products": [
{
"productType": "EXTRACT",
"productName": "Document extraction",
"unit": "PAGE",
"unitName": "pages",
"used": 100,
"unlimited": false,
"usageExact": 100,
"withholding": 0,
"remaining": 900,
"total": 1000,
"progress": 10,
"fileLimit": null,
"singleFileSizeLimitMB": 100
}
]
}
}| Field | Type | Returned | Enum | Condition | Meaning |
|---|---|---|---|---|---|
| code | integer | Yes | — | Successful JSON response | 200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric. |
| message | string | Yes | — | Successful JSON response | English system result message, normally success. |
| data | object | Yes; may be null | — | Depends on state, version and resource availability; null is not empty content or zero. | Endpoint data described below; null for operations without a data payload. |
| data.asset | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Legacy field: current available quota reported by the service. |
| data.assetTypeName | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Legacy display label for the plan or asset source. |
| data.overageTime | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Legacy asset-expiration timestamp; may be null. |
| data.assetTotal | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Legacy field: total quota reported by the service. |
| data.user | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | User summary available to the asset panel. |
| data.user.avatar | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | User avatar reference, display name or email; may be null when unavailable. |
| data.user.username | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | User avatar reference, display name or email; may be null when unavailable. |
| data.user.email | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | User avatar reference, display name or email; may be null when unavailable. |
| data.accountType | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Account classification code. |
| data.accountTypeName | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Display label for account classification; not an authorization decision. |
| data.expireTime | string | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Plan expiration, null when unknown or not applicable. |
| data.showExpireTime | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatibility display flags, not authorization credentials. |
| data.showAssetEntry | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatibility display flags, not authorization credentials. |
| data.products | array | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Asset information grouped by product. |
| data.products[] | object | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Asset information grouped by product. |
| data.products[].productType | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Product code and display name, such as EXTRACT; clients must not fabricate product ownership. |
| data.products[].productName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Product code and display name, such as EXTRACT; clients must not fabricate product ownership. |
| data.products[].unit | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Quota unit code, for example PAGE. |
| data.products[].unitName | string | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Display label for the quota unit. |
| data.products[].used | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Compatible used-amount field; interpret with exact usage and unknown-history state. |
| data.products[].unlimited | boolean | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Whether quota is unlimited; do not infer this only from remaining amount. |
| data.products[].usageExact | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Exact used amount; may be null for unknown historical usage and must not be treated as zero. |
| data.products[].withholding | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Currently reserved quota, not an additional committed charge. |
| data.products[].remaining | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Current available/remaining quota, interpreted together with unlimited and server values. |
| data.products[].total | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Total associated samples in a sample page, not the current-page length; total means quota capacity in asset data. |
| data.products[].progress | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Quota progress value calculated by the service. |
| data.products[].fileLimit | integer | null | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Reported file-count/per-file MB limits; endpoint validation may impose additional limits. |
| data.products[].singleFileSizeLimitMB | integer | When parent exists; see conditions for optional projections | — | Parent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template. | Reported file-count/per-file MB limits; endpoint validation may impose additional limits. |
E-AUTH, E-RESOURCE, E-INTERNAL
Every endpoint requires the authentication header defined in section 1. Fields are grouped by location below. Follow each endpoint link for types, required conditions, defaults and examples. Dots denote nested objects and [] denotes array items.
| Endpoint | Location | Fields |
|---|---|---|
| Upload files (asynchronous processing) | Form-data | file, url, mode, template_id, metadata, user_id, user_email, enable_scoring |
| Delete files | JSON body | fileIds, dateRange, dateRange.start / dateRange.end, metadataConditions, deletePermanently |
| Change the file template | Path | fileId |
| Change the file template | JSON body | groupTemplateId, enableScoring |
| List batch tasks | Path | batchId |
| List batch tasks | Query | status |
| Retry or reprocess a task | Path | taskId |
| Retry or reprocess a task | Query | enable_scoring |
| Cancel a task | Path | taskId |
| List templates | Query | search, status |
| Get template fields | Path | id |
| Create a template | JSON body | name, fileId, keys, tableHeaders, keys.<name>.prompt / tableHeaders.<table>.<column>.prompt, keys.<name>.mapping / tableHeaders.<table>.<column>.mapping, keys.<name>.aliases / tableHeaders.<table>.<column>.aliases, page, enableScoring, elementOrder, elementOrder[].type, elementOrder[].name, elementOrder[].columnOrder, outputConfigs / tableOutputConfigs |
| Update a template | Path | id |
| Update a template | JSON body | name, fileId, keys, tableHeaders, keys.<name>.prompt / tableHeaders.<table>.<column>.prompt, keys.<name>.mapping / tableHeaders.<table>.<column>.mapping, keys.<name>.aliases / tableHeaders.<table>.<column>.aliases, page, enableScoring, elementOrder, elementOrder[].type, elementOrder[].name, elementOrder[].columnOrder, outputConfigs / tableOutputConfigs |
| Delete a template | Path | id |
| Upload an initial template sample | Form-data | file |
| Add or replace template samples | Path | templateId |
| Add or replace template samples | Form-data | file, replace_all |
| List template samples | Path | templateId |
| List template samples | Query | page, page_size |
| Delete a template sample | Path | templateId, sampleId |
| Extract custom fields | Path | fileId |
| Extract custom fields | JSON body | keys, tableHeaders, enableScoring |
| Get file processing results | Headers | Accept-Version |
| Get file processing results | Path | taskId |
| Get file processing results | Query | parser_version, result_format, json_export_id |
| Update file processing results | Headers | Accept-Version |
| Update file processing results | Path | taskId |
| Update file processing results | Query | parser_version, result_format, json_export_id |
| Update file processing results | JSON body | fields, tables, parse_result, confirm, expectedUpdateDate |
| Get file classification | Path | taskId |
| Create a reminder rule | JSON body | name, template_id, frequency, conditions, channels, recipients, title_template, content_template, status, conditions[].field, conditions[].operator, conditions[].value, conditions[].logic, recipients.members, recipients.emails, recipients.field_bindings, recipients.webhook_ids, recipients.departments |
| Update a reminder rule | Path | rule_id |
| Update a reminder rule | JSON body | name, template_id, frequency, conditions, channels, recipients, title_template, content_template, status, conditions[].field, conditions[].operator, conditions[].value, conditions[].logic, recipients.members, recipients.emails, recipients.field_bindings, recipients.webhook_ids, recipients.departments |
| List reminder rules | Query | status |
| Get a reminder rule | Path | rule_id |
| Enable or disable a reminder rule | Path | rule_id |
| Enable or disable a reminder rule | JSON body | status |
| Delete a reminder rule | Path | rule_id |
| Get asset information | None | No business request parameters |
Error responses provide a business code, a specific reason and corrective guidance. Read HTTP status, code/error_code and error_detail.reason together.
File, task, template or asset endpoint error example: HTTP200.
{
"code": "08007",
"message": "The current status of the task is invalid.",
"data": null,
"error_detail": {
"reason": "UPDATE_VERSION_CONFLICT",
"message": "The task has changed. expectedUpdateDate does not match the current version.",
"suggestion": "Fetch the task again and submit its exact updateDate after reconciling changes.",
"retryable": false,
"request_id": "00000000-0000-4000-8000-000000000000",
"details": {}
}
}Rule-error example: HTTP400.
{
"code": 102,
"error_code": "INVALID_RULE_CONFIGURATION",
"message": "The reminder rule configuration is invalid.",
"data": {},
"error_detail": {
"reason": "INVALID_RULE_CONFIGURATION",
"message": "The reminder rule configuration is invalid.",
"suggestion": "Check required fields, types and allowed values.",
"retryable": false,
"request_id": "00000000-0000-4000-8000-000000000001",
"details": {}
}
}Route or method errors use HTTP404/405 and contain fields such as timestamp/status/error/message/path. Parse the response according to Content-Type.
| Field | Type | Meaning/condition |
|---|---|---|
| code | integer|string | Business-envelope result code; preserve leading zeros |
| message | string | English system result message |
| data | JSON|null | Additional error data, possibly null |
| error_code | string | Error classification for reminder-rule endpoints |
| error_detail.reason | string | Specific reason under a shared legacy code |
| error_detail.message / suggestion | string | English explanation and corrective guidance |
| error_detail.retryable | boolean | Whether failure is temporary; check write outcome before retrying |
| error_detail.request_id | string | Error correlation identifier matching the X-Request-ID response header |
| error_detail.details | object | May include field/allowed_methods context, without reflecting keys |
| HTTP | Business code/fields | Condition | Action |
|---|---|---|---|
| HTTP 200 / 401 / 403 | 401 / 403 | Missing, invalid or unavailable key/tenant/permissions. error_detail.reason distinguishes API_KEY_MISSING/INVALID/EXPIRED/INACTIVE, TENANT_UNAVAILABLE, KEY_OWNER_UNAVAILABLE and AUTH_SERVICE_UNAVAILABLE. | Check headers, identity and environment; follow guidance for temporary verification failures. |
| HTTP | Business code/fields | Condition | Action |
|---|---|---|---|
| HTTP 200 | 400 / "03000" / "01001" | Missing fields, malformed content or invalid types. JSON-read errors may return 01001; inspect error_detail.reason for the specific cause. | Correct locations, types and mutually exclusive inputs; a path string is not file content. |
| HTTP | Business code/fields | Condition | Action |
|---|---|---|---|
| HTTP 200 / 404 | 404 / "08003" / "08014" / "04003" | Resource absent or inaccessible to this identity. | Check IDs and tenant; do not infer cross-tenant resource existence. |
| HTTP | Business code/fields | Condition | Action |
|---|---|---|---|
| HTTP 200 | "08007" / 409 / "08023" | State/version conflict, busy session/retry, or disabled template. Reasons under 08007 distinguish incomplete/confirmed/unconfirmed/version/cancellation conflicts. | GET current state first and follow the reason rather than unconditionally replaying writes. |
| HTTP | Business code/fields | Condition | Action |
|---|---|---|---|
| HTTP 200 | "08001" | Insufficient quota for document processing. | Check available assets or contact an administrator to replenish processing quota. |
| HTTP | Business code/fields | Condition | Action |
|---|---|---|---|
| HTTP 200 | "08026" | Invalid parser version, conflicting selectors, or disabled v2 compatibility. | Use a consistent v3 selector. |
| HTTP | Business code/fields | Condition | Action |
|---|---|---|---|
| HTTP 200 | "08027" / "08028" | More than five samples, or deletion of the final sample. | Adjust the sample set or intentionally use full replacement. |
| HTTP | Business code/fields | Condition | Action |
|---|---|---|---|
| HTTP 200 | 400 / 415 | The file exceeds the size limit or uses an unsupported format. | Adjust size/format; URL imports have the same size ceiling. |
| HTTP | Business code/fields | Condition | Action |
|---|---|---|---|
| HTTP404 / HTTP405 | status / error | No matching route/method; a business code may be absent, while error_detail may still provide diagnostics. | Check path/method and inspect Allow for 405. |
| HTTP | Business code/fields | Condition | Action |
|---|---|---|---|
| HTTP400 / HTTP404 / HTTP409 | 102 / 404 / 409 | Invalid rule configuration/status, inaccessible rule or uniqueness conflict. error_code includes INVALID_RULE_CONFIGURATION, INVALID_RULE_STATUS, RULE_NOT_FOUND and RESOURCE_CONFLICT. | Use error_code/details and preserve field types. |
| HTTP | Business code/fields | Condition | Action |
|---|---|---|---|
| HTTP 200 | "01001" / 100 | Service/dependency failure; inspect the diagnostic. Stack traces and SQL are not exposed. | Record request_id/time and check whether a write took effect before retrying. |