# Decode JWT

> Decode JWT is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Decodes a JWT token into its header and payload claims, and reports expiry time and time-to-live, without verifying the signature.

## Facts

- Endpoint: GET https://api.gadgethumans.com/jwt-decode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/decode-jwt-934a7865
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bU8bZwwgIUxLIm00r6vgt

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 decode-jwt-934a7865
```

Example prompt: Can you decode this JWT for me and tell me what claims are in it and when it expires? Here's the token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

## When to prefer this

Use this endpoint when you need to quickly inspect the contents of a JWT — its header algorithm, payload claims, subject, issuer, expiry, and remaining TTL — without needing signature verification. Ideal for debugging auth flows, detecting clock skew, logging token metadata, or building middleware that reads claims. It is not a substitute for full token validation in security-critical paths.

## Known failure modes

- Malformed or non-JWT string input returns an error (token cannot be parsed)
- Missing required 'token' query parameter results in a bad request error
- Token with no expiry claim may return null or zero for TTL fields
- Network or server timeout, though unlikely given pure CPU operation

## How this service works

Decode a JWT into its header and payload without verifying the signature, and report expiry and time-to-live. Pure CPU, instant. Use to inspect a token's claims and clock skew.

## Output

Returns the decoded JWT header object, payload claims object, expiry timestamp, and time-to-live in seconds, all without performing signature verification. The ok field confirms success.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "JWT to decode"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

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