Skip to content

System API

System APIs can be called on an anonymous Command WS connection.

system.ping

Heartbeat probe.

ParameterTypeRequiredNotes
none--params can be an empty object.

Response data:

FieldTypeNotes
pongbooleanAlways true.

system.info

Returns a runtime status snapshot. Fields are supplied by the Runtime status_supplier.

ParameterTypeRequiredNotes
none--params can be an empty object.

Response data:

FieldTypeNotes
runningbooleanWhether the Runtime is running.
uptimeSecnumberRuntime uptime in seconds.
bindHoststringLocal service bind host.
processobjectProcess information, including pid and executablePath.
httpobjectHTTP service status, including enabled, sites, and assetBaseUrl.
portsobjectLocal ports, including adminHttp, demoHttp, assetHttp, commandWs, and videoWs.
providersobjectCurrent provider names, including device, graphic, imageEnhance, ocr, ofd, and auth.
authDiagnosticsobjectAuth-related environment configuration diagnostics.
wsobjectCommand WS and Video WS connection, auth failure, request, or frame statistics.
applicationobjectApplication session state, including boundSessions and activeStreams.

system.capabilities

Returns the auth model, public methods, and platform capabilities.

ParameterTypeRequiredNotes
none--params can be an empty object.

Response data:

FieldTypeNotes
auth_model.connection_requires_tokenbooleanWhether Command WS handshake requires a token; currently false.
auth_model.session_fieldstringSession field, currently session_token.
auth_model.session_bindingstringCurrently connection_bound.
auth_model.video_bindingstringCurrently session_token + stream_id.
methods[]arrayMethod catalog; each item has method, requires_session, and summary.
platform_capabilities.saneobjectSANE supported platforms and provider information.
platform_capabilities.sane.supported_platformsstring[]Currently ["linux"].
platform_capabilities.sane.linux_onlybooleanCurrently true.
platform_capabilities.sane.providerstringCurrent SANE provider name; empty string when unavailable.

Example:

json
{
  "request_id": "req-cap-001",
  "method": "system.capabilities",
  "params": {}
}

CZUR Open Platform Documentation