{
  "x402Version": 2,
  "id": 72367,
  "slug": "saylorinnovations-api-dev-jwt-decode",
  "resource": "https://saylorinnovations.com/api/dev/jwt-decode",
  "description": "Decode a JWT header and claims without verifying it - issuer, subject, audience, issued, not-before and expiry times, lifetime and security warnings",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "header": {
        "type": "object",
        "description": "Decoded JWT header",
        "properties": {
          "alg": {
            "description": "Signing algorithm",
            "type": [
              "string",
              "null"
            ]
          },
          "typ": {
            "description": "Token type",
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "payload": {
        "type": "object",
        "description": "Decoded JWT claims",
        "properties": {
          "sub": {
            "description": "Subject claim",
            "type": [
              "string",
              "null"
            ]
          },
          "iat": {
            "description": "Issued-at claim as a Unix time",
            "type": [
              "number",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name"
          }
        }
      },
      "algorithm": {
        "type": [
          "string",
          "null"
        ],
        "description": "Signing algorithm from the header"
      },
      "issued_at": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "unix": {
            "description": "Issued-at as Unix seconds",
            "type": [
              "number",
              "null"
            ]
          },
          "iso": {
            "description": "Issued-at as an ISO timestamp",
            "type": [
              "string",
              "null"
            ]
          },
          "relative_seconds": {
            "type": [
              "number",
              "null"
            ],
            "description": "Relative, in seconds"
          }
        },
        "description": "Issued at (UTC unless a time zone is given)"
      },
      "expires_at": {
        "type": [
          "object",
          "null"
        ],
        "description": "Expires at"
      },
      "expired": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "True when exp is in the past, null when there is no exp claim"
      },
      "custom_claims": {
        "type": "array",
        "description": "Custom claims"
      },
      "warnings": {
        "type": "array",
        "description": "Security problems found, such as alg none or a shared-secret algorithm"
      },
      "signature_verified": {
        "type": "boolean",
        "description": "Signature verified"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      },
      "issuer": {
        "description": "iss claim, or null"
      },
      "audience": {
        "description": "aud claim, or null"
      },
      "token_type": {
        "type": [
          "string",
          "null"
        ],
        "description": "Token type"
      },
      "key_id": {
        "description": "Key id identifier"
      },
      "signature_present": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "Signature present"
      },
      "signature_bytes": {
        "type": [
          "number",
          "null"
        ],
        "description": "Signature, in bytes"
      },
      "subject": {
        "type": [
          "string",
          "null"
        ],
        "description": "What this response is for"
      },
      "not_before": {
        "description": "Not before"
      },
      "lifetime_seconds": {
        "description": "Lifetime, in seconds"
      }
    },
    "required": [
      "header",
      "payload",
      "warnings"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "header": {
              "alg": "HS256",
              "typ": "JWT"
            },
            "payload": {
              "sub": "1234567890",
              "name": "John Doe",
              "iat": 1516239022
            },
            "algorithm": "HS256",
            "token_type": "JWT",
            "key_id": null,
            "signature_present": true,
            "signature_bytes": 32,
            "issuer": null,
            "subject": "1234567890",
            "audience": null,
            "issued_at": {
              "unix": 1516239022,
              "iso": "2018-01-18T01:30:22.000Z",
              "relative_seconds": -275988057
            },
            "not_before": null,
            "expires_at": null,
            "expired": null,
            "lifetime_seconds": null,
            "custom_claims": [
              "name"
            ],
            "warnings": [
              "symmetric HMAC algorithm: the same secret signs and verifies, so keep it server-side",
              "no exp claim: the token never expires",
              "no iss (issuer) claim",
              "no aud (audience) claim"
            ],
            "signature_verified": false,
            "note": "The signature is NOT verified (that needs the issuer's key), so never trust claims from this decode. Tokens placed in a URL can be logged by servers and proxies; use expired or test tokens only.",
            "source": "base64url decoding"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "description": "JWT string (header.payload.signature); use expired or test tokens only"
                  }
                },
                "required": [
                  "token"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "header": {
                    "type": "object",
                    "description": "Decoded JWT header",
                    "properties": {
                      "alg": {
                        "description": "Signing algorithm",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "typ": {
                        "description": "Token type",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  },
                  "payload": {
                    "type": "object",
                    "description": "Decoded JWT claims",
                    "properties": {
                      "sub": {
                        "description": "Subject claim",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "iat": {
                        "description": "Issued-at claim as a Unix time",
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Name"
                      }
                    }
                  },
                  "algorithm": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Signing algorithm from the header"
                  },
                  "issued_at": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "unix": {
                        "description": "Issued-at as Unix seconds",
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "iso": {
                        "description": "Issued-at as an ISO timestamp",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "relative_seconds": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Relative, in seconds"
                      }
                    },
                    "description": "Issued at (UTC unless a time zone is given)"
                  },
                  "expires_at": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "Expires at"
                  },
                  "expired": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "description": "True when exp is in the past, null when there is no exp claim"
                  },
                  "custom_claims": {
                    "type": "array",
                    "description": "Custom claims"
                  },
                  "warnings": {
                    "type": "array",
                    "description": "Security problems found, such as alg none or a shared-secret algorithm"
                  },
                  "signature_verified": {
                    "type": "boolean",
                    "description": "Signature verified"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  },
                  "issuer": {
                    "description": "iss claim, or null"
                  },
                  "audience": {
                    "description": "aud claim, or null"
                  },
                  "token_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Token type"
                  },
                  "key_id": {
                    "description": "Key id identifier"
                  },
                  "signature_present": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "description": "Signature present"
                  },
                  "signature_bytes": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Signature, in bytes"
                  },
                  "subject": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "What this response is for"
                  },
                  "not_before": {
                    "description": "Not before"
                  },
                  "lifetime_seconds": {
                    "description": "Lifetime, in seconds"
                  }
                },
                "required": [
                  "header",
                  "payload",
                  "warnings"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "decode a jwt token",
    "jwt expiry time and claims",
    "is this jwt expired",
    "inspect jwt header algorithm",
    "jwt security warnings alg none"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.937Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "token": {
          "type": "string",
          "description": "JWT string (header.payload.signature); use expired or test tokens only"
        }
      },
      "required": [
        "token"
      ]
    },
    "exampleResponse": {
      "header": {
        "alg": "HS256",
        "typ": "JWT"
      },
      "payload": {
        "sub": "1234567890",
        "name": "John Doe",
        "iat": 1516239022
      },
      "algorithm": "HS256",
      "token_type": "JWT",
      "key_id": null,
      "signature_present": true,
      "signature_bytes": 32,
      "issuer": null,
      "subject": "1234567890",
      "audience": null,
      "issued_at": {
        "unix": 1516239022,
        "iso": "2018-01-18T01:30:22.000Z",
        "relative_seconds": -275988057
      },
      "not_before": null,
      "expires_at": null,
      "expired": null,
      "lifetime_seconds": null,
      "custom_claims": [
        "name"
      ],
      "warnings": [
        "symmetric HMAC algorithm: the same secret signs and verifies, so keep it server-side",
        "no exp claim: the token never expires",
        "no iss (issuer) claim",
        "no aud (audience) claim"
      ],
      "signature_verified": false,
      "note": "The signature is NOT verified (that needs the issuer's key), so never trust claims from this decode. Tokens placed in a URL can be logged by servers and proxies; use expired or test tokens only.",
      "source": "base64url decoding"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "header": {
                "alg": "HS256",
                "typ": "JWT"
              },
              "payload": {
                "sub": "1234567890",
                "name": "John Doe",
                "iat": 1516239022
              },
              "algorithm": "HS256",
              "token_type": "JWT",
              "key_id": null,
              "signature_present": true,
              "signature_bytes": 32,
              "issuer": null,
              "subject": "1234567890",
              "audience": null,
              "issued_at": {
                "unix": 1516239022,
                "iso": "2018-01-18T01:30:22.000Z",
                "relative_seconds": -275988057
              },
              "not_before": null,
              "expires_at": null,
              "expired": null,
              "lifetime_seconds": null,
              "custom_claims": [
                "name"
              ],
              "warnings": [
                "symmetric HMAC algorithm: the same secret signs and verifies, so keep it server-side",
                "no exp claim: the token never expires",
                "no iss (issuer) claim",
                "no aud (audience) claim"
              ],
              "signature_verified": false,
              "note": "The signature is NOT verified (that needs the issuer's key), so never trust claims from this decode. Tokens placed in a URL can be logged by servers and proxies; use expired or test tokens only.",
              "source": "base64url decoding"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string",
                      "description": "JWT string (header.payload.signature); use expired or test tokens only"
                    }
                  },
                  "required": [
                    "token"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "header": {
                      "type": "object",
                      "description": "Decoded JWT header",
                      "properties": {
                        "alg": {
                          "description": "Signing algorithm",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "typ": {
                          "description": "Token type",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "payload": {
                      "type": "object",
                      "description": "Decoded JWT claims",
                      "properties": {
                        "sub": {
                          "description": "Subject claim",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "iat": {
                          "description": "Issued-at claim as a Unix time",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Name"
                        }
                      }
                    },
                    "algorithm": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Signing algorithm from the header"
                    },
                    "issued_at": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "unix": {
                          "description": "Issued-at as Unix seconds",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "iso": {
                          "description": "Issued-at as an ISO timestamp",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "relative_seconds": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Relative, in seconds"
                        }
                      },
                      "description": "Issued at (UTC unless a time zone is given)"
                    },
                    "expires_at": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Expires at"
                    },
                    "expired": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "True when exp is in the past, null when there is no exp claim"
                    },
                    "custom_claims": {
                      "type": "array",
                      "description": "Custom claims"
                    },
                    "warnings": {
                      "type": "array",
                      "description": "Security problems found, such as alg none or a shared-secret algorithm"
                    },
                    "signature_verified": {
                      "type": "boolean",
                      "description": "Signature verified"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    },
                    "issuer": {
                      "description": "iss claim, or null"
                    },
                    "audience": {
                      "description": "aud claim, or null"
                    },
                    "token_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Token type"
                    },
                    "key_id": {
                      "description": "Key id identifier"
                    },
                    "signature_present": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Signature present"
                    },
                    "signature_bytes": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Signature, in bytes"
                    },
                    "subject": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "What this response is for"
                    },
                    "not_before": {
                      "description": "Not before"
                    },
                    "lifetime_seconds": {
                      "description": "Lifetime, in seconds"
                    }
                  },
                  "required": [
                    "header",
                    "payload",
                    "warnings"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/dev/jwt-decode?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "header": {
      "alg": "string",
      "typ": "string"
    },
    "payload": {
      "sub": "string",
      "iat": 0,
      "name": "string"
    },
    "algorithm": "string",
    "issued_at": {
      "unix": 0,
      "iso": "string",
      "relative_seconds": 0
    },
    "expires_at": {},
    "expired": true,
    "custom_claims": [
      "value"
    ],
    "warnings": [
      "value"
    ],
    "signature_verified": true,
    "note": "string",
    "source": "string",
    "issuer": null,
    "audience": null,
    "token_type": "string",
    "key_id": null,
    "signature_present": true,
    "signature_bytes": 0,
    "subject": "string",
    "not_before": null,
    "lifetime_seconds": null
  }
}