Skip to content
Fourohtwo

agent402.tools/api/openapi-required-params

For one operation, return the minimum set of inputs an agent must provide to make a successful call. Locate the op by `operationId` (preferred) or by `method`+`path`.

SolanaBaseUnchecked
POSThttps://agent402.tools/api/openapi-required-params

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

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://agent402.tools/api/openapi-required-params", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"spec":{"paths":{"/users":{"post":{"responses":{"201":{}},"operationId":"createUser","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["email","password"],"properties":{"email":{"type":"string"},"nickname":{"type":"string"},"password":{"type":"string"}}}}},"required":true}}},"/users/{id}":{"get":{"responses":{"200":{}},"parameters":[{"in":"path","name":"id","sche),
});
console.log(await res.json());

Example input

{"spec":{"paths":{"/users":{"post":{"responses":{"201":{}},"operationId":"createUser","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["email","password"],"properties":{"email":{"type":"string"},"nickname":{"type":"string"},"password":{"type":"string"}}}}},"required":true}}},"/users/{id}":{"get":{"responses":{"200":{}},"parameters":[{"in":"path","name":"id","sche