# Relaystation JWT Decode

> Relaystation JWT Decode is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Decodes a JWT token's header and payload without signature verification, exposing all claims instantly

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/utils/jwt-decode
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-jwt-decode-4461147a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G6PCEGAfZZdAoJr_UyzFO

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 relaystation-jwt-decode-4461147a -d '<json body>'
```

Example prompt: Decode this JWT for me so I can see what claims are in it — no verification needed, just show me the header and payload: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

## When to prefer this

Use this endpoint when you need to quickly inspect JWT contents — claims, expiry, algorithm, issuer — without needing cryptographic verification. Ideal for debugging, logging, or extracting user identity data from a token when you already trust the source. Prefer this over a full JWT verification endpoint when you don't have the secret/public key available or when verification is handled elsewhere.

## Known failure modes

- Malformed JWT (not three dot-separated base64 segments) returns a parse error
- Empty or missing token field returns a validation error
- Non-JWT strings (e.g. opaque tokens) cannot be decoded and return an error
- Payment failure or insufficient x402 credit returns a 402 response

## How this service works

$0.0001/call. Decode a JWT's header and payload (no verification) — inspect claims fast. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns the decoded JWT header (algorithm, token type, key ID) and payload (all claims such as sub, iss, exp, iat, aud, and any custom claims) as structured JSON. Does not validate the signature — purely structural decoding.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/relaystation-jwt-decode-4461147a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
