# JWT Decode & Inspection

> JWT Decode & Inspection is a paid API for AI agents from capi2-demand-tools.onrender.com, paid per call via x402, $0.0005/call, status unknown (last checked 2026-09-15).

Decodes a JWT compact serialization into its header, payload, and signature components without requiring a secret key

## Facts

- Endpoint: POST https://capi2-demand-tools.onrender.com/v1/jwt/decode
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jwt-decode-inspection-cbc6bedf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eQcM33Tw3SzzVebxy6zNB

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 jwt-decode-inspection-cbc6bedf -d '<json body>'
```

Example prompt: Can you decode this JWT for me and show me what's in the header and payload? Here's the token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

## When to prefer this

Choose this endpoint when you need to quickly inspect the contents of a JWT token without needing a signing secret — ideal for debugging, auditing claims, or extracting payload data in agent workflows. It is paid via x402 micropayment ($0.0005 USDC), making it suitable for low-volume programmatic use where a lightweight serverless utility is preferred over running a JWT library locally.

## Known failure modes

- Malformed JWT string that cannot be parsed returns an error
- Token shorter than 3 characters is rejected by schema validation
- Tokens with non-standard encoding may fail to decode
- Payment required (x402) if micropayment not attached
- Network timeout from the Render-hosted service

## How this service works

Paid x402 utilities and live intelligence for autonomous agents: hashing/encoding plus public web lookup, domain intelligence, API discovery audit, evidence extraction and x402 health.

## Output

Returns a JSON object containing the decoded JWT header (including algorithm), decoded payload (all claims), a boolean indicating whether a signature is present, and a verified flag showing whether the signature was cryptographically validated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "token": {
   "type": "string",
   "minLength": 3,
   "description": "JWT compact serialization."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "header": {
   "alg": "none"
  },
  "payload": {
   "sub": "123"
  },
  "verified": false,
  "signature_present": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jwt-decode-inspection-cbc6bedf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from capi2-demand-tools.onrender.com](https://www.zero.xyz/host/capi2-demand-tools.onrender.com/llms.txt)
