Skip to content

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub

Open API Reference ​

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.

1. Service URLs and authentication ​

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.

FieldDescription
X-API-KeyProvide the Service API Key value.
AuthorizationAlternative to X-API-Key, using Bearer <API_KEY>.
Content-TypeUse application/json for JSON requests and multipart/form-data for file uploads. The client generates the multipart boundary.
Accept-Version / parser_versionApplicable 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.

2. Endpoint overview ​

MethodPathPurpose
POST/api/v2/files/uploadUpload files (asynchronous processing)
DELETE/api/v2/filesDelete files
PUT/api/v2/files/{fileId}/templateChange the file template
GET/api/v2/batches/{batchId}/tasksList batch tasks
POST/api/v2/tasks/{taskId}/retryRetry or reprocess a task
DELETE/api/v2/tasks/Cancel a task
GET/api/v2/templatesList templates
GET/api/v2/templates/{id}/fieldsGet template fields
POST/api/v2/templatesCreate a template
PUT/api/v2/templates/Update a template
DELETE/api/v2/templates/Delete a template
POST/api/v2/templates/samplesUpload an initial template sample
POST/api/v2/templates/{templateId}/samplesAdd or replace template samples
GET/api/v2/templates/{templateId}/samplesList template samples
DELETE/api/v2/templates/{templateId}/samples/Delete a template sample
POST/api/v2/extract/{fileId}/fieldsExtract custom fields
GET/api/v2/tasks/Get file processing results
PUT/api/v2/tasks/Update file processing results
GET/api/v2/classify/{taskId}/resultGet file classification
POST/api/v2/rulesCreate a reminder rule
PUT/api/v2/rules/Update a reminder rule
GET/api/v2/rulesList reminder rules
GET/api/v2/rules/Get a reminder rule
PATCH/api/v2/rules/{rule_id}/statusEnable or disable a reminder rule
DELETE/api/v2/rules/Delete a reminder rule
GET/api/v2/assetsGet asset information

3. General conventions ​

3.1 Response format ​

API/fieldFormatDescription
Files, tasks, templates, assetsHTTP 200; code=200code is numeric. Depending on the endpoint, data is an object, array, string or null.
Reminder rulescode=0; HTTP 200/201Creation returns HTTP201. Deletion returns HTTP204 with no body.
Error responseHTTP status and business codeRead HTTP status, code/error_code and error_detail together. Preserve zero-prefixed business codes as strings.
error_detail.request_idstringError correlation identifier matching the X-Request-ID response header.

3.2 Time, pagination and field naming ​

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.

3.3 Asynchronous processing and retries ​

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.

3.4 States and business rules ​

S1 Task states, stages and retry ​

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.

S2 Batch aggregation and polling ​

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.

S3 Templates and samples ​

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.

S4 Quota reservation, consumption and release ​

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.

S5 Deletion versus cancellation ​

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.

S6 Editing, versions and confirmation ​

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.

S7 Rule triggers, duplicates and failures ​

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.

4. Open API ​

4.1 Overview ​

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.

4.2 File management ​

The upload endpoint submits files and returns batch and task identifiers. Query processing progress and results through the task endpoints.

1. Upload files (asynchronous processing) ​

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.

Request ​
ItemValue
MethodPOST
URL<API_BASE_URL>/api/v2/files/upload
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typemultipart/form-data
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Form-data ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
filebinary or binary[]Exactly one of file or urlNoneNoneAt 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
urlstringExactly one of file or urlNoneNone10-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
modestringYesNoneVisualExtract: visual extraction; LayoutExtract: parsing followed by extraction—Select the processing mode using the exact enum spelling.VisualExtract
template_idstringNoAutomatic classificationNone—Use an accessible template to bypass automatic template classification.template_example
metadatastringNoNoneNoneSubject 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_idstringNoOrganization identity of the API keyNone—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_emailstringNoNoneNone—Recorded uploader email. File ownership is determined by user_id and the API key.[email protected]
enable_scoringbooleanNotruetrue: enabled; false: disabled—Whether scoring is enabled; enableScoring is a supported alias.false
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
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:

bash
  --form "url=https://files.example.com/invoice.pdf"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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"
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.batchIdstringWhen parent exists; 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.fileIdsarrayWhen parent exists; 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[]stringWhen parent exists; 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.taskIdsarrayWhen parent exists; 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[]stringWhen parent exists; 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.tasksarrayWhen parent exists; 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[]objectWhen parent exists; 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[].taskIdstringWhen parent exists; 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[].fileIdstringWhen parent exists; 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[].statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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[].phasestringWhen parent exists; 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[].failureCodestring | nullWhen parent exists; 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[].errorstring | nullWhen parent exists; 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.uploadStatusstringWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: Exactly one of file/url, a valid key, license and quota; user_id/user_email exclusivity is not enforced.
  • Effects: Successful submission creates a batch and tasks; repeated uploads are not idempotent.
  • Rules: S1, S4
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA, E-FORMAT

Follow-up calls ​

2. Delete files ​

Delete files and results selected by explicit criteria.

Request ​
ItemValue
MethodDELETE
URL<API_BASE_URL>/api/v2/files
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typeapplication/json
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
JSON body ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
fileIdsarray<string>At least one of the three selectorsNoneNone—IDs of the files to delete. Alias: file_ids.["task_example"]
dateRangeobjectAt least one of the three selectorsNoneNone—Select by file creation time; alias: date_range. Combined with other top-level selectors using a UNION.
dateRange.start / dateRange.endstringAt least one bound when dateRange is usedNoneNone—Inclusive local date-time bounds without a UTC offset; interpret using the deployment time zone.2026-10-23T08:00:00
metadataConditionsobjectAt least one of the three selectorsNoneNone—Match metadata key/value pairs. Entries within this object use AND; top-level selectors use OR. Alias: metadata_conditions.
deletePermanentlybooleanNofalseNone—false performs soft deletion/recycling; true permanently removes the file. Alias: delete_permanently.false
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
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:

json
{
  "fileIds": [
    "task_example"
  ],
  "deletePermanently": false
}
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 200,
  "message": "success",
  "data": {
    "deletedCount": 1,
    "failedCount": 0,
    "failedIds": [],
    "failedReasons": {}
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.deletedCountintegerWhen parent exists; 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.failedCountintegerWhen parent exists; 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.failedIdsarrayWhen parent exists; 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.failedReasonsobjectWhen parent exists; 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[]stringWhen failures existNoneA matching failure existsAn ID whose deletion failed.
data.failedReasons.<fileId>stringWhen failures existNoneA matching failure existsFailure reason keyed by file ID.
Endpoint-specific behavior ​
  • Preconditions: Provide at least one valid deletion selector. Top-level selectors form a union; use fileIds to target specific files.
  • Effects: Soft-delete or permanently remove files. Inspect failedCount/failedReasons; completed deletions are not rolled back merely because auditing fails.
  • Rules: S4, S5
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM

Follow-up calls ​

3. Change the file template ​

Change the template used by a file and trigger reprocessing.

Request ​
ItemValue
MethodPUT
URL<API_BASE_URL>/api/v2/files/{fileId}/template
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typeapplication/json
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
fileIdstringYesNoneNone—File ID, normally identical to taskId in this task model.task_example
JSON body ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
groupTemplateIdstringYesNoneNone—A group-template relationship ID, not the template ID. Read groupTemplateId from the template list. Alias: group_template_id.group_example
enableScoringbooleanNoPreserve task settingNone—Scoring for reprocessing; alias: enable_scoring.true
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
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:

json
{
  "groupTemplateId": "group_example",
  "enableScoring": false
}
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 200,
  "message": "success",
  "data": {
    "fileId": "task_example",
    "templateId": "template_example",
    "groupTemplateId": "group_example",
    "taskId": "task_example"
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.fileIdstringWhen parent exists; 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.templateIdstringWhen parent exists; 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.groupTemplateIdstringWhen parent exists; 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.taskIdstringWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: Supply a valid groupTemplateId for an accessible template, not a templateId.
  • Effects: Clears/resets relevant extraction output and requeues processing by mode; it is not a simple field edit.
  • Rules: S1, S4
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA

Follow-up calls ​

4.3 Task management ​

4. List batch tasks ​

Read aggregate state and task snapshots for an upload batch.

Request ​
ItemValue
MethodGET
URL<API_BASE_URL>/api/v2/batches/{batchId}/tasks
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
batchIdstringYesNoneNone—batchId returned by upload.batch_example
Query parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
statusstringNoAllpending/processing/completed/failed/cancelled—Filter tasks in this batch by coarse status, not detailed stage. No pagination parameters are provided.failed
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request GET "<API_BASE_URL>/api/v2/batches/batch_example/tasks" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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
      }
    ]
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.batchIdstringWhen parent exists; 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.batchStatusstringWhen parent exists; see conditions for optional projectionspending / processing / completed / failed / partial_failed / cancelled / emptyParent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template.Aggregate batch status; see S2.
data.tasksarrayWhen parent exists; 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[]objectWhen parent exists; 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[].taskIdstringWhen parent exists; 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[].fileIdstringWhen parent exists; 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[].fileNamestringWhen parent exists; 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[].batchIdstringWhen parent exists; 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[].taskTypestringWhen parent exists; 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[].templateIdstringWhen parent exists; 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[].groupTemplateIdstringWhen parent exists; 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[].templateNamestringWhen parent exists; 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[].statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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[].phasestring | nullWhen parent exists; 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[].conversionStatusstringWhen parent exists; 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[].confirmStatusstringWhen parent exists; see conditions for optional projectionspending / confirmedParent 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[].metadatastringWhen parent exists; 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[].errorstring | nullWhen parent exists; 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[].failureCodestring | nullWhen parent exists; 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[].failureStagestring | nullWhen parent exists; 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[].createdAtstringWhen parent exists; 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[].completedAtstringWhen parent exists; 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[].updateDatestringWhen parent exists; 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[].outputJSON | nullWhen parent exists; 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[].layoutOutputstring | nullWhen parent exists; 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[].apiVersionstring | nullWhen parent exists; see conditions for optional projectionsv2 / v3Parent 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[].fieldExceptionsstringWhen parent exists; 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[].updatedFieldsarray | nullWhen parent exists; 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[].extractionResultobject | nullWhen parent exists; 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[].parsingResultobject | nullWhen parent exists; 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[].parseResultobject | nullWhen parent exists; 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[].parseResultStatusstring | nullWhen parent exists; 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[].fieldExceptionDetailsarrayWhen parent exists; 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[].scoreobject | nullWhen parent exists; 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[].confidenceobject | nullWhen parent exists; 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[].inputobjectWhen parent exists; 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.fileIdstringWhen parent exists; 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.templateIdstringWhen parent exists; 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.groupTemplateIdstringWhen parent exists; 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.templateNamestringWhen parent exists; 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.modestringWhen parent exists; see conditions for optional projectionsVisualExtract / LayoutExtractParent 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[].consumptionobjectWhen parent exists; 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.pagesintegerWhen parent exists; 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[].originalFileobject | nullWhen parent exists; 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[].artifactsobject | nullWhen parent exists; 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[].customJsonExportboolean | nullWhen parent exists; 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[].jsonExportErrorstring | nullWhen parent exists; 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[].extractionSourceJSON | nullWhen parent exists; 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[].parseResultUpdatedboolean | nullWhen parent exists; 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.reasonstringNoNoneWhen the service provides the diagnosticReason for unavailable/failed scoring, such as scoring_disabled.
data.tasks[].score.modelFileScoreintegerNoNoneWhen the service provides the diagnosticModel diagnostic score. Use fileScore for the overall score.
data.tasks[].score.scoredFieldCountintegerNoNoneWhen the service provides the diagnosticModel-supplied count of scored fields; may be absent.
Endpoint-specific behavior ​
  • Preconditions: Use batchId from upload; only status filtering is provided, not page/page_size/sort.
  • Effects: Listing does not automatically populate every result document; use P11 for details.
  • Rules: S1, S2
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL

