Skip to content
Fourohtwo

detect.halowerk.com/v1/calendar/calendar-travel-window-tour-certificate

Returns whether its claimed earliest home return is achievable and minimal after all travel service durations and appointment windows, for an agent that books a complete finite appointment round.

BaseAnswering
POSThttps://detect.halowerk.com/v1/calendar/calendar-travel-window-tour-certificate

Uptime100% of 2 checks 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://detect.halowerk.com/v1/calendar/calendar-travel-window-tour-certificate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"artifact":{"appointments":[{"closes":38,"duration":2,"opens":14},{"closes":25,"duration":2,"opens":1},{"closes":21,"duration":0,"opens":0},{"closes":20,"duration":1,"opens":10}],"claimed_return":20,"start_time":0,"travel":[[5,2,5,3,3],[4,0,2,3,2],[0,3,3,0,2],[2,3,2,4,3],[1,0,5,5,2]]}}),
});
console.log(await res.json());

Example input

{
  "artifact": {
    "appointments": [
      {
        "closes": 38,
        "duration": 2,
        "opens": 14
      },
      {
        "closes": 25,
        "duration": 2,
        "opens": 1
      },
      {
        "closes": 21,
        "duration": 0,
        "opens": 0
      },
      {
        "closes": 20,
        "duration": 1,
        "opens": 10
      }
    ],
    "claimed_return": 20,
    "start_time": 0,
    "travel": [
      [
        5,
        2,
        5,
        3,
        3
      ],
      [
        4,
        0,
        2,
        3,
        2
      ],
      [
        0,
        3,
        3,
        0,
        2
      ],
      [
        2,
        3,
        2,
        4,
        3
      ],
      [
        1,
        0,
        5,
        5,
        2
      ]
    ]
  }
}