{"uid":"cap_f5orM87xNKbpDpEQZPy9L","slug":"delx-base64url-encode-95bb3db6","name":"Delx Base64url Encode","description":"Base64url-encode text without padding. Call when you build JWT-like segments or URL-safe tokens. Returns encoded text for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/base64url-encode","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_AQvUVexZfMIJKlW7UXoc8","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":"Base64url-encodes a text string without padding, suitable for JWT segments and URL-safe tokens","exampleAgentPrompt":"Can you base64url-encode this text for me without any padding: '{\"alg\":\"HS256\",\"typ\":\"JWT\"}'?","exampleUseCases":[{"title":"JWT header segment encoding","prompt":"I need to base64url-encode this JSON header for a JWT I'm building: '{\"alg\":\"RS256\",\"typ\":\"JWT\"}' — no padding characters please."},{"title":"URL-safe token generation","prompt":"Take the string 'user_id=42&session=abc123' and base64url-encode it so I can safely embed it in a redirect URL without it breaking."},{"title":"Encoding OAuth state parameter","prompt":"I'm building an OAuth flow and need to base64url-encode this state value: 'nonce=8f3kd&redirect=/dashboard' so it's safe to put in a query parameter."}],"resultDescription":"Returns the base64url-encoded representation of the input text, using the URL-safe alphabet (- and _ instead of + and /) with no = padding characters appended.","failureModes":["Missing or empty 'text' field returns an error","Non-string input types may be rejected","Payment failure via x402 prevents execution","Extremely large text strings may hit size limits"],"whenToPreferThis":"Choose this endpoint when you need base64url encoding specifically (URL-safe alphabet, no padding) rather than standard base64, particularly for building JWT segments, OAuth tokens, or any context where = padding and +/. characters would be problematic in URLs. Use it when you want a stateless, keyless, dependency-free encoding call without implementing the algorithm yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:50.530Z","isFirstParty":false}