{"uid":"cap_blnuPeM8kUmY2U3Mjvgnk","slug":"hex-encode-decode-d446bb08","name":"Hex Encode/Decode","description":"Hex encode or decode text — hex string encoder/decoder.","url":"https://conclavex402p04.pythonanywhere.com/u/hex?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","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"pathParams":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"hex":"6869"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w9CBwHQJgf6yQXZGUSPXh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes plain text to hexadecimal or decodes a hex string back to plain text via HTTP POST.","exampleAgentPrompt":"Hex encode the text 'hello world' for me — I need the raw hex string output.","exampleUseCases":[{"title":"Encode API key for safe transport","prompt":"Hex encode the string 'sk-abc123XYZ' so I can embed it safely in a URL or header without special character issues."},{"title":"Decode hex payload from network log","prompt":"I captured this hex string '48656c6c6f20576f726c64' from a network packet — can you decode it back to readable text?"},{"title":"Prepare binary data as hex for debugging","prompt":"Take the text 'user:admin:session42' and convert it to hex so I can inspect it byte-by-byte in my debugger."}],"resultDescription":"A JSON object containing the result field 'hex' with either the hex-encoded string (e.g. {\"hex\":\"6869\"}) when encoding, or the decoded plaintext when decoding. The response is fast and synchronous.","failureModes":["Missing or malformed 'input' body field returns a 400-level error","Passing invalid hex characters during decode may return an error or garbled output","Incorrect bodyType (e.g. sending form-data when json expected) may cause a parse failure","Network or server errors on pythonanywhere may result in 5xx responses","Payment failure or insufficient USDC balance returns 402 before the endpoint is reached"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call hex encode or decode operation without setting up a local library or runtime. Ideal for agents that occasionally need hex conversion in a pipeline without installing dependencies. Prefer it over rolling your own conversion when operating in constrained environments or when auditable, consistent hex output is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:46:05.639Z","isFirstParty":false,"canonicalSlug":"hex-encode-decode-d446bb08"}