{"uid":"cap_ocBTmTWSMbXneGuSOWaqz","slug":"delx-commerce-base64url-encode-bab9de74","name":"Delx Commerce — Base64URL Encode","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/base64url-encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."}}},"responseSchema":{"type":"json","example":{"text":"aGVsbG8tZGVseA","schema":"delx/util-base64url-encode/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_D1sIQp7L0ckUFpajXSv0S","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes an input text string into Base64URL format and returns the encoded result for $0.001 USDC per call via x402.","exampleAgentPrompt":"Can you base64url-encode the text 'hello-delx' for me?","exampleUseCases":[{"title":"Encode JWT payload segment","prompt":"I need to base64url-encode this JSON string to use as a JWT payload segment: '{\"sub\":\"1234567890\",\"name\":\"John Doe\"}'"},{"title":"URL-safe token encoding","prompt":"Can you encode the string 'user:session:abc123' into base64url format so I can safely embed it in a URL?"},{"title":"Encode binary fingerprint for API","prompt":"I have a raw fingerprint string 'sha256:deadbeef' that needs to be base64url-encoded before I send it to the API — can you do that?"}],"resultDescription":"Returns a JSON object containing the base64url-encoded representation of the input text (e.g. {\"text\":\"aGVsbG8tZGVseA\",\"schema\":\"delx/util-base64url-encode/v1\"}). The encoded string uses the URL-safe Base64 alphabet (no padding, - and _ instead of + and /).","failureModes":["Missing or empty 'text' field returns an error","Malformed request body results in a 4xx response","Payment failure via x402 (insufficient USDC balance or unsupported chain) blocks the call","Network timeout on the Delx Commerce endpoint"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use base64url encoding without setting up your own encoding library or managing dependencies — especially useful in agent workflows where lightweight utility calls are needed on-demand and you want verifiable, metered delivery via USDC x402 payments on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:04.440Z","isFirstParty":false,"canonicalSlug":"delx-commerce-base64url-encode-bab9de74"}