# 47620 JWT Decode API

> 47620 JWT Decode API is a paid API for AI agents from 47620.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Decodes a JWT token and extracts header, payload, and standard claims (sub, iss, aud, exp, iat, nbf, alg, kid) with expiration status — without verifying the signature.

## Facts

- Endpoint: GET https://47620.xyz/x/util/jwt-decode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/47620-jwt-decode-api-0e2bb1f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RfgywatmX-WlYC8vF2byB

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 47620-jwt-decode-api-0e2bb1f3
```

Example prompt: Can you decode this JWT for me and tell me whether it's expired, who the issuer is, and what the subject claim says: eyJhbGciOiJSUzI1NiIsImtpZCI6ImFiYzEyMyJ9.eyJzdWIiOiJ1c2VyXzQ1NiIsImlzcyI6Imh0dHBzOi8vYXV0aC5leGFtcGxlLmNvbSIsImV4cCI6MTcwMDAwMDAwMH0.signature

## When to prefer this

Use this endpoint when you need to quickly inspect the contents and expiration status of a JWT without needing signature verification — ideal for debugging, logging, or extracting claims for informational purposes. Prefer this over a full JWT validation endpoint when you already trust the token source or just need to read its payload. It is also useful for agents that need to extract a user ID, issuer, or expiration time from a token at runtime without maintaining signing keys.

## Known failure modes

- Malformed or non-JWT string returns an error response
- Missing ?token= query parameter returns a bad request error
- Very long tokens may hit URL length limits depending on client configuration
- No signature verification — tampered tokens will still decode without error
- Non-standard or nested JWTs may not parse all claims correctly

## How this service works

Decode a JWT (JSON Web Token): returns the header, payload and the extracted claims (subject sub, issuer iss, audience aud, expiration exp with `expired` flag and seconds remaining, issued-at iat, not-before nbf, algorithm alg, key id kid). Decode-only — the signature is NOT verified, so claims are informational. Pass the token via ?token=<jwt> (query param, no length limit).

## Output

A JSON object containing the decoded JWT header (including algorithm and key ID), the full payload with all claims, and individually extracted standard claims: subject (sub), issuer (iss), audience (aud), expiration (exp) with an 'expired' boolean flag and seconds remaining until/since expiry, issued-at (iat), not-before (nbf), algorithm (alg), and key ID (kid).

## 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": {
      "fields": {
       "type": "string",
       "description": "Optional comma-separated top-level response keys to keep (e.g. \"health,slot,solUsd\"). Omit for the full payload."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "endpoint"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "endpoint": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/47620-jwt-decode-api-0e2bb1f3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 47620.xyz](https://www.zero.xyz/host/47620.xyz/llms.txt)
