Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/quota-reservation-check

Computes available quota from a caller-supplied snapshot (limit, used, reserved) minus the unexpired pending reservations and says whether a requested amount fits. This is a read of the numbers you supply as of snapshotAt: it reserves nothing, so concurrent consumers can still use the quota before you do, and every response says so. A stale snapshot gives unknown, not pass; a window that ended at

BaseUnchecked
POSThttps://agents.writerslogic.com/api/v1/quota-reservation-check

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/quota-reservation-check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"asOf":"2026-11-04T12:00:20Z","quota":{"used":700,"limit":1000,"reserved":50},"pending":[{"id":"job-1","amount":100}],"request":{"amount":120},"snapshotAt":"2026-11-04T12:00:00Z","maxSnapshotAgeSeconds":60}),
});
console.log(await res.json());

Example input

{
  "asOf": "2026-11-04T12:00:20Z",
  "quota": {
    "used": 700,
    "limit": 1000,
    "reserved": 50
  },
  "pending": [
    {
      "id": "job-1",
      "amount": 100
    }
  ],
  "request": {
    "amount": 120
  },
  "snapshotAt": "2026-11-04T12:00:00Z",
  "maxSnapshotAgeSeconds": 60
}