# x402 Utility Tools – JWT Decode

> x402 Utility Tools – JWT Decode is a paid API for AI agents from x402-utils.558686.xyz, paid per call via x402, $0.0001/call, status unknown (last checked 2026-10-23).

Decodes a JWT token and returns its header, payload claims, shape validity, and signature verification status without requiring an LLM.

## Facts

- Endpoint: POST https://x402-utils.558686.xyz/v1/tools/jwt-decode?utm_source=zero.xyz
- Price: $0.0001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-utility-tools-jwt-decode-46e43c87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xi7P934aFqe4iQo6nJY9q

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 x402-utility-tools-jwt-decode-46e43c87 -d '<json body>'
```

Example prompt: Can you decode this JWT for me and tell me what claims are in the payload — eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ2VudCIsImV4cCI6MTcxMjAwMDAwMH0.signature — and whether the shape looks valid?

## When to prefer this

Choose this endpoint when you need a cheap, deterministic, non-LLM JWT decode operation inside an automated pipeline — especially when you want structured output (header, payload, claims, validity) without spinning up heavier parsing logic or using an AI model for a task that is purely mechanical. At $0.002 per call it is cost-effective for high-frequency token inspection.

## Known failure modes

- Malformed or non-JWT string input may return validShape: false or an error response
- Signature verification may fail if the signing key is not available to the service
- Missing or empty token field returns a validation error
- Network or payment processing failures return a 402 or 5xx error

## How this service works

A compact x402 utility surface for agents that need cheap, repeatable non-LLM transformations before spending on heavier routes: CSV cleanup, JSON Schema checks, timestamp conversion, JWT decode, URL normalization, hashes, codecs, and text utilities.

## Output

Returns a JSON object with the decoded JWT header (algorithm, type), the full payload as a parsed object, an array of claims, a boolean validShape indicating whether the token structure is well-formed, and a signatureVerified boolean.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "jwt-decode",
  "input": {
   "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ2VudCJ9.signature"
  },
  "route": "/v1/tools/jwt-decode",
  "result": {
   "claims": [],
   "header": "header_example",
   "payload": {},
   "validShape": true,
   "signatureVerified": true
  },
  "project": "x402-utility-tools",
  "deterministic": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-utility-tools-jwt-decode-46e43c87/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-utils.558686.xyz](https://www.zero.xyz/host/x402-utils.558686.xyz/llms.txt)