Follow-up calls ​

5. Retry or reprocess a task ​

Retry or reprocess a file task.

Request ​
ItemValue
MethodPOST
URL<API_BASE_URL>/api/v2/tasks/{taskId}/retry
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
taskIdstringYesNoneNone—Task ID from taskIds in the upload response.task_example
Query parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
enable_scoringbooleanNoPreserve existing valueNone—Scoring for reprocessing; alias: enableScoring.false
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request POST "<API_BASE_URL>/api/v2/tasks/task_example/retry" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_example",
    "fileId": "task_example",
    "batchId": null,
    "status": "pending",
    "mode": "VisualExtract",
    "startPhase": "extracting",
    "createdNewTask": false
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.taskIdstringWhen parent exists; 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.fileIdstringWhen parent exists; 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.batchIdstring | nullWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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.modestringWhen parent exists; see conditions for optional projectionsVisualExtract / LayoutExtractParent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template.Processing mode: VisualExtract or LayoutExtract.
data.startPhasestringWhen parent exists; 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.createdNewTaskbooleanWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: The task must exist and be accessible, its template must be available, and sufficient quota is required. Cancelled tasks cannot be retried.
  • Effects: Reuses taskId/fileId and returns createdNewTask=false; loads the latest saved template snapshot, clears old output and requeues. No retried state is emitted.
  • Rules: S1, S4
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA, E-STATE

Follow-up calls ​

6. Cancel a task ​

Cancel a pending or processing task.

Request ​
ItemValue
MethodDELETE
URL<API_BASE_URL>/api/v2/tasks/
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
taskIdstringYesNoneNone—Task ID from taskIds in the upload response.task_example
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request DELETE "<API_BASE_URL>/api/v2/tasks/task_example" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 200,
  "message": "success",
  "data": null
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
datanullYes; 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.
Endpoint-specific behavior ​
  • Preconditions: Only pending/processing tasks can be cancelled; a concurrent state change may reject the request.
  • Effects: Marks cancellation and releases outstanding reservations; not permanent deletion or refund of committed usage.
  • Rules: S1, S4, S5
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-STATE

Follow-up calls ​

4.4 Templates and file processing ​

7. List templates ​

List templates usable by the current identity.

Request ​
ItemValue
MethodGET
URL<API_BASE_URL>/api/v2/templates
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Query parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
searchstringNoNo filterNone—Filter by a substring in the template name.Invoice
statusstringNoAllactive: 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.

Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request GET "<API_BASE_URL>/api/v2/templates" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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"
          ]
        }
      ]
    }
  ]
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataarrayYes; 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[]objectWhen parent exists; 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[].keysobjectWhen parent exists; 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_numberobjectWhen parent exists; 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.promptstringWhen parent exists; 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.mappingstringWhen parent exists; 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.aliasesarrayWhen parent exists; 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[]stringWhen parent exists; 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_totalobjectWhen parent exists; 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.promptstringWhen parent exists; 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.mappingstring | nullWhen parent exists; 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.aliasesarrayWhen parent exists; 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[].namestringWhen parent exists; 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[].idstringWhen parent exists; 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[].fileIdstringWhen parent exists; 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[].enableScoringbooleanWhen parent exists; 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[].pageintegerWhen parent exists; 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[].statusintegerWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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[].sourcestringWhen parent exists; 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[].editablebooleanWhen parent exists; 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[].statusEditablebooleanWhen parent exists; 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[].lifecyclestringWhen parent exists; 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[].pinnedboolean | nullWhen parent exists; 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[].groupTemplateIdstringWhen parent exists; 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[].ownerTypestringWhen parent exists; 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[].ownerUserIdstring | nullWhen parent exists; 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[].createdByUserIdstringWhen parent exists; 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[].usablebooleanWhen parent exists; 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[].manageablebooleanWhen parent exists; 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[].tableHeadersobjectWhen parent exists; 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.ItemsobjectWhen parent exists; 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.nameobjectWhen parent exists; 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.promptstringWhen parent exists; 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.mappingstring | nullWhen parent exists; 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.aliasesarrayWhen parent exists; 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.qtyobjectWhen parent exists; 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.promptstringWhen parent exists; 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.mappingstring | nullWhen parent exists; 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.aliasesarrayWhen parent exists; 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[].outputConfigsobject | nullWhen parent exists; 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[].tableOutputConfigsobject | nullWhen parent exists; 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[].elementOrderarrayWhen parent exists; 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[]objectWhen parent exists; 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[].typestringWhen parent exists; 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[].namestringWhen parent exists; 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[].columnOrderarray | nullWhen parent exists; 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[]stringWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: Optional name-substring search and active/inactive filter; no pagination.
  • Effects: May include default templates. usable does not imply manageable; client-supplied owner fields do not grant access.
  • Rules: S3
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL

Follow-up calls ​

8. Get template fields ​

Read ordinary fields, table columns and display order for a template.

Request ​
ItemValue
MethodGET
URL<API_BASE_URL>/api/v2/templates/{id}/fields
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
idstringYesNoneNone—Template ID, not a sample ID.template_example
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request GET "<API_BASE_URL>/api/v2/templates/template_example/fields" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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"
        ]
      }
    ]
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.keysobjectWhen parent exists; 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_numberobjectWhen parent exists; 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.promptstringWhen parent exists; 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.mappingstringWhen parent exists; 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.aliasesarrayWhen parent exists; 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[]stringWhen parent exists; 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_totalobjectWhen parent exists; 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.promptstringWhen parent exists; 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.mappingstring | nullWhen parent exists; 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.aliasesarrayWhen parent exists; 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.tableHeadersobjectWhen parent exists; 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.ItemsobjectWhen parent exists; 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.nameobjectWhen parent exists; 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.promptstringWhen parent exists; 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.mappingstring | nullWhen parent exists; 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.aliasesarrayWhen parent exists; 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.qtyobjectWhen parent exists; 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.promptstringWhen parent exists; 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.mappingstring | nullWhen parent exists; 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.aliasesarrayWhen parent exists; 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.elementOrderarrayWhen parent exists; 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[]objectWhen parent exists; 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[].typestringWhen parent exists; 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[].namestringWhen parent exists; 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[].columnOrderarray | nullWhen parent exists; 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[]stringWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: The template must be accessible.
  • Effects: Use the field names in definitions and result edits; do not arbitrarily replace them with display labels.
  • Rules: S3
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL

Follow-up calls ​

9. Create a template ​

Create a template from an already uploaded initial sample.

