Docsplit API
2 operations. Back to the API overview. Examples use synthetic data.
Returns the file's pages and its split for the editor
GET /admin/v1/ocr/{id}/split
The page split of a received file, for the page editor.
Needs the permission: documents:inbox.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
basis | any | optional | - |
boundaries | any | optional | - |
doc_types | any | optional | - |
documents | any | optional | - |
file_pages | any | optional | - |
file_transaction_id | integer | optional | - |
orphans | any | optional | - |
pages | any | optional | - |
patients | array of any | optional | - |
reasons | any | optional | - |
status | any | optional | - |
version | any | optional | - |
{
"basis": {},
"boundaries": {},
"doc_types": {},
"documents": {},
"file_pages": {},
"file_transaction_id": 1,
"orphans": {},
"pages": {},
"patients": [
{}
],
"reasons": {},
"status": {},
"version": {}
}Other responses
401-403-404-410-503-
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/ocr/example-id/split"Records a clerk's split (applied by the broker)
POST /admin/v1/ocr/{id}/split
The page split of a received file, for the page editor.
Needs the permission: documents:review.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
plan | object (OcrClerkPlan) | optional | - |
plan.file | array of integer | optional | - |
plan.patients | array of object (OcrClerkPatient) | optional | - |
reason | string | optional | - |
version | integer | optional | - |
{
"plan": {
"file": [
1
],
"patients": [
{
"docs": [
{}
]
}
]
},
"reason": "Example text",
"version": 1
}Response 202
| Field | Type | Presence | Description |
|---|---|---|---|
documents | any | optional | - |
file_transaction_id | integer | optional | - |
{
"documents": {},
"file_transaction_id": 1
}Other responses
400-401-403-404-410-503-
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"plan":{"file":[1],"patients":[{"docs":[{}]}]},"reason":"Example text","version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/ocr/example-id/split"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.