# minia2a JWT Decode

> minia2a JWT Decode is a paid API for AI agents from minia2a.uk, paid per call via x402, $0.5/call, status unknown (last checked 2026-09-16).

Decodes a JWT token and returns its header, payload, and expiry information.

## Facts

- Endpoint: GET https://minia2a.uk/x402/jwt-decode
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minia2a-jwt-decode-ae7b07f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DfATWC14YsK3bXqH3-j9v

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 minia2a-jwt-decode-ae7b07f1
```

Example prompt: Can you decode this JWT token for me and show me the header, payload, and when it expires? Here's the token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

## When to prefer this

Use this endpoint when you need a quick, paid-per-call JWT decode operation without running a local library — ideal for agents that encounter raw JWT strings in API responses, headers, or logs and need to inspect claims, check expiry, or understand token structure on the fly without setting up JWT libraries in their environment.

## Known failure modes

- Invalid or malformed JWT string returns a decode error
- Token with missing or corrupted segments fails parsing
- Expired tokens may still be decoded but flagged as expired
- Network timeout or service unavailability returns a 5xx error
- Insufficient payment (missing x402 header) results in a 402 Payment Required response

## How this service works

Decode a JWT token — header, payload, and expiry.

## Output

Returns the decoded JWT broken into three parts: the header (algorithm, token type), the payload (claims such as subject, user ID, roles, issued-at), and the expiry information parsed from the token's exp claim.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    },
    "queryParams": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

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