API v2: Session OCR πΒΆ
Recorded RDP, VNC and rendered HTTP sessions can be processed and indexed for full-text search purposes.
Data StructuresΒΆ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Unique, read only object identifier. |
|
|
string |
ID of the session to OCR. Immutable. |
|
|
string |
Shows whether the session has been replicated across nodes, identified by serial numbers. Default value: |
|
|
boolean |
Read-only. Indicates whether session texts have been OCR-processed. |
|
|
string |
yes |
Specify OCR languages using |
|
number |
yes |
|
|
datetime |
Read-only. |
|
|
datetime |
Read-only. |
|
|
datetime |
Read-only. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the SessionOCRModelΒΆ
Request
Method |
|
Path |
|
GET /api/v2/objspec/session_ocr
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/objspec/session_ocr'
Check Session OCR StatusΒΆ
Request
Method |
|
Path |
|
GET /api/v2/session/<session_id>/ocr
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.31.92.108/api/v2/session/4782822804267466753/ocr'
{
Response
{
"result": "success",
"session_ocr": [
{
"id": "4665729213955833858",
"session_id": "4665729213955833858",
"on_node": "83329531",
"ocred": true,
"lang": "eng+deu+pol",
"priority": 1,
"created_on": "83329531",
"created_at": "2025-05-14 03:22:32.367319-07",
"modified_at": "2025-05-14 03:24:58.1089-07"
}
]
}
Process Session for OCRΒΆ
Note
The list of available OCR language codes can be retrieved using the internal API endpoint
GET /api/v2/internal/ocr_lang.The response contains language identifiers (
value) and their human-readable names (label), which should be used when configuring OCR-based session analysis.
Request
Method |
|
Path |
|
Headers |
|
Body |
|
POST /api/v2/session/<session_id>/ocr
Example Request
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
-d '{"lang": "eng+deu+pol","priority":1}' \
'https://10.31.92.108/api/v2/session/4665729213955833858/ocr'
Response
{
"result": "success",
"session_ocr": {
"id": "4665729213955833858"
}
}