Read caller-supplied retry sentences and timeout statuses
www.brainiac.software/api/v1/agent-contracts/retry-safety-check
Read caller-supplied retry sentences and timeout statuses. Docs: https://www.brainiac.software/api/agent-contracts/retry-safety-check
POST
https://www.brainiac.software/api/v1/agent-contracts/retry-safety-checkUptime100% 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.brainiac.software/api/v1/agent-contracts/retry-safety-check", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"operations":[{"description":"Charges the saved card. A timeout means the outcome is uncertain.","method":"POST","name":"charge_card","responses":[{"description":"Gateway timeout.","status":"504"}]},{"description":"Reserves stock. Safe to retry. Do not retry after a timeout.","method":"POST","name":"reserve_stock"},{"description":"Returns one order by id.","method":"GET","name":"read_order"}]}),
});
console.log(await res.json());Example input
{
"operations": [
{
"description": "Charges the saved card. A timeout means the outcome is uncertain.",
"method": "POST",
"name": "charge_card",
"responses": [
{
"description": "Gateway timeout.",
"status": "504"
}
]
},
{
"description": "Reserves stock. Safe to retry. Do not retry after a timeout.",
"method": "POST",
"name": "reserve_stock"
},
{
"description": "Returns one order by id.",
"method": "GET",
"name": "read_order"
}
]
}