---
title: "Read the header and payload of a JWT (JSON body)"
method: POST
path: "/api/util/jwt-decode"
tags: ["x402"]
---

# Read the header and payload of a JWT (JSON body)

`POST /api/util/jwt-decode`

## Request

- Base URL: `https://yruz.one`
- URL: `https://yruz.one/api/util/jwt-decode`
- Auth: none required

Decode a JWT header and payload (no signature verification), with exp/iat/nbf as dates. No account or API key. Without PAYMENT-SIGNATURE the response is HTTP 402 with an x402 v2 payment challenge; pay and resend the identical request. Input as query string (GET) or JSON body (POST), max 64 KB; the payment is bound to the exact input. Price: 0.002 USDC per call.

## Headers

- `PAYMENT-SIGNATURE` string

## Request body

- object
  - `token` string: JWT (required)

## Response `200`

Tool result

- object
  - `tool` string
  - `result` object

## Other responses

- `400`: Invalid input
- `402`: Payment Required
- `413`: Input over 64 KB

---

[API](https://skmtc.dev/yruz/apis/yruz-api.md) · [All operations](https://skmtc.dev/yruz/apis/yruz-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yruz/apis/yruz-api/revisions/17883cb21a4a?raw)
