# Hex Encode/Decode

> Hex Encode/Decode is a paid API for AI agents from conclavex402.pythonanywhere.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-18).

Encodes plain text to a hexadecimal string or decodes a hex string back to text via a pay-per-call POST endpoint.

## Facts

- Endpoint: POST https://conclavex402.pythonanywhere.com/u/hex?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hex-encode-decode-aeed8f6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vj55ycX2nckL_OZ1elrJm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hex-encode-decode-aeed8f6d -d '<json body>'
```

Example prompt: Hex-encode the text 'hello world' for me so I can use it in a protocol that needs hex-formatted strings.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Hex encode or decode text — hex string encoder/decoder.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "6869"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hex-encode-decode-aeed8f6d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from conclavex402.pythonanywhere.com](https://www.zero.xyz/host/conclavex402.pythonanywhere.com/llms.txt)
