Example inputPOST /api/v1/x402/x402-payment-payload-size
{
"payload": {
"x402Version": 2,
"accepted": {}
},
"maximum_bytes": 8192
}
Portable intent card · commercial-operations
Measure a candidate x402 payment envelope before a buyer sends it, so verbose descriptions, tags or embedded metadata do not silently push the payload beyond a facilitator budget. The result is deterministic and does not settle a payment.
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/x402-payment-payload-size -m POST -H 'x-delx-source: intent-card-x402-payment-payload-size-api' --max-amount 0.001 -b '{"payload":{"x402Version":2,"accepted":{}},"maximum_bytes":8192}'
{
"payload": {
"x402Version": 2,
"accepted": {}
},
"maximum_bytes": 8192
}
{
"intent": "check whether x402 metadata makes the payment payload too large for a facilitator",
"tool_name": "util_x402_payment_payload_size",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/x402-payment-payload-size-api.json"
}
Portable and inspectable