Request ​
ItemValue
MethodPOST
URL<API_BASE_URL>/api/v2/templates
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typeapplication/json
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
JSON body ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
namestringRequired for create; send a complete definition for updateNoneNone—Nonempty template name.Invoice Template
fileIdstringRequired for create; preserved by the service on updateNoneNone—sampleFileId returned by the initial sample upload; alias: file_id.sample_file_example
keysobjectAt least one of keys/tableHeaders must be nonemptyNoneNone—Map of ordinary field names to field definitions.{"invoice_number": {"prompt": "Read the invoice number"}}
tableHeadersobjectAt least one of keys/tableHeaders must be nonemptyNoneNone—Table name to column name to field definition; names belong to the caller template.{"Items": {"qty": {"prompt": "Quantity"}}}
keys.<name>.prompt / tableHeaders.<table>.<column>.promptstringNoNoneNone—Describes the field content to extract from the document.Read the invoice number
keys.<name>.mapping / tableHeaders.<table>.<column>.mappingstringNoOriginal field nameNone—Display or mapping name of the field.invoice_number
keys.<name>.aliases / tableHeaders.<table>.<column>.aliasesarray<string>No[]None—Alternative labels for the same field.["Invoice No."]
pageintegerNoNoneNone—Selected sample page, normally starting at 1; use an existing page.1
enableScoringbooleanNoNoneNone—Template scoring setting; task upload can override it. Alias: enable_scoring.false
elementOrderarray<object>NoNoneNone—Display order of ordinary fields and tables.[{"type": "key", "name": "invoice_number"}]
elementOrder[].typestringYesNonekey / table—key denotes an ordinary field; table denotes a table.key
elementOrder[].namestringYesNoneNone—Must identify a name in keys or tableHeaders.invoice_number
elementOrder[].columnOrderarray<string>NoNoneNone—Column order for a table; column names must exist in that table.["name", "qty"]
outputConfigs / tableOutputConfigsobjectNoNoneNone—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.

Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
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:

json
{
  "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"
      ]
    }
  ]
}
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 200,
  "message": "success",
  "data": "template_example"
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
datastringYes; 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.
Endpoint-specific behavior ​
  • Preconditions: Requires name, fileId, and nonempty keys or tableHeaders. The sample must belong to the organization.
  • Effects: data is directly the template ID string. Template creation is not itself a business-file extraction.
  • Rules: S3, S4
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA

Follow-up calls ​

Embedded output configuration ​

Template objects can contain the following output-configuration fields. Creating or updating a template leaves separately stored configuration records unchanged.

FieldTypeDefaultMeaning
outputTypestringTextText/Number/Date/Enum
exportFieldNamestring|nullOriginal field nameExport name, not an extraction instruction
pageConsistencystringunknownunknown: unchecked; consistent: equal expected; inconsistent: differing expected; Visual scoring only
conversionobject{}Type-specific options: numeric currency/separators/precision, text whitespace/replacement/regex, date outputFormat, enum mapping
validation.requiredbooleanfalseThe value must be nonempty; not an HTTP required flag
validation.regexstring|nullnullJava regular-expression validation
validation.comparison / comparisonValuestring|nullnullgt/gte/eq/lt/lte; comparison value as text
validation.failureStrategy / defaultValuestring|nullmark_exceptionmark_exception marks an issue; default_value uses the default

10. Update a template ​

Save a complete template definition.

Request ​
ItemValue
MethodPUT
URL<API_BASE_URL>/api/v2/templates/
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typeapplication/json
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
idstringYesNoneNone—Template ID, not a sample ID.template_example
JSON body ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
namestringRequired for create; send a complete definition for updateNoneNone—Nonempty template name.Invoice Template
fileIdstringRequired for create; preserved by the service on updateNoneNone—sampleFileId returned by the initial sample upload; alias: file_id.sample_file_example
keysobjectAt least one of keys/tableHeaders must be nonemptyNoneNone—Map of ordinary field names to field definitions.{"invoice_number": {"prompt": "Read the invoice number"}}
tableHeadersobjectAt least one of keys/tableHeaders must be nonemptyNoneNone—Table name to column name to field definition; names belong to the caller template.{"Items": {"qty": {"prompt": "Quantity"}}}
keys.<name>.prompt / tableHeaders.<table>.<column>.promptstringNoNoneNone—Describes the field content to extract from the document.Read the invoice number
keys.<name>.mapping / tableHeaders.<table>.<column>.mappingstringNoOriginal field nameNone—Display or mapping name of the field.invoice_number
keys.<name>.aliases / tableHeaders.<table>.<column>.aliasesarray<string>No[]None—Alternative labels for the same field.["Invoice No."]
pageintegerNoNoneNone—Selected sample page, normally starting at 1; use an existing page.1
enableScoringbooleanNoNoneNone—Template scoring setting; task upload can override it. Alias: enable_scoring.false
elementOrderarray<object>NoNoneNone—Display order of ordinary fields and tables.[{"type": "key", "name": "invoice_number"}]
elementOrder[].typestringYesNonekey / table—key denotes an ordinary field; table denotes a table.key
elementOrder[].namestringYesNoneNone—Must identify a name in keys or tableHeaders.invoice_number
elementOrder[].columnOrderarray<string>NoNoneNone—Column order for a table; column names must exist in that table.["name", "qty"]
outputConfigs / tableOutputConfigsobjectNoNoneNone—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.

Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
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:

json
{
  "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"
      ]
    }
  ]
}
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 200,
  "message": "success",
  "data": null
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
datanullYes; 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.
Endpoint-specific behavior ​
  • Preconditions: Template must be manageable. Preserve the original definition before editing; the path ID is authoritative and fileId is preserved.
  • Effects: Not an arbitrary-property PATCH. Saving does not alter historical results; explicit retry reads the newly saved version.
  • Rules: S3
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM

Follow-up calls ​

11. Delete a template ​

Delete a template manageable by the current identity.

Request ​
ItemValue
MethodDELETE
URL<API_BASE_URL>/api/v2/templates/
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
idstringYesNoneNone—Template ID, not a sample ID.template_example
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request DELETE "<API_BASE_URL>/api/v2/templates/template_example" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 200,
  "message": "success",
  "data": null
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
datanullYes; 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.
Endpoint-specific behavior ​
  • Preconditions: The current API key must have management access to the target template.
  • Effects: Changes logical state and marks classification cleanup, which may be asynchronous; it does not refund historical processing usage.
  • Rules: S3, S4, S5
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM

Follow-up calls ​

12. Upload an initial template sample ​

Upload an initial sample before creating a template.

Request ​
ItemValue
MethodPOST
URL<API_BASE_URL>/api/v2/templates/samples
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typemultipart/form-data
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Form-data ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
filebinaryYesNoneNoneUpload one nonempty document file per request.One nonempty sample file, supplied as a file part.@sample.pdf
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request POST "<API_BASE_URL>/api/v2/templates/samples" \
  --header "X-API-Key: <API_KEY>" \
  --form "[email protected]"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 200,
  "message": "success",
  "data": {
    "sampleFileId": "sample_file_example",
    "fileName": "sample.pdf",
    "fileSize": 102400
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.sampleFileIdstringWhen parent exists; 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.fileNamestringWhen parent exists; 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.fileSizeintegerWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: A nonempty file and a key/license/capacity state permitting the operation.
  • Effects: Returns sampleFileId; this is neither a business task nor a sample append to an existing template.
  • Rules: S3, S4
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA, E-FORMAT

Follow-up calls ​

13. Add or replace template samples ​

Append one sample to an existing template, or replace all its sample associations.

Request ​
ItemValue
MethodPOST
URL<API_BASE_URL>/api/v2/templates/{templateId}/samples
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typemultipart/form-data
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
templateIdstringYesNoneNone—Template ID from listing or creation.template_example
Form-data ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
filebinaryYesNoneNoneUpload one nonempty document file per request.One nonempty sample file, supplied as a file part.@sample.pdf
replace_allbooleanNofalsetrue / false—false appends; true replaces all existing sample associations with this new sample.false
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
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"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.templateIdstringWhen parent exists; 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.pageintegerWhen parent exists; 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.pageSizeintegerWhen parent exists; 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.totalintegerWhen parent exists; 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.countintegerWhen parent exists; 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.limitintegerWhen parent exists; 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.itemsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].idstringWhen parent exists; 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[].fileIdstringWhen parent exists; 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[].fileNamestringWhen parent exists; 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[].fileSizeintegerWhen parent exists; 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[].statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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[].profileRevisionstringWhen parent exists; 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[].failureReasonstring | nullWhen parent exists; 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[].fileTypestringWhen parent exists; 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[].uploadedAtstringWhen parent exists; 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.profileobjectWhen parent exists; 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.activeRevisionstringWhen parent exists; 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.pendingRevisionstringWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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.failureReasonstring | nullWhen parent exists; 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.classificationPromptstring | nullWhen parent exists; 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.scoringConfigobject | nullWhen parent exists; 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.classificationNeedsSavebooleanWhen parent exists; 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.deletedSampleIdstring | nullWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: One nonempty file per request, at most five samples. replace_all=true can replace an existing set of five with one sample.
  • Effects: Submitting a sample updates its classification profile asynchronously. Use profile and classificationNeedsSave to track processing and save state.
  • Rules: S3, S4
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA, E-SAMPLE, E-FORMAT

Follow-up calls ​

14. List template samples ​

List template samples and profile state with pagination.

Request ​
ItemValue
MethodGET
URL<API_BASE_URL>/api/v2/templates/{templateId}/samples
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
templateIdstringYesNoneNone—Template ID from listing or creation.template_example
Query parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
pageintegerNo1None>=1One-based page number.1
page_sizeintegerNo20None1–100Items per page.20
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request GET "<API_BASE_URL>/api/v2/templates/template_example/samples" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.templateIdstringWhen parent exists; 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.pageintegerWhen parent exists; 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.pageSizeintegerWhen parent exists; 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.totalintegerWhen parent exists; 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.countintegerWhen parent exists; 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.limitintegerWhen parent exists; 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.itemsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].idstringWhen parent exists; 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[].fileIdstringWhen parent exists; 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[].fileNamestringWhen parent exists; 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[].fileSizeintegerWhen parent exists; 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[].statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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[].profileRevisionstringWhen parent exists; 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[].failureReasonstring | nullWhen parent exists; 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[].fileTypestringWhen parent exists; 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[].uploadedAtstringWhen parent exists; 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.profileobjectWhen parent exists; 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.activeRevisionstringWhen parent exists; 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.pendingRevisionstring | nullWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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.failureReasonstring | nullWhen parent exists; 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.classificationPromptstring | nullWhen parent exists; 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.scoringConfigobject | nullWhen parent exists; 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.classificationNeedsSavebooleanWhen parent exists; 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.deletedSampleIdstring | nullWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: page>=1, page_size=1–100, and an accessible template.
  • Effects: total/count are total associations; items is the current page. Delete with items[].id, not fileId.
  • Rules: S3
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL

