{"uid":"cap_K_nVf6IrHWIySQcbL0HA2","slug":"x402-bazaar-secure-token-generator-09fb2c9e","name":"x402 Bazaar Secure Token Generator","description":"Generate N url-safe random tokens server-side. Demonstrates a paid utility endpoint with a query parameter. Paid via x402: $0.002 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.","url":"https://api.relai.fi/relay/1782567677091/api/x402/secure-token?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":[],"properties":{"count":{"type":"string","description":"How many"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cn2qRWvPuzJxp9bKeqnzh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates N cryptographically random, URL-safe tokens server-side, accessible via micropayment using the x402 protocol on Base","exampleAgentPrompt":"Generate 5 URL-safe random tokens for me using the x402 Bazaar secure token endpoint — I need them for nonce values in a web app.","exampleUseCases":null,"resultDescription":"An array of N cryptographically secure, URL-safe random token strings generated server-side, returned after successful x402 micropayment of $0.002 USDC on Base.","failureModes":["Returns HTTP 402 with payment requirements if no valid x402 payment header is provided — client must pay and retry","Invalid or insufficient payment results in continued 402 response","N parameter missing or invalid may cause a 400 bad request","Network or relay errors from api.relai.fi may result in 5xx responses","Payment to wrong address or wrong chain (not Base eip155:8453) will fail validation"],"whenToPreferThis":"Use this endpoint when you need server-side generation of cryptographically secure, URL-safe random tokens and are operating in an x402-enabled environment with USDC on Base. Prefer this over client-side generation when trust and unpredictability guarantees are needed server-side, or when demonstrating x402 micropayment patterns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:40:21.871Z","isFirstParty":false,"canonicalSlug":"x402-bazaar-secure-token-generator-09fb2c9e"}