Calendar Buffer Conflicts

Find room bookings that conflict once setup and teardown buffers are applied, including otherwise nonoverlapping bookings.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /calendar-buffer-conflicts/v1/check with an x402 V2 client.

Worked example

Request

{
  "bookings": [
    {
      "id": "a",
      "room": "main",
      "start": 60,
      "end": 80,
      "setup": 0,
      "teardown": 10
    },
    {
      "id": "b",
      "room": "main",
      "start": 85,
      "end": 110,
      "setup": 5,
      "teardown": 0
    },
    {
      "id": "c",
      "room": "side",
      "start": 85,
      "end": 90,
      "setup": 0,
      "teardown": 0
    }
  ]
}

Result

{
  "conflicts": [
    {
      "room": "main",
      "first": "a",
      "second": "b",
      "start": 80,
      "end": 90,
      "buffer_only": true
    }
  ]
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter