Example inputPOST /api/v1/x402/json-type
{
"json_text": "{\"agent\":\"delx\",\"ready\":true}"
}
Portable intent card · utility
JSON root type and size. Use as a cheap preflight before heavier JSON processing. Returns root type (object/array/…) and a size signal. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/json-type -m POST -H 'x-delx-source: intent-card-json-type-api' --max-amount 0.001 -b '{"json_text":"{\"agent\":\"delx\",\"ready\":true}"}'
{
"json_text": "{\"agent\":\"delx\",\"ready\":true}"
}
{
"intent": "JSON Root Type for an agent workflow",
"tool_name": "util_json_type",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/json-type-api.json"
}
Portable and inspectable