Navigation
POST crypto

jwt_decode

1 credit

Decode a JWT without verifying the signature

Endpoint

POST /api/v1/tools/crypto/jwt_decode

Body Parameters

token string required

Example

input Request
{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.XbPfbIHMI6arZ3Y922BhjWgQzWXcXNrz0ogtVhfEd2o"
}
output Response
{
    "claims": {
        "iat": 1516239022,
        "sub": "1234567890",
        "name": "John Doe"
    },
    "headers": {
        "alg": "HS256",
        "typ": "JWT"
    }
}

Response Format

HTTP/1.1 200 OK SUCCESS
{
  "success": true,
  "data": {
    "claims": {
        "iat": 1516239022,
        "sub": "1234567890",
        "name": "John Doe"
    },
    "headers": {
        "alg": "HS256",
        "typ": "JWT"
    }
},
  "meta": {
    "tool": "jwt_decode",
    "credits_consumed": 1
  }
}
HTTP/1.1 422 Unprocessable Entity ERROR
{
  "success": false,
  "data": null,
  "error": {
    "code": "validation_error",
    "message": "The given data was invalid."
  }
}

Sign in to try this tool directly from the docs.

Code Examples
Request Example
lightbulb Developer Tip

Credits are deducted before execution. If the upstream tool fails, credits are automatically refunded to your account.