# AgentTools JWT Decoder

> AgentTools JWT Decoder is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Decodes a JWT's header and payload into readable JSON without verifying the signature, rendering timestamp claims as human-readable dates.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/dev/jwt-decoder?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-jwt-decoder-1d77cc72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t4eTMzerKudltUaQTD1B_

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 agenttools-jwt-decoder-1d77cc72
```

Example prompt: Can you decode this JWT for me and show me what's in the header and payload, including when it expires? Here's the token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiZXhwIjoxNzE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

## When to prefer this

Use this endpoint when an agent needs to quickly inspect the contents of a JWT — such as reading claims, checking expiry, or identifying the algorithm — without needing to validate the signature. Ideal for debugging, logging, or displaying token metadata. Not suitable when signature verification or security enforcement is required.

## Known failure modes

- Malformed JWT (not three dot-separated base64 segments) returns a decode error
- Missing required 'token' query parameter results in a bad request response
- Passing a non-JWT string (e.g. an opaque token) returns garbled or error output
- Network or service unavailability returns a 5xx error

## How this service works

Decode a JSON Web Token's header and payload to readable JSON. Pure decoding: signatures are NOT verified and no secret is needed. Claims like exp and iat are rendered as dates. Use this when an agent needs to decode header and payload — no verification.

## Output

Returns the decoded JWT header and payload as structured JSON objects, with timestamp fields like exp and iat converted to human-readable date strings. No signature verification is performed — the raw claims are surfaced as-is.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "header.payload.signature"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-jwt-decoder-1d77cc72/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