Follow-up calls ​

15. Delete a template sample ​

Delete one sample association from a template.

Request ​
ItemValue
MethodDELETE
URL<API_BASE_URL>/api/v2/templates/{templateId}/samples/
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
templateIdstringYesNoneNone—Template ID from listing or creation.template_example
sampleIdstringYesNoneNone—items[].id from the sample list, not fileId.sample_example
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request DELETE "<API_BASE_URL>/api/v2/templates/template_example/samples/sample_example" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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"
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.templateIdstringWhen parent exists; 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.pageintegerWhen parent exists; 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.pageSizeintegerWhen parent exists; 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.totalintegerWhen parent exists; 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.countintegerWhen parent exists; 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.limitintegerWhen parent exists; 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.itemsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].idstringWhen parent exists; 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[].fileIdstringWhen parent exists; 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[].fileNamestringWhen parent exists; 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[].fileSizeintegerWhen parent exists; 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[].statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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[].profileRevisionstringWhen parent exists; 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[].failureReasonstring | nullWhen parent exists; 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[].fileTypestringWhen parent exists; 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[].uploadedAtstringWhen parent exists; 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.profileobjectWhen parent exists; 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.activeRevisionstringWhen parent exists; 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.pendingRevisionstring | nullWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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.failureReasonstring | nullWhen parent exists; 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.classificationPromptstring | nullWhen parent exists; 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.scoringConfigobject | nullWhen parent exists; 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.classificationNeedsSavebooleanWhen parent exists; 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.deletedSampleIdstringWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: At least one sample must remain. sampleId comes from the sample list id.
  • Effects: Returns deletedSampleId and remaining count; profile updates may be asynchronous.
  • Rules: S3
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-SAMPLE

Follow-up calls ​

16. Extract custom fields ​

Add field definitions to an existing task and re-extract.

Request ​
ItemValue
MethodPOST
URL<API_BASE_URL>/api/v2/extract/{fileId}/fields
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typeapplication/json
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
fileIdstringYesNoneNone—File ID, normally identical to taskId in this task model.task_example
JSON body ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
keysobjectAt least one of keys/tableHeadersNoneNone—Add or override ordinary field definitions for this task, using the template keys structure.{"invoice_date": {"prompt": "Read invoice date"}}
tableHeadersobjectAt least one of keys/tableHeadersNoneNone—Add table-column definitions using the template tableHeaders structure.{}
enableScoringbooleanNoPreserve existing settingNone—Whether to score re-extraction; alias: enable_scoring.false
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
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:

json
{
  "keys": {
    "invoice_date": {
      "prompt": "Read invoice date"
    }
  },
  "enableScoring": false
}
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_example",
    "fileId": "task_example",
    "batchId": null,
    "status": "pending",
    "mode": null,
    "startPhase": null,
    "createdNewTask": null
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.taskIdstringWhen parent exists; 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.fileIdstringWhen parent exists; 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.batchIdstring | nullWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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.modestring | nullWhen parent exists; see conditions for optional projectionsVisualExtract / LayoutExtractParent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template.Processing mode: VisualExtract or LayoutExtract.
data.startPhasestring | nullWhen parent exists; 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.createdNewTaskboolean | nullWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: Supply keys or tableHeaders. The task cannot be pending/processing; LayoutExtract needs a reusable parser archive.
  • Effects: Merges field definitions, clears old extraction output and requeues processing, consuming resources.
  • Rules: S1, S4
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-QUOTA

Follow-up calls ​

17. Get file processing results ​

Read file state, extraction/parsing results, confirmation and scoring.

Request ​
ItemValue
MethodGET
URL<API_BASE_URL>/api/v2/tasks/
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Accept-VersionstringNov2v2: legacy; v3: public projection—Parser representation version; must agree with parser_version when both are supplied.v3
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
taskIdstringYesNoneNone—Task ID from taskIds in the upload response.task_example
Query parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
parser_versionstringNov2v2 / v3—Alternative to Accept-Version; conflicting selections return 08026.v3
result_formatstringNolegacylegacy: original presentation; unified: normalized presentation—Controls extraction-result presentation independently of parser v3.legacy
json_export_idstringNoConfigured default, if anyNone—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.

Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request GET "<API_BASE_URL>/api/v2/tasks/task_example" \
  --header "X-API-Key: <API_KEY>" \
  --header "Accept-Version: v3"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.taskIdstringWhen parent exists; 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.fileIdstringWhen parent exists; 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.fileNamestringWhen parent exists; 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.batchIdstringWhen parent exists; 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.taskTypestringWhen parent exists; 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.templateIdstringWhen parent exists; 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.groupTemplateIdstringWhen parent exists; 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.templateNamestringWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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.phasestring | nullWhen parent exists; 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.conversionStatusstringWhen parent exists; 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.confirmStatusstringWhen parent exists; see conditions for optional projectionspending / confirmedParent 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.metadatastringWhen parent exists; 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.errorstring | nullWhen parent exists; 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.failureCodestring | nullWhen parent exists; 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.failureStagestring | nullWhen parent exists; 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.createdAtstringWhen parent exists; 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.completedAtstringWhen parent exists; 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.updateDatestringWhen parent exists; 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.outputobjectWhen parent exists; 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.resultFormatstring | nullWhen parent exists; 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.fieldsobjectWhen parent exists; 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_numberstringWhen parent exists; 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_totalstringWhen parent exists; 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.tablesobjectWhen parent exists; 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.ItemsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.orderedElementsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].typestringWhen parent exists; 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[].namestringWhen parent exists; 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[].valuestringWhen parent exists; 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[].columnsarrayWhen parent exists; 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[]stringWhen parent exists; 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[].rowsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.pagesarrayWhen parent exists; 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[]objectWhen parent exists; 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[].pageintegerWhen parent exists; 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[].pageKeystringWhen parent exists; 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[].sourcePageKeystring | nullWhen parent exists; 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[].tableBboxesobject | nullWhen parent exists; 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[].fieldsobjectWhen parent exists; 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_numberstringWhen parent exists; 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_totalstringWhen parent exists; 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[].tablesobjectWhen parent exists; 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.ItemsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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[].orderedElementsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].typestringWhen parent exists; 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[].namestringWhen parent exists; 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[].valuestringWhen parent exists; 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[].columnsarrayWhen parent exists; 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[]stringWhen parent exists; 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[].rowsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.layoutOutputstringWhen parent exists; 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.apiVersionstringWhen parent exists; see conditions for optional projectionsv2 / v3Parent 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.fieldExceptionsstringWhen parent exists; 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.updatedFieldsarray | nullWhen parent exists; 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.extractionResultobjectWhen parent exists; 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.resultFormatstring | nullWhen parent exists; 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.fieldsobjectWhen parent exists; 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_numberstringWhen parent exists; 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_totalstringWhen parent exists; 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.tablesobjectWhen parent exists; 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.ItemsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.orderedElementsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].typestringWhen parent exists; 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[].namestringWhen parent exists; 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[].valuestringWhen parent exists; 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[].columnsarrayWhen parent exists; 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[]stringWhen parent exists; 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[].rowsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.pagesarrayWhen parent exists; 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[]objectWhen parent exists; 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[].pageintegerWhen parent exists; 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[].pageKeystringWhen parent exists; 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[].sourcePageKeystring | nullWhen parent exists; 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[].tableBboxesobject | nullWhen parent exists; 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[].fieldsobjectWhen parent exists; 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_numberstringWhen parent exists; 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_totalstringWhen parent exists; 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[].tablesobjectWhen parent exists; 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.ItemsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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[].orderedElementsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].typestringWhen parent exists; 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[].namestringWhen parent exists; 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[].valuestringWhen parent exists; 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[].columnsarrayWhen parent exists; 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[]stringWhen parent exists; 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[].rowsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.parsingResultobjectWhen parent exists; 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_versionstringWhen parent exists; see conditions for optional projectionsv2 / v3Parent 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.resultobjectWhen parent exists; 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.pagesarrayWhen parent exists; 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[]objectWhen parent exists; 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_idintegerWhen parent exists; 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_numberintegerWhen parent exists; 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[].widthintegerWhen parent exists; 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[].heightintegerWhen parent exists; 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[].dpiintegerWhen parent exists; 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.detailarrayWhen parent exists; 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[]objectWhen parent exists; 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_idintegerWhen parent exists; 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_idintegerWhen parent exists; 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_idintegerWhen parent exists; 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_idstringWhen parent exists; 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[].typestringWhen parent exists; 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[].textstringWhen parent exists; 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[].positionarrayWhen parent exists; 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[]integerWhen parent exists; 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.parseResultobjectWhen parent exists; 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_versionstringWhen parent exists; see conditions for optional projectionsv2 / v3Parent 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.resultobjectWhen parent exists; 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.pagesarrayWhen parent exists; 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[]objectWhen parent exists; 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_idintegerWhen parent exists; 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_numberintegerWhen parent exists; 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[].widthintegerWhen parent exists; 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[].heightintegerWhen parent exists; 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[].dpiintegerWhen parent exists; 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.detailarrayWhen parent exists; 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[]objectWhen parent exists; 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_idintegerWhen parent exists; 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_idintegerWhen parent exists; 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_idintegerWhen parent exists; 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_idstringWhen parent exists; 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[].typestringWhen parent exists; 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[].textstringWhen parent exists; 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[].positionarrayWhen parent exists; 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[]integerWhen parent exists; 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.parseResultStatusstringWhen parent exists; 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.fieldExceptionDetailsarrayWhen parent exists; 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.scoreobjectWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionspending / complete / failed / missingParent 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.fileScoreintegerWhen parent exists; 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.riskstringWhen parent exists; see conditions for optional projectionslow / medium / highParent 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.fieldsobjectWhen parent exists; 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>]objectWhen parent exists; 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>].scoreintegerWhen parent exists; 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>].riskstringWhen parent exists; see conditions for optional projectionslow / medium / highParent 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>].reasonsarrayWhen parent exists; 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[]stringWhen parent exists; 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.confidenceobjectWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionspending / complete / failed / missingParent 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.fileScoreintegerWhen parent exists; 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.riskstringWhen parent exists; see conditions for optional projectionslow / medium / highParent 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.fieldsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].scoreintegerWhen parent exists; 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[].riskstringWhen parent exists; see conditions for optional projectionslow / medium / highParent 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[].deductionsarrayWhen parent exists; 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[]stringWhen parent exists; 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.inputobjectWhen parent exists; 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.fileIdstringWhen parent exists; 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.templateIdstringWhen parent exists; 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.groupTemplateIdstringWhen parent exists; 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.templateNamestringWhen parent exists; 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.modestringWhen parent exists; see conditions for optional projectionsVisualExtract / LayoutExtractParent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template.Processing mode: VisualExtract or LayoutExtract.
