Skip to content
Fourohtwo

agent402.tools/api/openapi-validate-payload

Validate a JSON payload against the request or response schema for one operation in an OpenAPI 3.x or Swagger 2.x spec. Locate the operation by operationId or method+path; choose `part: "request"` or `part: "response"` (status defaults to the first 2xx).

SolanaBaseUnchecked
POSThttps://agent402.tools/api/openapi-validate-payload

UptimeNot 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

// 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://agent402.tools/api/openapi-validate-payload", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"part":"request","spec":{"paths":{"/users":{"post":{"responses":{"201":{"description":"ok"}},"operationId":"createUser","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","email"],"properties":{"age":{"type":"integer"},"name":{"type":"string"},"role":{"enum":["admin","user"],"type":"string"},"email":{"type":"string"}},"additionalProperties":false}}}}}}},"op),
});
console.log(await res.json());

Example input

{"part":"request","spec":{"paths":{"/users":{"post":{"responses":{"201":{"description":"ok"}},"operationId":"createUser","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","email"],"properties":{"age":{"type":"integer"},"name":{"type":"string"},"role":{"enum":["admin","user"],"type":"string"},"email":{"type":"string"}},"additionalProperties":false}}}}}}},"op