Skip to content
Fourohtwo

Shared Budget

www.omenz.org/api/tollbooth/v1/budget/spend

Shared Budget: ask before each purchase. ALLOW records it against the team cap (returns spend_id + what's left); DENY or ESCALATE records nothing, with the reason. Idempotent by idempotency_key, so retries never double-count. Header X-Budget-Key. Honest limit: two spends in the same instant can both pass; per_tx_max_usd bounds that. By OMENZ.

BaseAnswering
POSThttps://www.omenz.org/api/tollbooth/v1/budget/spend

Uptime100% of 1 check 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://www.omenz.org/api/tollbooth/v1/budget/spend", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"agent":"worker-3","amount_usd":0.01,"budget_id":"bg_...","idempotency_key":"job42-call7","recipient":"0x1bd3AaA92243e3d4352bdcE07050aeC6fcF5e840","url":"https://www.omenz.org/api/tollbooth/v1/local-facts"}),
});
console.log(await res.json());

Example input

{
  "agent": "worker-3",
  "amount_usd": 0.01,
  "budget_id": "bg_...",
  "idempotency_key": "job42-call7",
  "recipient": "0x1bd3AaA92243e3d4352bdcE07050aeC6fcF5e840",
  "url": "https://www.omenz.org/api/tollbooth/v1/local-facts"
}