data.consumptionobjectWhen parent exists; 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.pagesintegerWhen parent exists; 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.originalFileobjectWhen parent exists; 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.sourceFileNamestringWhen parent exists; 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.fileNamestringWhen parent exists; 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.contentTypestringWhen parent exists; 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.normalizedPdfbooleanWhen parent exists; 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.previewUrlstringWhen parent exists; 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.downloadUrlstringWhen parent exists; 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.artifactsobjectWhen parent exists; 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.parsingZipobjectWhen parent exists; 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.availablebooleanWhen parent exists; 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.downloadUrlstringWhen parent exists; 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.extractionJsonobjectWhen parent exists; 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.availablebooleanWhen parent exists; 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.downloadUrlstringWhen parent exists; 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.integratedZipobjectWhen parent exists; 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.availablebooleanWhen parent exists; 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.downloadUrlstring | nullWhen parent exists; 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.customJsonExportboolean | nullWhen parent exists; 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.jsonExportErrorstring | nullWhen parent exists; 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.extractionSourceJSON | nullWhen parent exists; 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.parseResultUpdatedboolean | nullWhen parent exists; 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.reasonstringNoNoneWhen the service provides the diagnosticReason for unavailable/failed scoring, such as scoring_disabled.
data.score.modelFileScoreintegerNoNoneWhen the service provides the diagnosticModel diagnostic score. Use fileScore for the overall score.
data.score.scoredFieldCountintegerNoNoneWhen the service provides the diagnosticModel-supplied count of scored fields; may be absent.
Endpoint-specific behavior ​
  • Preconditions: Accessible taskId; select parser v3 with Accept-Version or parser_version. Conflicts are rejected.
  • Effects: Result fields become available as parsing, extraction and scoring progress. Read status, parseResultStatus and score.status for their respective states.
  • Rules: S1, S6
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-VERSION

Follow-up calls ​

Shared parser-document fields ​

P11 and P12 use the following parser-document structure. Preserve pages, coordinates, DPI and other public properties when updating a document.

FieldTypeRequired/conditionMeaning
api_versionstringOptional; preserve when editing v3 dataVersion marker, not a substitute for the request selector.
resultobjectPreserve when the wrapper existsBody wrapper; historical documents without result use the root. Do not mix two pages/detail locations.
result.pagesarray<object>Required when editingComplete retained page list, including blank pages.
result.pages[].page_idintegerYesPositive, unique page ID; do not substitute an array index.
result.pages[].page_number / width / height / dpinumber / original typePreserve when presentPage number, dimensions and DPI; preserve values/units rather than hard-coding 72/144.
result.detailarray<object>Provide the complete list for ordinary editsAuthoritative content-element list; explicit [] removes all content and must not be reconstructed from old structured/content.
result.detail[].page_idintegerYesMust reference an existing page in pages.
result.detail[].element_id / paragraph_idintegerA valid element ID is requiredPositive and unique within the page; aliases must agree when both are supplied.
result.detail[].block_idstring / original typePreserve when presentModel reference; not a replacement for element_id.
result.detail[].typestringPreserve original typeFor example text/table/image; preserve the returned business type.
result.detail[].text / html / markdown / contentstring or JSONAccording to element type and original datatext is authoritative, including an empty string; preserve table HTML and other structures.
result.detail[].position / bbox / image / image_url / urlarray or JSONPreserve when presentCoordinates or image references; preserve coordinate units and archive-relative locations.
result.detail[].cells / cols / columns / rows / tableJSONPreserve for tables when presentStructured table properties. Preserve associated rows, columns and cells when editing html.
result.detail[].continue / next_page_id / next_para_idJSONWhen cross-page relations existCross-page relationship metadata; preserve references.
result.detail[].confidence / score / category / label / additional propertiesJSONAs returnedAdditional public properties returned by the model. Preserve their names, types and values during updates.

18. Update file processing results ​

Manually update results of a completed, unconfirmed task.

Request ​
ItemValue
MethodPUT
URL<API_BASE_URL>/api/v2/tasks/
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typeapplication/json
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Accept-VersionstringNov2v2: legacy; v3: public projection—Parser representation version; must agree with parser_version when both are supplied.v3
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
taskIdstringYesNoneNone—Task ID from taskIds in the upload response.task_example
Query parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
parser_versionstringNov2v2 / v3—Alternative to Accept-Version; conflicting selections return 08026.v3
result_formatstringNolegacylegacy: original presentation; unified: normalized presentation—Controls extraction-result presentation independently of parser v3.legacy
json_export_idstringNoConfigured default, if anyNone—Select an administrator-configured JSON export format.export_example
JSON body ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
fieldsobjectAt least one of fields/tables/parse_resultOmission leaves this section unchangedNone—Complete replacement of ordinary fields. Keys are business field names; preserve value types.
tablesobjectAt least one of the three sectionsOmission leaves this section unchangedNone—Table name to row array; replaces the submitted table section. Row keys are actual column names.{"Items": [{"name": "Paper", "qty": 3}]}
parse_resultobjectAt least one of the three sectionsOmission leaves parsing unchangedNone—Complete public parser document. Copy the GET result before editing; alias: parseResult. See shared structures.null
confirmbooleanNotrueNone—Whether to confirm the result in this request. false does not prevent later scoring-based auto-confirmation.false
expectedUpdateDatestringNoNo comparison of this version tokenNone—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.

Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
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:

