{"uid":"cap_Pg1iWo3EetODJQuxsmuqC","slug":"agent-format-hex-encode-decode-06c33373","name":"Agent Format – Hex Encode/Decode","description":"Encoding utilities for AI agents: base64 encode/decode, hex encode/decode, URL slugify, JWT header/payload decode (no signature verify), and case conversion. Pay-per-request USDC via x402. No API keys, no accounts.","url":"https://agent-format.annushka1190.workers.dev/v1/hex","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":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1TxeIxAKWPbEsGMHsAAL6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text or binary data to hexadecimal encoding or decodes hex strings back to their original form, paid per-request via USDC x402.","exampleAgentPrompt":"Can you hex-encode the string 'Hello World' for me? I need the raw hexadecimal representation to embed it in a protocol message.","exampleUseCases":[{"title":"Encoding binary payload for protocol","prompt":"I need to hex-encode this byte sequence 'deadbeef' before sending it to the hardware device — can you convert my input string to its hex representation?"},{"title":"Decoding hex response from API","prompt":"I just got back '48656c6c6f20576f726c64' from an API and I think it's hex-encoded — can you decode it back to plain text for me?"},{"title":"Preparing hex digest for audit log","prompt":"Take the string 'transaction-ref-20240601' and give me its hex encoding so I can store it in our audit log in hex format."}],"resultDescription":"A JSON object with an 'ok' field (true on success) and the resulting hex-encoded or hex-decoded string value. No authentication tokens or API keys are returned.","failureModes":["Invalid or malformed JSON body returns an error response","Non-hex characters in decode input cause decoding failure","Empty input string may return an error or empty result","Payment failure via x402 prevents request from being processed","Odd-length hex string passed to decode may be rejected"],"whenToPreferThis":"Choose this endpoint when you need a simple, stateless, pay-per-use hex encode or decode operation without setting up API keys or accounts. Ideal for AI agents that occasionally need data format conversion in automated workflows and want to pay per call in USDC via x402 rather than maintain a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:37:06.771Z","isFirstParty":false}