agents.writerslogic.com/api/v1/http-outcome
Classifies one HTTP response (method, status, headers) as success / retry / reconcile / stop for an agent that just called an API, and reads the wait from Retry-After (RFC 9110: delay-seconds or any of the three HTTP-date formats) or from a vendor delay header whose dialect the caller declares (seconds, milliseconds, epoch seconds, epoch milliseconds, HTTP-date). Caller-supplied vendor rules (stat
POST
https://agents.writerslogic.com/api/v1/http-outcomeUptime100% of 4 checks 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://agents.writerslogic.com/api/v1/http-outcome", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"method":"GET","status":429,"headers":[{"name":"Retry-After","value":"120"}]}),
});
console.log(await res.json());Example input
{
"method": "GET",
"status": 429,
"headers": [
{
"name": "Retry-After",
"value": "120"
}
]
}