Programmatically access WebData.
Reference → Code → Extensions API → Connector | WebAccess API Reference
We provide an API via Web-Service that can read and write tag values. To access the tags, a login is required for solution users. You can directly access this API through HTTP (REST API) connecting with a runtime system.
This page presents information about how to use the WebAccess REST API.
Where This API Fits in the Runtime API Landscape
This page documents the legacy /rtServices/api/ surface exposed by the runtime web server on port 3101. It remains supported for existing integrations and continues to ship with FrameworX 10.1.5.
Starting with 10.1.5, FrameworX also exposes a versioned Runtime REST API v1.0 on the same TServer port (3101+) covering tag read/write, alarm history, aggregated history, and other runtime surfaces under versioned endpoints with Bearer-GUID authentication. The v1.0 reference is documented in the partner API specification and in the Server Namespace Reference alongside the script-side @Server namespace.
Companion health endpoints are published on the same port:
/health— liveness and runtime status./ready— readiness for traffic (modules loaded, datasets connected).
When choosing between surfaces: use the legacy verbs below for existing clients and for the simplest read/write/subscribe path; use the v1.0 versioned endpoints for new integrations that need aggregation, alarm history, or stable versioning guarantees.
Contract Methods Using REST API
SetServer
Defines the Server for following requests.
Method: GET
URL Example: http://localhost:3101/rtServices/api/SetServer
Request/Headers
. Content-Type: application/json
. Request/Body
. { "ModuleName": "Test", "UserName": "guest", "Password": "" }
Response/Headers
. Access-Control-Allow-Origin: *
. Access-Control-Allow-Headers: Content-Type, Content-Length, Authorization
. Access-Control-Expose-Headers: Content-Type, Content-Length, Authorization
. Access-Control-Allow-Methods: *
. Content-Length: 0
. Content-Type: application/octet-stream
. Access-Control-Max-Age: 1728000
. Authorization: Bearer c30730a4-e2ee-4595-9131-d64769c5afbe
. Date: Tue, 28 Nov 2023 13:47:35 GMT
. Server: TServer WebServer
. Response/Body
. Nothing
ReadObject
Reads value from specified object.
Method: GET
URL Example: http://localhost:3101/rtServices/api/SyncObjects/ReadObject
Request/Headers
. Content-Type: application/json
. Authorization: Bearer c30730a4-e2ee-4595-9131-d64769c5afbe
. content-length: 25
. Ex: .../api/SyncObjects/ReadObject?ObjectName=Tag1
Response/Headers
. Content-Length: 89
. Content-Type: application/json
. Content-Encoding: utf8
. Date: Tue, 28 Nov 2023 13:56:03 GMT
. Server: TServer WebServer
. Response/Body
. { "ObjectName":"Tag1","Value":11,"Quality":192,"UtcTimeStamp":"11/28/2023 1:49:28.000 PM" }
ReadObjects
Reads value from multiple specified objects.
Method: GET
URL Example: http://localhost:3101/rtServices/api/SyncObjects/ReadObjects
Request/Headers
. Content-Type: application/json
. Authorization: Bearer c30730a4-e2ee-4595-9131-d64769c5afbe
. content-length: 25
. Request/Body
. { "ObjectNames": [ "Tag1", "Server.Now" ] }
Response/Headers
. Content-Length: 89
. Content-Type: application/json
. Content-Encoding: utf8
. Date: Tue, 28 Nov 2023 13:56:03 GMT
. Server: TServer WebServer
. Response/Body
. [ {"ObjectName":"Tag1","Value":11,"Quality":192,"UtcTimeStamp":"11/28/2023 10:47:50.581 AM"},{"ObjectName":"Server.Now","Value":"11/28/2023 1:48:26.003 PM"} ]
WriteObject
Write value to a specified object. You can only write values to objects that have their Visibility property set to Public.
Method: POST
URL Example:http://localhost:3101/rtServices/api/SyncObjects/WriteObject
Request/Headers
. Content-Type: application/json
. Authorization: Bearer c30730a4-e2ee-4595-9131-d64769c5afbe
. content-length: 25
. Request/Body
. { "ObjectName" : "Tag1", "Value" : 11, "Quality": 192, "UtcTimestamp": "2023-11-28T10:18:22.260Z" }
Response/Headers
. Content-Length: 89
. Content-Type: application/json
. Content-Encoding: utf8
. Date: Tue, 28 Nov 2023 13:56:03 GMT
. Server: TServer WebServer
. Response/Body
. true
WriteObjects
Write value to specified objects. You can only write values to objects that have their Visibility property set to Public.
Method: POST
URL Example:http://localhost:3101/rtServices/api/SyncObjects/WriteObjects
Request/Headers
. Content-Type: application/json
. Authorization: Bearer c30730a4-e2ee-4595-9131-d64769c5afbe
. content-length: 25
. Request/Body
. { "ObjectList": [ {"ObjectName": "Tag1", "Value": 11 }, { "ObjectName": "Tag2", "Value": 2, "Quality": 192, "UtcTimeStamp": "2023-11-28T10:18:22.260Z" } ] }
Response/Headers . Content-Length: 89 . Content-Type: application/json . Content-Encoding: utf8 . Date: Tue, 28 Nov 2023 13:56:03 GMT . Server: TServer WebServer . Response/Body . [true,true]
In this section...