Runtime web API

Use the hosting Runtime's service root. Discovering a twin uses the caller's user scope. Submitting or inspecting observations requires the appropriate context and permissions.

Method and route Scope, request and response
GET /api/v1/contexts Returns context information visible to the caller. The configuration supplies the twin ID and name.
GET /api/v1/configuration/{id} Retrieves the saved configuration for the named twin under the caller's user scope.
POST /api/v1/connect A ScopeRequest for the existing twin. Returns its configuration and participates in setting up the client's context.
POST /api/v1/submit A context-scoped ResolutionRequest with the observation and constraints. The response is a job ID for the observation.
GET /api/v1/observer/{id}/geometry Retrieves the visible observer's occupied and perceived geometry in the context.
POST /api/v1/observation/value Accepts a StorageScan.Point in the context. Returns the supported point value as plain text.

To list studies available to your identity, set RUNTIME_ROOT to the host you intend to use.

curl --fail --header "Authorization: Bearer $KLAB_TOKEN" "$RUNTIME_ROOT/api/v1/contexts"

For a submission, keep the original context for polling and retrieving the job on the Runtime. On success, use the observation ID within that twin to inspect its dataflow, provenance and values. The web dashboard also offers readable maps and graphs for twins visible to the visitor. A visible map alone grants no permission to submit observations. Shared job semantics ยท Work in a twin

HTTP controller and request types