json
{
  "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"
}
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.taskIdstringWhen parent exists; 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.fileIdstringWhen parent exists; 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.fileNamestringWhen parent exists; 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.batchIdstringWhen parent exists; 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.taskTypestringWhen parent exists; 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.templateIdstringWhen parent exists; 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.groupTemplateIdstringWhen parent exists; 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.templateNamestringWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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.phasestring | nullWhen parent exists; 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.conversionStatusstringWhen parent exists; 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.confirmStatusstringWhen parent exists; see conditions for optional projectionspending / confirmedParent 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.metadatastringWhen parent exists; 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.errorstring | nullWhen parent exists; 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.failureCodestring | nullWhen parent exists; 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.failureStagestring | nullWhen parent exists; 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.createdAtstringWhen parent exists; 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.completedAtstringWhen parent exists; 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.updateDatestringWhen parent exists; 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.outputobjectWhen parent exists; 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.resultFormatstring | nullWhen parent exists; 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.fieldsobjectWhen parent exists; 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_numberstringWhen parent exists; 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_totalstringWhen parent exists; 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.tablesobjectWhen parent exists; 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.ItemsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.orderedElementsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].typestringWhen parent exists; 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[].namestringWhen parent exists; 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[].valuestringWhen parent exists; 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[].columnsarrayWhen parent exists; 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[]stringWhen parent exists; 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[].rowsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.pagesarrayWhen parent exists; 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[]objectWhen parent exists; 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[].pageintegerWhen parent exists; 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[].pageKeystringWhen parent exists; 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[].sourcePageKeystring | nullWhen parent exists; 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[].tableBboxesobject | nullWhen parent exists; 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[].fieldsobjectWhen parent exists; 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_numberstringWhen parent exists; 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_totalstringWhen parent exists; 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[].tablesobjectWhen parent exists; 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.ItemsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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[].orderedElementsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].typestringWhen parent exists; 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[].namestringWhen parent exists; 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[].valuestringWhen parent exists; 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[].columnsarrayWhen parent exists; 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[]stringWhen parent exists; 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[].rowsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.layoutOutputstringWhen parent exists; 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.apiVersionstringWhen parent exists; see conditions for optional projectionsv2 / v3Parent 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.fieldExceptionsstringWhen parent exists; 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.updatedFieldsarrayWhen parent exists; 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[]stringWhen parent exists; 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.extractionResultobjectWhen parent exists; 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.resultFormatstring | nullWhen parent exists; 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.fieldsobjectWhen parent exists; 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_numberstringWhen parent exists; 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_totalstringWhen parent exists; 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.tablesobjectWhen parent exists; 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.ItemsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.orderedElementsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].typestringWhen parent exists; 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[].namestringWhen parent exists; 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[].valuestringWhen parent exists; 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[].columnsarrayWhen parent exists; 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[]stringWhen parent exists; 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[].rowsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.pagesarrayWhen parent exists; 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[]objectWhen parent exists; 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[].pageintegerWhen parent exists; 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[].pageKeystringWhen parent exists; 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[].sourcePageKeystring | nullWhen parent exists; 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[].tableBboxesobject | nullWhen parent exists; 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[].fieldsobjectWhen parent exists; 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_numberstringWhen parent exists; 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_totalstringWhen parent exists; 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[].tablesobjectWhen parent exists; 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.ItemsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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[].orderedElementsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].typestringWhen parent exists; 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[].namestringWhen parent exists; 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[].valuestringWhen parent exists; 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[].columnsarrayWhen parent exists; 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[]stringWhen parent exists; 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[].rowsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].qtyintegerWhen parent exists; 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.parsingResultobjectWhen parent exists; 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_versionstringWhen parent exists; see conditions for optional projectionsv2 / v3Parent 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.resultobjectWhen parent exists; 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.pagesarrayWhen parent exists; 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[]objectWhen parent exists; 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_idintegerWhen parent exists; 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_numberintegerWhen parent exists; 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[].widthintegerWhen parent exists; 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[].heightintegerWhen parent exists; 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[].dpiintegerWhen parent exists; 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.detailarrayWhen parent exists; 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[]objectWhen parent exists; 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_idintegerWhen parent exists; 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_idintegerWhen parent exists; 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_idintegerWhen parent exists; 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_idstringWhen parent exists; 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[].typestringWhen parent exists; 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[].textstringWhen parent exists; 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[].positionarrayWhen parent exists; 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[]integerWhen parent exists; 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.parseResultobjectWhen parent exists; 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_versionstringWhen parent exists; see conditions for optional projectionsv2 / v3Parent 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.resultobjectWhen parent exists; 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.pagesarrayWhen parent exists; 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[]objectWhen parent exists; 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_idintegerWhen parent exists; 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_numberintegerWhen parent exists; 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[].widthintegerWhen parent exists; 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[].heightintegerWhen parent exists; 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[].dpiintegerWhen parent exists; 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.detailarrayWhen parent exists; 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[]objectWhen parent exists; 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_idintegerWhen parent exists; 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_idintegerWhen parent exists; 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_idintegerWhen parent exists; 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_idstringWhen parent exists; 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[].typestringWhen parent exists; 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[].textstringWhen parent exists; 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[].positionarrayWhen parent exists; 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[]integerWhen parent exists; 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.parseResultStatusstringWhen parent exists; 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.fieldExceptionDetailsarrayWhen parent exists; 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.scoreobjectWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionspending / complete / failed / missingParent 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.fileScoreintegerWhen parent exists; 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.riskstringWhen parent exists; see conditions for optional projectionslow / medium / highParent 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.fieldsobjectWhen parent exists; 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>]objectWhen parent exists; 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>].scoreintegerWhen parent exists; 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>].riskstringWhen parent exists; see conditions for optional projectionslow / medium / highParent 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>].reasonsarrayWhen parent exists; 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[]stringWhen parent exists; 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.confidenceobjectWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionspending / complete / failed / missingParent 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.fileScoreintegerWhen parent exists; 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.riskstringWhen parent exists; see conditions for optional projectionslow / medium / highParent 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.fieldsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].namestringWhen parent exists; 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[].scoreintegerWhen parent exists; 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[].riskstringWhen parent exists; see conditions for optional projectionslow / medium / highParent 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[].deductionsarrayWhen parent exists; 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[]stringWhen parent exists; 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.inputobjectWhen parent exists; 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.fileIdstringWhen parent exists; 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.templateIdstringWhen parent exists; 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.groupTemplateIdstringWhen parent exists; 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.templateNamestringWhen parent exists; 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.modestringWhen parent exists; see conditions for optional projectionsVisualExtract / LayoutExtractParent object/item exists; values may be null depending on state. Dynamic business-map keys depend on the template.Processing mode: VisualExtract or LayoutExtract.
data.consumptionobjectWhen parent exists; 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.pagesintegerWhen parent exists; 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.originalFileobjectWhen parent exists; 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.sourceFileNamestringWhen parent exists; 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.fileNamestringWhen parent exists; 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.contentTypestringWhen parent exists; 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.normalizedPdfbooleanWhen parent exists; 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.previewUrlstringWhen parent exists; 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.downloadUrlstringWhen parent exists; 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.artifactsobjectWhen parent exists; 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.parsingZipobjectWhen parent exists; 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.availablebooleanWhen parent exists; 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.downloadUrlstringWhen parent exists; 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.extractionJsonobjectWhen parent exists; 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.availablebooleanWhen parent exists; 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.downloadUrlstringWhen parent exists; 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.integratedZipobjectWhen parent exists; 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.availablebooleanWhen parent exists; 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.downloadUrlstring | nullWhen parent exists; 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.customJsonExportboolean | nullWhen parent exists; 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.jsonExportErrorstring | nullWhen parent exists; 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.extractionSourceJSON | nullWhen parent exists; 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.parseResultUpdatedbooleanWhen parent exists; 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.reasonstringNoNoneWhen the service provides the diagnosticReason for unavailable/failed scoring, such as scoring_disabled.
data.score.modelFileScoreintegerNoNoneWhen the service provides the diagnosticModel diagnostic score. Use fileScore for the overall score.
data.score.scoredFieldCountintegerNoNoneWhen the service provides the diagnosticModel-supplied count of scored fields; may be absent.
Endpoint-specific behavior ​
  • Preconditions: Supply fields, tables or parse_result; an optional expectedUpdateDate must match exactly.
  • Effects: Submitted sections are replaced in full; confirm defaults to true. Extraction is not automatically rerun. Revoke confirmation through the management workflow before editing a confirmed task, then GET again.
  • Rules: S1, S6
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-STATE, E-VERSION

Follow-up calls ​

19. Get file classification ​

Read current file-classification status and the associated template.

Request ​
ItemValue
MethodGET
URL<API_BASE_URL>/api/v2/classify/{taskId}/result
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
taskIdstringYesNoneNone—Task ID from taskIds in the upload response.task_example
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request GET "<API_BASE_URL>/api/v2/classify/task_example/result" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_example",
    "status": "completed",
    "templateId": "template_example",
    "templateName": "Invoice Template",
    "confidence": null,
    "metadata": "{\"source\":\"api\"}"
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.taskIdstringWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsObject-specific; see S1/S3Parent 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.templateIdstringWhen parent exists; 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.templateNamestringWhen parent exists; 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.confidencenumber | nullWhen parent exists; 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.metadatastringWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: An accessible taskId; template fields may be null while classification is unavailable.
  • Effects: Read-only; confidence may be null and must not be converted to zero.
  • Rules: S1
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL

Follow-up calls ​

4.5 Reminder-rule management ​

20. Create a reminder rule ​

Create a reminder rule for the current tenant.

