Resolver web API¶
The Resolver's planning and contextual-resource routes require the authorized twin context. Use the same identity, compact scope token and hosting Runtime ID that established the original context.
| Method and route | Request and response |
|---|---|
POST /api/v1/resolve |
A serialized ResolutionRequest carrying the observation and resolution constraints. Returns a numeric job ID for the planned dataflow. |
GET /api/v1/resources |
Returns the resources submitted in the authorized context. |
POST /api/v1/resource |
An observation with contextualization data. Returns the submitted context-local resource. |
To inspect the resources for an existing context from a client integration, set the shell variables to the values from that authorized session.
curl --fail --header "Authorization: Bearer $KLAB_TOKEN" --header "klab-scope: $KLAB_SCOPE" --header "klab-service: $KLAB_RUNTIME_ID" "$RESOLVER_ROOT/api/v1/resources"
For a planning job, use GET /jobs/status/{id} and GET /jobs/retrieve/{id} on the Resolver. The completed payload is the dataflow. A context that cannot be reconstructed can produce HTTP 409. Reconnect to the twin on its host Runtime before retrying. Shared job semantics ยท Scope reference