Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/appointment-fit

Checks one proposed appointment (instant + duration) against a venue's local opening hours per weekday, closed dates or a named holiday calendar, up to 500 existing bookings with a buffer on each side, and a minimum notice measured from a caller-supplied asOf; every violated rule is returned as a witness with the conflicting booking or hour block. Local hours are resolved in the venue's IANA zone

BaseUnchecked
POSThttps://agents.writerslogic.com/api/v1/appointment-fit

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agents.writerslogic.com/api/v1/appointment-fit", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"hours":[{"days":[1,2,3,4,5],"open":"09:00","close":"17:00"}],"start":"2026-11-09T15:00:00Z","bookings":[{"end":"2026-11-09T14:50:00Z","start":"2026-11-09T14:00:00Z"}],"timeZone":"America/New_York","bufferMinutes":15,"durationMinutes":45}),
});
console.log(await res.json());

Example input

{
  "hours": [
    {
      "days": [
        1,
        2,
        3,
        4,
        5
      ],
      "open": "09:00",
      "close": "17:00"
    }
  ],
  "start": "2026-11-09T15:00:00Z",
  "bookings": [
    {
      "end": "2026-11-09T14:50:00Z",
      "start": "2026-11-09T14:00:00Z"
    }
  ],
  "timeZone": "America/New_York",
  "bufferMinutes": 15,
  "durationMinutes": 45
}