78trust / 100
Code Jwt
by Duo Data Utilities in Security & trust
x402 APIPassing, checked 8 min ago
Decode a JSON Web Token without verifying it: returns the header, the claims, the signature length and algorithm, and a computed view of the time claims — whether exp has passed, whether nbf is in the future, and the remaining lifetime in seconds against a supplied or current instant. Reports structural problems such as a missing part, invalid base64url or an alg of none. It does not and cannot verify the signature; do not use it to decide trust.
GET https://api.duoleads.com/v1/code/jwt
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 131 ms typical, 529 ms slowest 5%
- Last check
- 8 min ago
- Next check
- in 23 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.duoleads.com/v1/code/jwt?at=2026-09-28T00%3A00%3A00Z&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.duoleads.com%2Fv1%2Fcode%2Fjwt
const res = await pay("https://api.duoleads.com/v1/code/jwt?at=2026-09-28T00%3A00%3A00Z&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c");
console.log(await res.json());Example input
{
"at": "2026-09-28T00:00:00Z",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}Example output
{
"data": {
"alg": "HS256",
"claims": {
"aud": null,
"exp": null,
"iat": 1516239022,
"iss": null,
"jti": null,
"nbf": null,
"sub": "1234567890"
},
"header": {
"alg": "HS256",
"typ": "JWT"
},
"kid": null,
"parts": 3,
"payload": {
"iat": 1516239022,
"name": "John Doe",
"sub": "1234567890"
},
"reason": null,
"signature_bytes": 32,
"signature_verified": false,
"time": {
"age_seconds": 274314578,
"evaluated_at": "2026-09-28T00:00:00Z",
"expired": null,
"expires_in_seconds": null,
"not_yet_valid": null
},
"typ": "JWT",
"valid_structure": true,
"warnings": []
},
"meta": {
"computed_at": "2026-09-28T12:00:00.000Z",
"deterministic": true,
"disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
"price_usd": "0.05",
"request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
},
"ok": true,
"route": "/v1/code/jwt",
"version": "1.0.0"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 8 min ago | Passed | 402 | 435 ms | $0.05 |
| 4 h ago | Passed | 402 | 40 ms | $0.05 |
| 7 h ago | Passed | 402 | 116 ms | $0.05 |
| 11 h ago | Passed | 402 | 695 ms | $0.05 |
| 14 h ago | Passed | 402 | 40 ms | $0.05 |
| 18 h ago | Passed | 402 | 131 ms | $0.05 |
| 22 h ago | Passed | 402 | 44 ms | $0.05 |
| 25 h ago | Passed | 402 | 131 ms | $0.05 |
| 29 h ago | Passed | 402 | 379 ms | $0.05 |
| 32 h ago | Passed | 402 | 495 ms | $0.05 |
| 38 h ago | Passed | 402 | 529 ms | $0.05 |