Request ​
ItemValue
MethodPOST
URL<API_BASE_URL>/api/v2/rules
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typeapplication/json
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
JSON body ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
namestringRequired for create; optional for updateNoneNone1–50 characters; unique within the current tenantRule name; omitted update fields are preserved.Invoice Review Rule
template_idstringRequired for create; optional for updateNoneNone—Associated template ID.template_example
frequencystringRequired for create; optional for updateNonedaily; hourly; on_extract_complete after extraction; on_result_confirm after confirmation—Trigger schedule or event.on_extract_complete
conditionsarray<object>Required and nonempty for create; optional for updateNoneNone—List of trigger conditions.[{"field": "score", "operator": "lt", "value": 80}]
channelsarray<string>Required and nonempty for create; optional for updateNonein_app: in-app; email: email; webhook: callback—Notification channels; an enabled channel does not prove successful delivery.["in_app"]
recipientsobjectRequired for create; optional for updateNoneNone—Recipient configuration; see nested fields.
title_templatestringRequired for create; optional for updateNoneNone1–100 charactersNotification title template supporting event variables such as {file_name}.Review
content_templatestringRequired for create; optional for updateNoneNone1–500 charactersNotification body using supplied event-field variables.Please review {file_name}.
statusstringOptional for update; create defaults to activeactiveactive: enabled; inactive: disabled—Rule activation state; this field does not override the initial state on creation.inactive
conditions[].fieldstringYesNoneNone—System field score/review_status/processing_status, or fields.<business-field>.score
conditions[].operatorstringYesNoneNone—score supports eq/ne/gt/gte/lt/lte/between/not_between; status fields support eq/ne/in/not_in.lt
conditions[].valueJSONYesNoneNone—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[].logicstringNoANDAND / OR—AND requires all; OR allows any.AND
recipients.membersarray<string>No[]None—Active user IDs in this tenant, at most 50 distinct IDs; not membership-record IDs.["user_example"]
recipients.emailsarray<string>No[]None—Additional email addresses, validated and deduplicated for delivery.["[email protected]"]
recipients.field_bindingsarray<string>No[]None—Read recipient addresses from event fields, such as fields.contact_email.["fields.contact_email"]
recipients.webhook_idsarray<string>Required when channels includes webhook[]None—Configured active callback IDs in the tenant subscribed to the rule_triggered event.["webhook_example"]
recipients.departmentsarrayNo[]None—Department lists are not used for recipient resolution. Configure recipients through members, emails, field_bindings or webhook_ids.[]
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
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:

json
{
  "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}."
}
Successful response ​

HTTP 201

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 0,
  "message": "success",
  "data": {
    "rule_id": "rule_example",
    "name": "Invoice Review Rule",
    "status": "active",
    "created_at": "2026-10-23T08:00:00Z"
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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_idstringWhen parent exists; 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.namestringWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsactive / inactiveParent 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_atstringWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: Supply complete rule fields and valid conditions/recipients; identity override fields are forbidden.
  • Effects: New rules default to active. Matching trigger conditions start notification processing.
  • Rules: S7
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-RULE

Follow-up calls ​

21. Update a reminder rule ​

Partially update a reminder rule in the current tenant.

Request ​
ItemValue
MethodPUT
URL<API_BASE_URL>/api/v2/rules/
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typeapplication/json
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
rule_idstringYesNoneNone—Rule ID from rule_id in creation or listing.rule_example
JSON body ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
namestringRequired for create; optional for updateNoneNone1–50 characters; unique within the current tenantRule name; omitted update fields are preserved.Invoice Review Rule
template_idstringRequired for create; optional for updateNoneNone—Associated template ID.template_example
frequencystringRequired for create; optional for updateNonedaily; hourly; on_extract_complete after extraction; on_result_confirm after confirmation—Trigger schedule or event.on_extract_complete
conditionsarray<object>Required and nonempty for create; optional for updateNoneNone—List of trigger conditions.[{"field": "score", "operator": "lt", "value": 80}]
channelsarray<string>Required and nonempty for create; optional for updateNonein_app: in-app; email: email; webhook: callback—Notification channels; an enabled channel does not prove successful delivery.["in_app"]
recipientsobjectRequired for create; optional for updateNoneNone—Recipient configuration; see nested fields.
title_templatestringRequired for create; optional for updateNoneNone1–100 charactersNotification title template supporting event variables such as {file_name}.Review
content_templatestringRequired for create; optional for updateNoneNone1–500 charactersNotification body using supplied event-field variables.Please review {file_name}.
statusstringOptional for update; create defaults to activeactiveactive: enabled; inactive: disabled—Rule activation state; this field does not override the initial state on creation.inactive
conditions[].fieldstringYesNoneNone—System field score/review_status/processing_status, or fields.<business-field>.score
conditions[].operatorstringYesNoneNone—score supports eq/ne/gt/gte/lt/lte/between/not_between; status fields support eq/ne/in/not_in.lt
conditions[].valueJSONYesNoneNone—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[].logicstringNoANDAND / OR—AND requires all; OR allows any.AND
recipients.membersarray<string>No[]None—Active user IDs in this tenant, at most 50 distinct IDs; not membership-record IDs.["user_example"]
recipients.emailsarray<string>No[]None—Additional email addresses, validated and deduplicated for delivery.["[email protected]"]
recipients.field_bindingsarray<string>No[]None—Read recipient addresses from event fields, such as fields.contact_email.["fields.contact_email"]
recipients.webhook_idsarray<string>Required when channels includes webhook[]None—Configured active callback IDs in the tenant subscribed to the rule_triggered event.["webhook_example"]
recipients.departmentsarrayNo[]None—Department lists are not used for recipient resolution. Configure recipients through members, emails, field_bindings or webhook_ids.[]
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
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:

json
{
  "name": "Invoice Review Rule - Priority",
  "conditions": [
    {
      "field": "score",
      "operator": "lt",
      "value": 70,
      "logic": "AND"
    }
  ]
}
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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}."
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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_idstringWhen parent exists; 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.namestringWhen parent exists; 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_idstringWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsactive / inactiveParent 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.channelsarrayWhen parent exists; 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[]stringWhen parent exists; 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.frequencystringWhen parent exists; 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_atstringWhen parent exists; 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_atstringWhen parent exists; 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.conditionsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].fieldstringWhen parent exists; 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[].operatorstringWhen parent exists; 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[].valueintegerWhen parent exists; 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[].logicstringWhen parent exists; 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.recipientsobjectWhen parent exists; 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.membersarrayWhen parent exists; 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[]stringWhen parent exists; 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.departmentsarrayWhen parent exists; 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.emailsarrayWhen parent exists; 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_bindingsarrayWhen parent exists; 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_idsarrayWhen parent exists; 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_templatestringWhen parent exists; 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_templatestringWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: The rule must be accessible; omitted fields are retained, but the merged configuration is revalidated.
  • Effects: Stores changes and clears existing trigger-deduplication records for this rule, starting a new deduplication period.
  • Rules: S7
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-RULE

Follow-up calls ​

22. List reminder rules ​

List reminder-rule summaries for the current tenant.

Request ​
ItemValue
MethodGET
URL<API_BASE_URL>/api/v2/rules
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Query parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
statusstringNoAllactive / inactive—Filter rule activation state; no pagination parameters.active
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request GET "<API_BASE_URL>/api/v2/rules" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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"
    }
  ]
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataarrayYes; 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[]objectWhen parent exists; 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_idstringWhen parent exists; 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[].namestringWhen parent exists; 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_idstringWhen parent exists; 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[].statusstringWhen parent exists; see conditions for optional projectionsactive / inactiveParent 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[].channelsarrayWhen parent exists; 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[]stringWhen parent exists; 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[].frequencystringWhen parent exists; 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_atstringWhen parent exists; 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_atstringWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: Only optional status filtering is provided; no pagination or sort parameters.
  • Effects: Read-only; list summaries omit full conditions, recipients and message templates. Use R04 for details.
  • Rules: S7
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-RULE

Follow-up calls ​

23. Get a reminder rule ​

Read the complete configuration of an accessible reminder rule.

Request ​
ItemValue
MethodGET
URL<API_BASE_URL>/api/v2/rules/
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
rule_idstringYesNoneNone—Rule ID from rule_id in creation or listing.rule_example
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request GET "<API_BASE_URL>/api/v2/rules/rule_example" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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}."
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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_idstringWhen parent exists; 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.namestringWhen parent exists; 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_idstringWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsactive / inactiveParent 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.channelsarrayWhen parent exists; 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[]stringWhen parent exists; 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.frequencystringWhen parent exists; 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_atstringWhen parent exists; 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_atstringWhen parent exists; 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.conditionsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].fieldstringWhen parent exists; 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[].operatorstringWhen parent exists; 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[].valueintegerWhen parent exists; 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[].logicstringWhen parent exists; 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.recipientsobjectWhen parent exists; 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.membersarrayWhen parent exists; 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[]stringWhen parent exists; 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.departmentsarrayWhen parent exists; 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.emailsarrayWhen parent exists; 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_bindingsarrayWhen parent exists; 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_idsarrayWhen parent exists; 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_templatestringWhen parent exists; 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_templatestringWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: Use rule_id from creation or listing.
  • Effects: Read-only; it does not send notifications or reset deduplication.
  • Rules: S7
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-RULE

Follow-up calls ​

24. Enable or disable a reminder rule ​

Enable or disable a reminder rule.

Request ​
ItemValue
MethodPATCH
URL<API_BASE_URL>/api/v2/rules/{rule_id}/status
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-Typeapplication/json
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
rule_idstringYesNoneNone—Rule ID from rule_id in creation or listing.rule_example
JSON body ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
statusstringYesNoneactive: enabled; inactive: disabled—Rule state is a string, not the numeric template status 0/1.inactive
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
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:

