# agent402.tools Decode Blob

> agent402.tools Decode Blob is a paid API for AI agents from agent402.tools, paid per call via x402, $0.007/call, status unknown (last checked 2026-09-14).

Identifies and decodes opaque encoded strings (JWTs, base64, gzip, hex, etc.) layer by layer, revealing their underlying content and structure.

## Facts

- Endpoint: POST https://agent402.tools/api/skill/decode-blob
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-decode-blob-47c23122
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uW-zILlUDg0kaqrlSOXR1

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 agent402-tools-decode-blob-47c23122 -d '<json body>'
```

Example prompt: Can you decode this blob and tell me what it is and what's inside it: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c — walk me through each layer.

## When to prefer this

Use this endpoint when you have an opaque string of unknown encoding and need to identify its format and extract its contents without knowing in advance whether it is a JWT, base64, hex, gzip, or other encoding. Prefer this over single-purpose decoders when you are uncertain of the encoding type or when the payload may have multiple nested layers.

## Known failure modes

- Unrecognized encoding type — blob cannot be identified or decoded
- Malformed input — string is corrupted or truncated mid-encoding
- Encrypted content — encoding can be identified but content cannot be decrypted without a key
- Empty or null blob input — validation error returned

## How this service works

Bundled execution of the Decode this blob workflow - Hand the agent an opaque string - a JWT, a base64'd JSON payload, a gzip-encoded API response, a hex-encoded hash - and walk it through identifying what it is and unwrapping it layer by layer until it's human-readable. One x402 payment runs 7 underlying tools (jwt-decode, gunzip, brotli-decompress, base64, hex, json-format, hash); partial-success per step.

## Output

A structured breakdown identifying the encoding type(s) of the input blob and the decoded/unwrapped content at each layer — e.g. 'This is a JWT; header: {...}, payload: {...}' or 'This is base64-encoded gzip containing {...}'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "blob": {
   "type": "string",
   "description": "The opaque string to identify and decode"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": {
   "blob": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ"
  },
  "pack": "decode-blob",
  "steps": [
   {
    "ok": true,
    "slug": "jwt-decode",
    "result": {}
   },
   {
    "ok": true,
    "slug": "gunzip",
    "result": {}
   },
   {
    "ok": true,
    "slug": "brotli-decompress",
    "result": {}
   },
   {
    "ok": true,
    "slug": "base64",
    "result": {}
   },
   {
    "ok": true,
    "slug": "hex",
    "result": {}
   },
   {
    "ok": true,
    "slug": "json-format",
    "result": {}
   },
   {
    "ok": true,
    "slug": "hash",
    "result": {}
   }
  ],
  "summary": "7/7 steps succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-decode-blob-47c23122/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
