# pastable-x402 JWT Decode

> pastable-x402 JWT Decode is a paid API for AI agents from pastable-x402.pages.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Decodes a JWT token to extract its header, payload, signature presence, and expiry information without verifying the signature.

## Facts

- Endpoint: GET https://pastable-x402.pages.dev/text/jwt-decode
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pastable-x402-jwt-decode-11d530c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IE-ifjRIQ69W74x7dQZwh

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 pastable-x402-jwt-decode-11d530c2
```

Example prompt: Can you decode this JWT token for me and tell me what's in the header and payload, and whether it's expired: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

## When to prefer this

Use this endpoint when you need to quickly inspect the contents of a JWT token — its claims, algorithm, and expiry — without needing to cryptographically verify the signature. Ideal for debugging, logging, or extracting payload data from tokens you already trust contextually. Not suitable when signature verification is required for security-critical flows.

## Known failure modes

- Malformed or non-JWT string returns an error
- Missing required 'token' query parameter returns 400
- Payment failure (x402) if USDC not provided or insufficient balance
- Token with no expiry claim returns null for expires_at and seconds_until_expiry

## How this service works

Pay-per-call utility APIs for agents: EVM helpers (checksum, unit conversion, keccak), data transforms (CSV to JSON, JSON diff, URL canonicalisation), text tools (hashing, JWT decode), and Bazaar market intelligence. x402 on Base mainnet.

## Output

Returns a JSON object containing the decoded JWT header (including algorithm and type), the payload (all claims), a boolean for signature presence, the expiration timestamp if present, seconds until expiry, and an expired flag. Note: signature is not cryptographically verified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "header": {
   "alg": "HS256",
   "typ": "JWT"
  },
  "expired": null,
  "payload": {
   "sub": "1"
  },
  "expires_at": null,
  "signature_present": true,
  "seconds_until_expiry": null,
  "signature_was_not_checked": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pastable-x402-jwt-decode-11d530c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pastable-x402.pages.dev](https://www.zero.xyz/host/pastable-x402.pages.dev/llms.txt)
