{"uid":"cap_vj55ycX2nckL_OZ1elrJm","slug":"hex-encode-decode-aeed8f6d","name":"Hex Encode/Decode","description":"Hex encode or decode text — hex string encoder/decoder.","url":"https://conclavex402.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_Ig_0ZBFLR8naAUOdOrdR6","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 a hexadecimal string or decodes a hex string back to text via a pay-per-call POST endpoint.","exampleAgentPrompt":"Hex-encode the text 'hello world' for me so I can use it in a protocol that needs hex-formatted strings.","exampleUseCases":[{"title":"Encode message for protocol","prompt":"Convert the string 'Authorization:Bearer abc123' to its hex representation so I can embed it in a low-level network packet."},{"title":"Decode hex payload from log","prompt":"I found this hex string '48656c6c6f' in a debug log — can you decode it back to plain text so I can read what it says?"},{"title":"Verify hex encoding of known value","prompt":"Encode 'ping' as hex so I can confirm it matches the expected value '70696e67' in our test suite."}],"resultDescription":"A JSON object containing the hex-encoded or hex-decoded result; for encoding, returns a field like {\"hex\":\"6869\"} with the hexadecimal representation of the input text; for decoding, returns the plain-text string recovered from the hex input.","failureModes":["Invalid or malformed hex string provided for decoding (odd-length or non-hex characters)","Missing required 'body' or 'type'/'method'/'bodyType' fields returns a 400-level error","Payment not included or insufficient — endpoint returns HTTP 402 requiring x402 payment","Network timeout or PythonAnywhere hosting downtime returns 5xx"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call hex encode/decode operation without standing up your own conversion library, especially in agentic workflows where installing dependencies is impractical or when you need a verifiable third-party transform for audit purposes. Prefer it over Base64 or Base58 siblings on the same host when the downstream system specifically requires hexadecimal encoding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:31:24.171Z","isFirstParty":false,"canonicalSlug":"hex-encode-decode-aeed8f6d"}