Generates and decodes JSON Web Tokens (JWT). Create signed tokens with custom payloads or decode existing tokens to inspect their contents.
POST https://jwt-generator-api-x402-689670267582.us-central1.run.app/generate
POST https://jwt-generator-api-x402-689670267582.us-central1.run.app/decode
$0.005 USDC per request (Base L2)
{
"payload": {
"sub": "1234567890",
"name": "John Doe",
"admin": true
},
"secret": "your-secret-key",
"expiresIn": "1h"
}
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
{
"header": {
"alg": "HS256",
"typ": "JWT"
},
"payload": {
"sub": "1234567890",
"name": "John Doe",
"admin": true,
"iat": 1516239022
}
}