# pack.openverbs.com Decode

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

Decodes a MessagePack or CBOR binary-encoded byte stream (supplied as base64, base64url, or hex) back into a JSON value

## Facts

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

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 pack-openverbs-com-decode-2a081c1d -d '<json body>'
```

Example prompt: Decode this base64 MessagePack byte string back to JSON: 'gaNmb2+jYmFy' — it's in msgpack format encoded as base64.

## When to prefer this

Choose this endpoint when you need to decode MessagePack or CBOR binary data back into JSON and want a simple, paid-per-call API with no infrastructure setup. Particularly useful in agentic pipelines that receive binary-serialized payloads from IoT devices, blockchains, or high-performance services and need to inspect or process the contents as JSON. Compared to running a local decoder, this removes the need for binary parsing libraries in your agent runtime.

## Known failure modes

- Malformed base64/base64url/hex string — rejected before payment
- Bytes that are not valid MessagePack or CBOR — rejected before payment
- Decoded value not representable in JSON (e.g. special float values) — rejected before payment
- Payload exceeds 5MB data field limit
- Missing required fields (format, data) — validation error
- Unsupported format value other than msgpack or cbor

## How this service works

Decode a MessagePack or CBOR byte stream (supplied as a base64/base64url/hex string) back into a JSON value. A malformed envelope, malformed bytes, or a value that is not JSON-representable is rejected before payment.

## Output

A JSON value (object, array, string, number, boolean, or null) that was originally serialized into the binary format. If the input bytes are malformed, use an unsupported encoding, or produce a value not representable in JSON, the endpoint rejects the request before charging.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "format": {
       "type": "string",
       "enum": [
        "msgpack",
        "cbor"
       ],
       "description": "Binary format, one of msgpack, cbor."
      },
      "data": {
       "type": "string",
       "maxLength": 5000000,
       "description": "The encoded bytes, in `inputEncoding`."
      },
      "inputEncoding": {
       "type": "string",
       "enum": [
        "base64",
        "base64url",
        "hex"
       ],
       "description": "Envelope encoding of the data string (base64, base64url, hex). Default base64."
      }
     },
     "required": [
      "format",
      "data"
     ],
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  }
 },
 "required": [
  "input"
 ]
}
```

## More

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