# text.openverbs.com Decode

> text.openverbs.com Decode is a paid API for AI agents from text.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Decodes a base64, base64url, hex, base32, or URL percent-encoded string back into UTF-8 text, rejecting malformed input with a 400 error.

## Facts

- Endpoint: POST https://text.openverbs.com/v1/decode
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-openverbs-com-decode-544537cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kJ5B1ngUfjFMB5j983XJ_

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 text-openverbs-com-decode-544537cd -d '<json body>'
```

Example prompt: Can you decode this base64 string back into plain text: 'SGVsbG8sIFdvcmxkIQ=='?

## When to prefer this

Choose this endpoint when you need a reliable, single-call decode from any of base64, base64url, hex, base32, or URL percent-encoding back to UTF-8 text, with strict validation that rejects malformed input cleanly. Prefer it over rolling your own decoding logic when correctness and error clarity matter, or when running in an agent context where a clean 400 on bad input is more useful than a silent failure.

## Known failure modes

- Malformed or invalid characters for the chosen encoding → 400 Bad Request
- Input text exceeding 1,000,000 character limit → rejected
- Unsupported encoding type specified → validation error
- Empty input string → likely 400 or empty result
- Payment not provided or insufficient → 402 Payment Required

## How this service works

Decode a base64, base64url, hex, base32, or URL percent-encoded string back into UTF-8 text. Malformed input for the chosen encoding is rejected as a clean 400.

## Output

Returns the decoded UTF-8 text string corresponding to the input encoded value. If the input is malformed or invalid for the specified encoding, a 400 error is returned with a clean rejection message.

## 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",
     "required": [
      "text",
      "encoding"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 1000000,
       "description": "The encoded text to decode."
      },
      "encoding": {
       "enum": [
        "base64",
        "base64url",
        "hex",
        "base32",
        "url"
       ],
       "type": "string",
       "description": "Source encoding, one of base64, base64url, hex, base32, url."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-openverbs-com-decode-544537cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from text.openverbs.com](https://www.zero.xyz/host/text.openverbs.com/llms.txt)
