---
title: "JWT Decoder"
method: POST
path: "/api/v1/tools/jwt-decoder"
tags: ["tools"]
---

# JWT Decoder

`POST /api/v1/tools/jwt-decoder`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/jwt-decoder`
- Auth: HTTP bearer

Decode a JSON Web Token into its header and payload, and explain the exp, iat and nbf claims as ISO dates with an expired flag. The signature is returned but never verified.

## Request body

- object
  - `token` string
  - `now` string

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `header` object
      - `alg` string
      - `typ` string
    - `payload` object
      - `sub` string
      - `name` string
      - `iat` integer
    - `signature` string
    - `expiresAt` unknown
    - `issuedAt` object
      - `unix` integer
      - `iso` string
    - `notBefore` unknown
    - `expired` unknown
    - `checkedAt` string
    - `verified` boolean

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

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