Example inputPOST /api/v1/x402/nanoid
{}
Portable intent card · utility
NanoID-style public IDs. Generate short URL-safe IDs for jobs, drafts, or idempotency keys without installing nanoid. Returns a random URL-safe id (size 4–64, default 21). $0.001 USDC per successful call via x402 on Base—first-party JSON from Delx (fresh each call; not a deterministic transform), 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/nanoid -m POST -H 'x-delx-source: intent-card-nanoid-api' --max-amount 0.001 -b '{}'
{}
{
"intent": "NanoID Generator for Agents for an agent workflow",
"tool_name": "util_nanoid",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/nanoid-api.json"
}
Portable and inspectable