API v2: Session OCR πŸ†•ΒΆ

Recorded RDP, VNC and rendered HTTP sessions can be processed and indexed for full-text search purposes.


Data StructuresΒΆ

SessionOCRModelΒΆ

Attribute

Type

Required

Description

id

string

Unique, read only object identifier.

session_id

string

ID of the session to OCR. Immutable.

on_node

string

Shows whether the session has been replicated across nodes, identified by serial numbers. Default value: current_setting('fudo.serial', true)

ocred

boolean

Read-only. Indicates whether session texts have been OCR-processed.

lang

string

yes

Specify OCR languages using + as a separator (e.g., eng+deu+pol).

priority

number

yes

created_on

datetime

Read-only.

created_at

datetime

Read-only.

modified_at

datetime

Read-only.

removed

boolean

Read-only.

Retrieve Available Attributes of the SessionOCRModelΒΆ

Request

Method

GET

Path

/api/v2/objspec/session_ocr

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

GET

Path

/api/v2/session/<session_id>/ocr

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

POST

Path

/api/v2/session/<session_id>/ocr

Headers

Content-Type: Application/json

Body

SessionOCRModel

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"
    }
}