json
{
  "status": "inactive"
}
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "code": 0,
  "message": "success",
  "data": {
    "rule_id": "rule_example",
    "status": "inactive"
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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_idstringWhen parent exists; 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.statusstringWhen parent exists; see conditions for optional projectionsactive / inactiveParent 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.
Endpoint-specific behavior ​
  • Preconditions: The rule must be accessible; status is active or inactive.
  • Effects: Updates rule activation. Previously sent notifications remain unchanged; delivery status is independent of rule state.
  • Rules: S7
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-RULE

Follow-up calls ​

25. Delete a reminder rule ​

Delete a reminder rule in the current tenant.

Request ​
ItemValue
MethodDELETE
URL<API_BASE_URL>/api/v2/rules/
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Path parameters ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
rule_idstringYesNoneNone—Rule ID from rule_id in creation or listing.rule_example
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request DELETE "<API_BASE_URL>/api/v2/rules/rule_example" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 204

Success without a response body; do not parse JSON or expect code.

Endpoint-specific behavior ​
  • Preconditions: The rule must exist and be accessible.
  • Effects: Success returns 204 without a body. Sent notifications are not retracted; deleting an already absent rule may return 404.
  • Rules: S7
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL, E-PARAM, E-RULE

Follow-up calls ​

4.6 Asset information ​

26. Get asset information ​

Read the asset and product-quota panel for the key organization.

Request ​
ItemValue
MethodGET
URL<API_BASE_URL>/api/v2/assets
AuthenticationX-API-Key; tenant resources accessible/manageable by this key
Content-TypeNo body; Content-Type not required
Headers ​
FieldTypeRequiredDefaultEnumFormat/limitsMeaning/dependenciesExample
X-API-KeystringYes; Bearer alternative supportedNoneNoneDo not put it in URL or BodyAuthenticate the key tenant and ownership<API_KEY>
Request example ​

Replace the service URL, API key, resource IDs, timestamps and files before running the example.

bash
curl --request GET "<API_BASE_URL>/api/v2/assets" \
  --header "X-API-Key: <API_KEY>"
Successful response ​

HTTP 200

Example success response. Field values depend on task state, API version and resource availability. Business field names are defined by the template.

json
{
  "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
      }
    ]
  }
}
Response fields ​
FieldTypeReturnedEnumConditionMeaning
codeintegerYes—Successful JSON response200 for files, tasks, templates and assets; 0 for reminder rules. Both are numeric.
messagestringYes—Successful JSON responseEnglish system result message, normally success.
dataobjectYes; 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.assetintegerWhen parent exists; 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.assetTypeNamestring | nullWhen parent exists; 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.overageTimestring | nullWhen parent exists; 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.assetTotalintegerWhen parent exists; 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.userobjectWhen parent exists; 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.avatarstring | nullWhen parent exists; 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.usernamestringWhen parent exists; 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.emailstringWhen parent exists; 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.accountTypestring | nullWhen parent exists; 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.accountTypeNamestring | nullWhen parent exists; 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.expireTimestring | nullWhen parent exists; 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.showExpireTimebooleanWhen parent exists; 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.showAssetEntrybooleanWhen parent exists; 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.productsarrayWhen parent exists; 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[]objectWhen parent exists; 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[].productTypestringWhen parent exists; 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[].productNamestringWhen parent exists; 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[].unitstringWhen parent exists; 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[].unitNamestringWhen parent exists; 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[].usedintegerWhen parent exists; 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[].unlimitedbooleanWhen parent exists; 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[].usageExactintegerWhen parent exists; 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[].withholdingintegerWhen parent exists; 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[].remainingintegerWhen parent exists; 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[].totalintegerWhen parent exists; 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[].progressintegerWhen parent exists; 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[].fileLimitinteger | nullWhen parent exists; 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[].singleFileSizeLimitMBintegerWhen parent exists; 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.
Endpoint-specific behavior ​
  • Preconditions: No business parameters; identity comes only from the key.
  • Effects: Returns quota and usage information for the current organization. A null usageExact indicates unknown historical usage.
  • Rules: S4
Applicable errors ​

E-AUTH, E-RESOURCE, E-INTERNAL

Follow-up calls ​

5. Request parameter index ​

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.

EndpointLocationFields
Upload files (asynchronous processing)Form-datafile, url, mode, template_id, metadata, user_id, user_email, enable_scoring
Delete filesJSON bodyfileIds, dateRange, dateRange.start / dateRange.end, metadataConditions, deletePermanently
Change the file templatePathfileId
Change the file templateJSON bodygroupTemplateId, enableScoring
List batch tasksPathbatchId
List batch tasksQuerystatus
Retry or reprocess a taskPathtaskId
Retry or reprocess a taskQueryenable_scoring
Cancel a taskPathtaskId
List templatesQuerysearch, status
Get template fieldsPathid
Create a templateJSON bodyname, 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 templatePathid
Update a templateJSON bodyname, 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 templatePathid
Upload an initial template sampleForm-datafile
Add or replace template samplesPathtemplateId
Add or replace template samplesForm-datafile, replace_all
List template samplesPathtemplateId
List template samplesQuerypage, page_size
Delete a template samplePathtemplateId, sampleId
Extract custom fieldsPathfileId
Extract custom fieldsJSON bodykeys, tableHeaders, enableScoring
Get file processing resultsHeadersAccept-Version
Get file processing resultsPathtaskId
Get file processing resultsQueryparser_version, result_format, json_export_id
Update file processing resultsHeadersAccept-Version
Update file processing resultsPathtaskId
Update file processing resultsQueryparser_version, result_format, json_export_id
Update file processing resultsJSON bodyfields, tables, parse_result, confirm, expectedUpdateDate
Get file classificationPathtaskId
Create a reminder ruleJSON bodyname, 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 rulePathrule_id
Update a reminder ruleJSON bodyname, 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 rulesQuerystatus
Get a reminder rulePathrule_id
Enable or disable a reminder rulePathrule_id
Enable or disable a reminder ruleJSON bodystatus
Delete a reminder rulePathrule_id
Get asset informationNoneNo business request parameters

6. Calling sequence and error handling ​

6.1 Document processing sequence ​

  1. Get a template ID from the template list. To create a template, upload an initial sample and then create the template.
  2. Upload files and retain batchId, fileIds and taskIds.
  3. Use the batch query for overall progress or task results for an individual task. Poll or read results according to its state.
  4. Query the task again before editing. For result updates, set expectedUpdateDate to the latest updateDate and explicitly set confirm:false to save without confirming.
  5. On failure, read code and error_detail.reason and check the task rules before retrying.
  6. After a write request times out, query resource state. For a version conflict, retrieve the latest result and reconcile changes before submitting again.

6.2 Error responses and codes ​

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.

json
{
  "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.

json
{
  "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.

FieldTypeMeaning/condition
codeinteger|stringBusiness-envelope result code; preserve leading zeros
messagestringEnglish system result message
dataJSON|nullAdditional error data, possibly null
error_codestringError classification for reminder-rule endpoints
error_detail.reasonstringSpecific reason under a shared legacy code
error_detail.message / suggestionstringEnglish explanation and corrective guidance
error_detail.retryablebooleanWhether failure is temporary; check write outcome before retrying
error_detail.request_idstringError correlation identifier matching the X-Request-ID response header
error_detail.detailsobjectMay include field/allowed_methods context, without reflecting keys

E-AUTH ​

HTTPBusiness code/fieldsConditionAction
HTTP 200 / 401 / 403401 / 403Missing, 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.

E-PARAM ​

HTTPBusiness code/fieldsConditionAction
HTTP 200400 / "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.

E-RESOURCE ​

HTTPBusiness code/fieldsConditionAction
HTTP 200 / 404404 / "08003" / "08014" / "04003"Resource absent or inaccessible to this identity.Check IDs and tenant; do not infer cross-tenant resource existence.

E-STATE ​

HTTPBusiness code/fieldsConditionAction
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.

E-QUOTA ​

HTTPBusiness code/fieldsConditionAction
HTTP 200"08001"Insufficient quota for document processing.Check available assets or contact an administrator to replenish processing quota.

E-VERSION ​

HTTPBusiness code/fieldsConditionAction
HTTP 200"08026"Invalid parser version, conflicting selectors, or disabled v2 compatibility.Use a consistent v3 selector.

E-SAMPLE ​

HTTPBusiness code/fieldsConditionAction
HTTP 200"08027" / "08028"More than five samples, or deletion of the final sample.Adjust the sample set or intentionally use full replacement.

E-FORMAT ​

HTTPBusiness code/fieldsConditionAction
HTTP 200400 / 415The file exceeds the size limit or uses an unsupported format.Adjust size/format; URL imports have the same size ceiling.

E-ROUTE ​

HTTPBusiness code/fieldsConditionAction
HTTP404 / HTTP405status / errorNo matching route/method; a business code may be absent, while error_detail may still provide diagnostics.Check path/method and inspect Allow for 405.

E-RULE ​

HTTPBusiness code/fieldsConditionAction
HTTP400 / HTTP404 / HTTP409102 / 404 / 409Invalid 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.

E-INTERNAL ​

HTTPBusiness code/fieldsConditionAction
HTTP 200"01001" / 100Service/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.