OpenAPI required-params · Openapi Required Params
$0.002
per call · USD Coin on Base
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`. Output is a single flat array tagged by `in`: `path` (always required), `query` / `header` / `cookie` (only when `required: true`), and `body.field` entries naming the top-level required fields of a required JSON request body.
Endpoint
POST https://agent402.tools/api/openapi-required-params4
Calls / 30d
1
Unique payers / 30d
Aug 31
Last called
exact
Payment scheme
Call this service
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://agent402.tools/api/openapi-required-params", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"operationId": "createUser",
"spec": {
"openapi": "3.0.0",
"paths": {
"/users": {
"post": {
"operationId": "createUser",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"email": {
"type": "string"
},
"nickname": {
"type": "string"
},
"password": {
"type": "string"
}
},
"required": [
"email",
"password"
],
"type": "object"
}
}
},
"required": true
},
"responses": {
"201": {}
}
}
},
"/users/{id}": {
"get": {
"operationId": "getUser",
"parameters": [
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "verbose",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"in": "header",
"name": "X-Trace-Id",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {}
}
}
}
}
}
}),
});
const data = await res.json();curl -X POST \
"https://agent402.tools/api/openapi-required-params" \
-H "Content-Type: application/json" \
-d '{"operationId":"createUser","spec":{"openapi":"3.0.0","paths":{"/users":{"post":{"operationId":"createUser","requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"nickname":{"type":"string"},"password":{"type":"string"}},"required":["email","password"],"type":"object"}}},"required":true},"responses":{"201":{}}}},"/users/{id}":{"get":{"operationId":"getUser","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"query","name":"verbose","required":false,"schema":{"type":"boolean"}},{"in":"header","name":"X-Trace-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{}}}}}}}' \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"bodyContentType": "application/json",
"hasBody": true,
"method": "POST",
"operationId": "createUser",
"path": "/users",
"required": [
{
"in": "body.field",
"name": "email",
"type": "string"
},
{
"in": "body.field",
"name": "password",
"type": "string"
}
]
}Payment details
0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Developer Tools and the homepage with a featured placement.
More from OpenAPI required-params & similar services
Loyalspark · Recipient API Offers
api.loyalspark.online
Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes, customers earn real value with every purchase, and AI agents automate the rest via REST and MCP. Free plan mints up to 1,000 tokens per month; every call is scoped by row-level security to the wallet behind the API key. 16 skill guides at loyalspark.online/.well-known/skills/index.md.
Loyalspark · Workflow Reward Status
api.loyalspark.online
Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes, customers earn real value with every purchase, and AI agents automate the rest via REST and MCP. Free plan mints up to 1,000 tokens per month; every call is scoped by row-level security to the wallet behind the API key. 16 skill guides at loyalspark.online/.well-known/skills/index.md.
Loyalspark · Recipient API Vouchers
api.loyalspark.online
Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes, customers earn real value with every purchase, and AI agents automate the rest via REST and MCP. Free plan mints up to 1,000 tokens per month; every call is scoped by row-level security to the wallet behind the API key. 16 skill guides at loyalspark.online/.well-known/skills/index.md.