Api Endpoint

agent.halowerk.com

Takes two state documents — target (what the twin should look like) and observed (what was measured) — and returns a leaf-by-leaf comparison. Every leaf path carries one of five states: in_tolerance, out_of_tolerance, missing_in_observed, unexpected_in_observed or type_mismatch.

Open interactive test console

Offering

Provider
agent.halowerk.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Data
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://agent.halowerk.com/v1/twin-diff
MIME type
application/json
First seen
2026-10-16T01:54:06.400Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.003 USDC
Atomic price: 3000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "payTo": "0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E"
  }
]

Observed health

Status
Healthy
Latest latency
318 ms
Average latency
1318 ms
HTTP status
204
Last checked
Reachability
100% over 11 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "required": [
        "target",
        "observed"
      ],
      "additionalProperties": false,
      "properties": {
        "target": {
          "type": "object",
          "description": "The desired state document (the twin)."
        },
        "observed": {
          "type": "object",
          "description": "The observed state document (the measurement)."
        },
        "tolerances": {
          "type": "array",
          "maxItems": 200,
          "description": "Per-path tolerances. Give tolerance_abs or tolerance_ratio, not both.",
          "items": {
            "type": "object",
            "required": [
              "field"
            ],
            "additionalProperties": false,
            "properties": {
              "field": {
                "type": "string",
                "minLength": 1,
                "maxLength": 400,
                "description": "Leaf path as it appears in the result, e.g. /pump/pressure_bar. A trailing /* applies the entry to every leaf below that prefix."
              },
              "unit": {
                "type": "string",
                "maxLength": 32,
                "description": "Unit of this field, echoed into the result. Declared by you, never inferred."
              },
              "tolerance_abs": {
                "type": "number",
                "minimum": 0,
                "description": "Absolute tolerance in the unit of this field."
              },
              "tolerance_ratio": {
                "type": "number",
                "minimum": 0,
                "maximum": 1,
                "description": "Relative tolerance as a ratio of the larger of the two values."
              }
            }
          }
        },
        "default_tolerance_ratio": {
          "type": "number",
          "minimum": 0,
          "maximum": 1,
          "default": 0,
          "description": "Relative tolerance for numeric paths without their own entry. 0 means exact equality."
        },
        "ignore_fields": {
          "type": "array",
          "maxItems": 200,
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 400
          },
          "description": "Paths to leave out of the comparison. A trailing /* ignores everything below that prefix."
        },
        "case_insensitive_strings": {
          "type": "boolean",
          "default": false,
          "description": "Compare string leaves without regard to case."
        },
        "max_fields": {
          "type": "integer",
          "minimum": 1,
          "maximum": 2000,
          "default": 2000,
          "description": "Reject the request if the two documents together hold more leaf paths than this."
        }
      }
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "input": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "http"
        },
        "method": {
          "type": "string",
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ]
        },
        "bodyType": {
          "type": "string",
          "enum": [
            "json",
            "form-data",
            "text"
          ]
        },
        "body": {
          "type": "object",
          "required": [
            "target",
            "observed"
          ],
          "additionalProperties": false,
          "properties": {
            "target": {
              "type": "object",
              "description": "The desired state document (the twin)."
            },
            "observed": {
              "type": "object",
              "description": "The observed state document (the measurement)."
            },
            "tolerances": {
              "type": "array",
              "maxItems": 200,
              "description": "Per-path tolerances. Give tolerance_abs or tolerance_ratio, not both.",
              "items": {
                "type": "object",
                "required": [
                  "field"
                ],
                "additionalProperties": false,
                "properties": {
                  "field": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 400,
                    "description": "Leaf path as it appears in the result, e.g. /pump/pressure_bar. A trailing /* applies the entry to every leaf below that prefix."
                  },
                  "unit": {
                    "type": "string",
                    "maxLength": 32,
                    "description": "Unit of this field, echoed into the result. Declared by you, never inferred."
                  },
                  "tolerance_abs": {
                    "type": "number",
                    "minimum": 0,
                    "description": "Absolute tolerance in the unit of this field."
                  },
                  "tolerance_ratio": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1,
                    "description": "Relative tolerance as a ratio of the larger of the two values."
                  }
                }
              }
            },
            "default_tolerance_ratio": {
              "type": "number",
              "minimum": 0,
              "maximum": 1,
              "default": 0,
              "description": "Relative tolerance for numeric paths without their own entry. 0 means exact equality."
            },
            "ignore_fields": {
              "type": "array",
              "maxItems": 200,
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 400
              },
              "description": "Paths to leave out of the comparison. A trailing /* ignores everything below that prefix."
            },
            "case_insensitive_strings": {
              "type": "boolean",
              "default": false,
              "description": "Compare string leaves without regard to case."
            },
            "max_fields": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2000,
              "default": 2000,
              "description": "Reject the request if the two documents together hold more leaf paths than this."
            }
          }
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "input"
  ]
}