agents.writerslogic.com/api/v1/shelf-life-check
For up to 100 lots, computes the expiry date from manufacture/fill date + shelf life (days, weeks, months, years; month arithmetic clamps to month end) and from opened date + after-opening life, takes the earlier, and checks it against a caller asOf date and an optional minimum remaining days at receipt; flags a labelled expiry that disagrees with the computed one. The last day of life is the expi
POST
https://agents.writerslogic.com/api/v1/shelf-life-checkUptimeNot 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/shelf-life-check", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"asOf":"2026-11-04","items":[{"id":"lot-A","madeOn":"2026-05-04","shelfLife":{"unit":"months","value":6},"minRemainingDays":30},{"id":"lot-B","madeOn":"2026-01-31","shelfLife":{"unit":"months","value":1}}]}),
});
console.log(await res.json());Example input
{
"asOf": "2026-11-04",
"items": [
{
"id": "lot-A",
"madeOn": "2026-05-04",
"shelfLife": {
"unit": "months",
"value": 6
},
"minRemainingDays": 30
},
{
"id": "lot-B",
"madeOn": "2026-01-31",
"shelfLife": {
"unit": "months",
"value": 1
}
}
]
}