82trust / 100

Device Auth

by iot.halowerk.com in Email & messaging

x402 APIPassing, checked 2 h ago

Canonicalizes device_id, nonce and message, computes an HMAC-SHA256 tag with caller-supplied ephemeral key material, and optionally compares a claimed tag in constant time. It does not provision devices, store keys or replace asymmetric device identity; do not submit long-lived production secrets.

POST https://iot.halowerk.com/v1/device-auth

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
157 ms typical, 157 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://iot.halowerk.com/v1/device-auth" \
  -H "content-type: application/json" \
  -d '{"device_id":"sensor-berlin-17","ephemeral_key":"example-ephemeral-key-2026","message":"boot:4.2.1","nonce":"20260831-0001"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fiot.halowerk.com%2Fv1%2Fdevice-auth
const res = await pay("https://iot.halowerk.com/v1/device-auth", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"device_id":"sensor-berlin-17","ephemeral_key":"example-ephemeral-key-2026","message":"boot:4.2.1","nonce":"20260831-0001"}),
});
console.log(await res.json());

Example input

{
  "device_id": "sensor-berlin-17",
  "ephemeral_key": "example-ephemeral-key-2026",
  "message": "boot:4.2.1",
  "nonce": "20260831-0001"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402157 ms$0.002