utils.kagurazaka.dev/v1/jwt
Decode a JSON Web Token's header and claims, and say when it was issued, when it expires, whether it has expired and in how many seconds it will. The signature is not verified.
POST
https://utils.kagurazaka.dev/v1/jwtUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://utils.kagurazaka.dev/v1/jwt", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"token":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjMiLCJleHAiOjE3OTI4ODY0MDB9.sig"}),
});
console.log(await res.json());Example input
{
"token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjMiLCJleHAiOjE3OTI4ODY0MDB9.sig"
}More from x402 Utils
- utils.kagurazaka.dev/v1/convertConvert a value between units of length, mass, volume, temperature, speed, area, energy, power, pressure, data size, time and more (mathjs units), such as mi to km, degF to degC, GB to MiB, kWh to J.0.001
- utils.kagurazaka.dev/v1/cronExplain a cron expression in plain English and list its next run times in a time zone (5 or 6 fields, with ranges, steps, L, W and #).0.001
- utils.kagurazaka.dev/v1/dateAdd or subtract an ISO 8601 duration (P1M, P2W, PT36H) to a date, months clamped to the month's end; or count the days, weeks, calendar months, years, seconds and business days (Monday to Friday, less a country's public holidays) between two dates. Also the weekday, ISO week and day of year.0.001
- utils.kagurazaka.dev/v1/diffCompare two texts by lines, words or characters: what was added and removed, and a unified diff for lines.0.001
- utils.kagurazaka.dev/v1/encodeEncode or decode text: base64, base64url, hex, URL (percent) encoding and HTML escaping.0.001
- utils.kagurazaka.dev/v1/hashMD5, SHA-1, SHA-256, SHA-512, SHA3-256 and Keccak-256 (Ethereum) of a text, or of bytes given as hex or base64, as hex and base64.0.001
- utils.kagurazaka.dev/v1/holidaysHolidays of a country (and optionally a state or region) in a year, with date, name and type (public, bank, school, optional, observance), from the date-holidays data for about 200 countries.0.001
- utils.kagurazaka.dev/v1/idGenerate random IDs from a cryptographic source: UUID v4, UUID v7 (time ordered), ULID or nanoid, up to 100 at a time.0.001
- utils.kagurazaka.dev/v1/json-schemaValidate a JSON value against a JSON Schema (draft-07 and 2019-09 keywords, formats such as email, uri, date-time) and list every error with its path. Patterns run on RE2, so a schema cannot stall the check.0.001
- utils.kagurazaka.dev/v1/mathEvaluate an arithmetic expression with 64 significant digits (no floating point surprises): operators, parentheses, powers, roots, logs, trigonometry, percentages, constants, units (5 inch to cm) and simple statistics.0.001
- utils.kagurazaka.dev/v1/phoneCheck whether a phone number is valid and possible, find its country and type (mobile, fixed line, toll free and others), and format it as E.164, international and national (libphonenumber metadata).0.001
- utils.kagurazaka.dev/v1/regexRun a regular expression on a text: every match with its position and capture groups (named too), and the text with a replacement applied. RE2 syntax, which runs in linear time (no lookaround or backreferences).0.001
