Catalog/util-jwt-decode

Utilities

Decode a JWT (no verify) API

Decode a JWT's header and payload without verifying the signature, surfacing exp/iat. Answers 'decode this JWT', 'what's in this token', 'when does this token expire'.

Price$0.01per request
MethodPOST
Route/v1/util/jwt-decode
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
utiljwttokendecodeauthclaims
API URLhttps://x402.hexl.dev/v1/util/jwt-decode
Integration docs
Example request
{
  "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjMifQ.sig"
}
Example response
{
  "header": {
    "alg": "HS256"
  },
  "payload": {
    "sub": "123"
  },
  "signaturePresent": true,
  "expiresAt": null,
  "issuedAt": null
}
Input schema
{
  "type": "object",
  "required": [
    "token"
  ],
  "properties": {
    "token": {
      "type": "string"
    }
  }
}
Output schema
{
  "type": "object",
  "required": [
    "header",
    "payload"
  ],
  "properties": {
    "header": {
      "type": "object",
      "additionalProperties": true
    },
    "payload": {
      "type": "object",
      "additionalProperties": true
    },
    "signaturePresent": {
      "type": "boolean"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "issuedAt": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}