Skip to content
Fourohtwo

iot.halowerk.com/v1/digital-twin-sync

Groups caller-supplied scalar field changes by field name, selects the highest version, and reports a conflict when equal-version values differ. It does not connect to a twin platform, merge nested documents or resolve semantic conflicts.

BaseAnswering
POSThttps://iot.halowerk.com/v1/digital-twin-sync

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://iot.halowerk.com/v1/digital-twin-sync", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"local_changes":[{"field":"temperature_setpoint","value":21.5,"version":8},{"field":"mode","value":"eco","version":4}],"remote_changes":[{"field":"temperature_setpoint","value":22,"version":7},{"field":"mode","value":"comfort","version":4}]}),
});
console.log(await res.json());

Example input

{
  "local_changes": [
    {
      "field": "temperature_setpoint",
      "value": 21.5,
      "version": 8
    },
    {
      "field": "mode",
      "value": "eco",
      "version": 4
    }
  ],
  "remote_changes": [
    {
      "field": "temperature_setpoint",
      "value": 22,
      "version": 7
    },
    {
      "field": "mode",
      "value": "comfort",
      "version": 4
    }
  ]
}