Ocr API
3 operations. Back to the API overview. Examples use synthetic data.
Lists documents awaiting review with their extracted fields (PHI)
GET /admin/v1/ocr/reviews
Documents awaiting review and a reviewer's decisions.
Needs the permission: documents:inbox.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
status | query | string | optional | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
documents | any | optional | - |
{
"documents": {}
}Other responses
400-401-403-404-503-
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/ocr/reviews"Records a reviewer's decision
POST /admin/v1/ocr/{id}
Documents awaiting review and a reviewer's decisions.
Needs the permission: documents:review.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
assignee | string | optional | - |
decision | string | optional | - |
fields | map of string | optional | - |
reason | string | optional | - |
version | integer | optional | - |
{
"assignee": "example",
"decision": "example",
"fields": {
"example": "example"
},
"reason": "Example text",
"version": 1
}Response 200
{
"decision": {},
"transaction_id": {}
}Other responses
401-403-404-503-
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"assignee":"example","decision":"example","fields":{"example":"example"},"reason":"Example text","version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/ocr/example-id"Returns the original document (PDF or TIFF) for a reviewer
GET /admin/v1/ocr/{id}/document
Documents awaiting review and a reviewer's decisions.
Needs the permission: documents:inbox.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Response 200
. No body.
Other responses
401-403-404-410-422-503-
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/ocr/example-id/document"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.