Spend Gate
www.omenz.org/api/tollbooth/v1/spend-gate
Spend Gate: ALLOW, DENY or ESCALATE before your agent spends money. Send the owner's policy (per-transaction, daily and monthly caps, approval threshold, recipient/category/network allow and block lists, hurdle: minimum expected return multiple) and the proposed spend; get the decision with every reason and the budget left. Stateless: nothing stored. By OMENZ.
POST
https://www.omenz.org/api/tollbooth/v1/spend-gateUptime100% 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/spend-gate", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"policy":{"allowed_networks":["base"],"daily_cap_usd":5,"escalate_above_usd":0.5,"hurdle":{"min_return_multiple":1.5},"max_per_tx_usd":1},"spend":{"amount_usd":0.1,"category":"data","expected_value_usd":0.5,"network":"base","recipient":"0x1bd3aaa92243e3d4352bdce07050aec6fcf5e840","spent_today_usd":1.2}}),
});
console.log(await res.json());Example input
{
"policy": {
"allowed_networks": [
"base"
],
"daily_cap_usd": 5,
"escalate_above_usd": 0.5,
"hurdle": {
"min_return_multiple": 1.5
},
"max_per_tx_usd": 1
},
"spend": {
"amount_usd": 0.1,
"category": "data",
"expected_value_usd": 0.5,
"network": "base",
"recipient": "0x1bd3aaa92243e3d4352bdce07050aec6fcf5e840",
"spent_today_usd": 1.2
}
}