agents.writerslogic.com/api/v1/cross-field-rules
Evaluates up to 100 rules you declare over one JSON document and reports, per rule, pass, fail or unknown with the JSON pointer of every violating field and the actual value class (absent, null, empty string, value). Rule kinds: compare (>, >=, <, <=, ==, != on numbers, exact decimals, RFC 3339 dates or date-times, strings), required-if, forbidden-if, exactly-one, at-most-one, at-least-one, all-or
POST
https://agents.writerslogic.com/api/v1/cross-field-rulesUptimeNot 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/cross-field-rules", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"data":{"end":"2026-02-01","card":"4111","iban":null,"kind":"card","start":"2026-03-01"},"rules":[{"as":"date","id":"end-after-start","op":">","kind":"compare","left":"/end","right":"/start"},{"id":"card-needs-number","kind":"required-if","when":{"op":"equals","path":"/kind","value":"card"},"require":["/card"]},{"id":"one-payment-method","kind":"exactly-one","fields":["/card","/iban"]}]}),
});
console.log(await res.json());Example input
{
"data": {
"end": "2026-02-01",
"card": "4111",
"iban": null,
"kind": "card",
"start": "2026-03-01"
},
"rules": [
{
"as": "date",
"id": "end-after-start",
"op": ">",
"kind": "compare",
"left": "/end",
"right": "/start"
},
{
"id": "card-needs-number",
"kind": "required-if",
"when": {
"op": "equals",
"path": "/kind",
"value": "card"
},
"require": [
"/card"
]
},
{
"id": "one-payment-method",
"kind": "exactly-one",
"fields": [
"/card",
"/iban"
]
}
]
}