curl --request POST \
--url https://docflow.textin.ai/api/app-api/sip/platform/v2/review/listReviewRuleAndTask \
--header 'Content-Type: application/json' \
--header 'x-ti-app-id: <api-key>' \
--header 'x-ti-secret-code: <api-key>' \
--data '
{
"workspaceIdNo": 1234,
"fileBatchNo": "abcd",
"classificationIdNoList": [
1234
]
}
'{
"code": 200,
"data": [
{
"reviewRule": {
"id": 1,
"reviewRuleIdNo": 123,
"reviewRuleType": "single",
"reviewRulePrompt": "Review rule prompt content",
"fileBatchNo": "abcd",
"reviewRuleName": "Review rule name",
"workspaceIdNo": 123456,
"classificationIdNoList": [
1234
],
"version": 1,
"fieldInfoList": [
{
"fieldId": 1234,
"fieldName": "Name",
"blockType": 0,
"tableId": -1,
"tableName": "Table1",
"classificationIdNo": 123,
"classificationName": "ID Card"
}
]
},
"latestReviewRuleTask": {
"gmtCreate": "<string>",
"gmtModified": "<string>",
"creatorId": 1,
"operatorId": 1,
"deleted": 0,
"id": 1,
"reviewRuleIdNo": 1,
"reviewRuleVersion": 1,
"processStatus": 1,
"thinkOutput": "Thinking output content",
"evalOutput": "Evaluation output content",
"bindingTaskIds": [
1234
],
"resultHighlights": [
{
"fileId": 12345,
"taskId": 1234,
"text": "Text content",
"position": [
1
],
"page": 0,
"angel": 0,
"startPos": 0,
"endPos": 100
}
],
"evalResult": true,
"duration": 100,
"eval": false,
"manualAuditStatus": 0,
"manualAuditMessage": "Manual annotation content"
}
}
],
"msg": "Success",
"traceId": "1234abcd"
}Review rule task list, request parameters need to be obtained from the prerequisite interface.
Prerequisite interface: /api/app-api/sip/platform/v2/review/listByFileBatchNo
Purpose: Get batch list information based on workspaceIdNo, workspaceIdNo is obtained from the page
Key return result field:
- fileBatchNo
Prerequisite interface: /api/app-api/sip/platform/v2/review/listExecuteTasksByFileBatchNo Purpose: Get all classification IDs under the batch Key return result field:
- taskClassificationIdNo: classification ID
curl --request POST \
--url https://docflow.textin.ai/api/app-api/sip/platform/v2/review/listReviewRuleAndTask \
--header 'Content-Type: application/json' \
--header 'x-ti-app-id: <api-key>' \
--header 'x-ti-secret-code: <api-key>' \
--data '
{
"workspaceIdNo": 1234,
"fileBatchNo": "abcd",
"classificationIdNoList": [
1234
]
}
'{
"code": 200,
"data": [
{
"reviewRule": {
"id": 1,
"reviewRuleIdNo": 123,
"reviewRuleType": "single",
"reviewRulePrompt": "Review rule prompt content",
"fileBatchNo": "abcd",
"reviewRuleName": "Review rule name",
"workspaceIdNo": 123456,
"classificationIdNoList": [
1234
],
"version": 1,
"fieldInfoList": [
{
"fieldId": 1234,
"fieldName": "Name",
"blockType": 0,
"tableId": -1,
"tableName": "Table1",
"classificationIdNo": 123,
"classificationName": "ID Card"
}
]
},
"latestReviewRuleTask": {
"gmtCreate": "<string>",
"gmtModified": "<string>",
"creatorId": 1,
"operatorId": 1,
"deleted": 0,
"id": 1,
"reviewRuleIdNo": 1,
"reviewRuleVersion": 1,
"processStatus": 1,
"thinkOutput": "Thinking output content",
"evalOutput": "Evaluation output content",
"bindingTaskIds": [
1234
],
"resultHighlights": [
{
"fileId": 12345,
"taskId": 1234,
"text": "Text content",
"position": [
1
],
"page": 0,
"angel": 0,
"startPos": 0,
"endPos": 100
}
],
"evalResult": true,
"duration": 100,
"eval": false,
"manualAuditStatus": 0,
"manualAuditMessage": "Manual annotation content"
}
}
],
"msg": "Success",
"traceId": "1234abcd"
}x-ti-app-id
"1234abcd"
x-ti-secret-code
"1234abcd"
OK
Status code
200
Show child attributes
Rule review DTO
Show child attributes
Primary key ID
1
Review rule unique ID
123
Review rule type
"single"
Review rule prompt
"Review rule prompt content"
File batch number
"abcd"
Review rule name
"Review rule name"
Workspace unique number
123456
Classification ID list
Classification ID
Review rule version
1
Field information flat list
Show child attributes
Field ID
1234
Field name
"Name"
Field type 0: Basic field 1: Table field
0
Table ID
-1
Table name
"Table1"
Classification ID
123
Classification name
"ID Card"
Show child attributes
Creator user ID
1
Operator user ID
1
Whether deleted, 0-Not deleted, 1-Deleted
0
Review rule task unique ID
1
Review rule unique ID
1
Review rule version
1
Review task status (0: Pending review, 1: Review successful, 2: Review failed, 3: Reviewing)
1
Thinking output
"Thinking output content"
Evaluation output
"Evaluation output content"
Binding task ID list
Binding task ID
Show child attributes
File ID
12345
Task ID
1234
Text
"Text content"
Position information
Position information
Page number
0
Rotation angle
0
Start position
0
End position
100
Evaluation result (true: Pass, false: Fail)
true
Task duration
100
Whether it is a test run
false
Evaluation result manual confirmation
0
Manual annotation
"Manual annotation content"
Status message
"Success"
Trace ID
"1234abcd"