# JWT Decoder

> JWT Decoder is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Decodes a JSON Web Token and returns the header, payload claims, human-readable timestamps, expiry status, seconds until expiry, and security warnings like alg=none — no signature verification, nothing stored.

## Facts

- Endpoint: GET https://intel.rallylive.ca/decode-jwt?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jwt-decoder-d872077b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x4oddt8MjumqvaskwMuBu

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-decoder-d872077b
```

Example prompt: Can you decode this JWT for me and tell me what claims are in it, when it expires, and whether there are any security warnings like alg=none? 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 — its claims, timestamps, and algorithm — without needing cryptographic signature verification. Ideal for debugging authentication issues, auditing token security configurations (especially detecting dangerous alg=none), or extracting human-readable expiry information from tokens at $0.01 per call. Not suitable when you require server-side signature verification or need to validate the token's authenticity.

## Known failure modes

- Malformed or non-base64-encoded token string results in a parse error response
- Missing 'input' query parameter causes a 400-style validation error
- Token with no exp claim may return null for expiry fields
- Network or service unavailability returns a 5xx error
- Unsupported JWT format (e.g. JWE encrypted tokens) may return an error or incomplete decode

## How this service works

Decode JWT: paste a JSON Web Token and get the decoded header, payload claims, human-readable iat/exp/nbf times, expired or not-yet-valid status, seconds until expiry and security warnings such as alg=none. No signature verification, nothing stored. $0.01 per token.

## Output

Returns the decoded JWT header (including algorithm), all payload claims as a structured object, human-readable versions of iat/exp/nbf timestamps, a boolean or status indicating whether the token is expired or not-yet-valid, seconds remaining until expiry, and any security warnings such as alg=none usage. No signature verification is performed and nothing is persisted.

## 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",
     "properties": {}
    }
   },
   "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/jwt-decoder-d872077b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
