A

Artifact Inspector · JWT

by Artifact Inspector

POSTBaseArbitrumPolygon

$0.005

per call · USD Coin on Base

JSON Web Token (JWT) decoder — parse an unverified compact JWS header and claims and evaluate advisory NumericDate times without signature verification or URL fetching.

Endpoint

POST https://artifact-inspector.use.x402atlas.com/jwt

3

Calls / 30d

2

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://artifact-inspector.use.x402atlas.com/jwt", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "at_time": "2024-06-01T12:00:00Z",
    "token": "eyJhbGciOiJIUzI1NiIsImtpZCI6InN5bnRoZXRpYy1leGFtcGxlIiwidHlwIjoiSldUIn0.eyJhdWQiOiJhcnRpZmFjdC1pbnNwZWN0b3IiLCJleHAiOjE3MTcyODY0MDAsImlhdCI6MTcxNzIwMDAwMCwiaXNzIjoieDQwMkF0bGFzIHN5bnRoZXRpYyIsIm5iZiI6MTcxNzIwMDAwMCwic3ViIjoiYWdlbnQtZGVtbyJ9.c3ludGhldGljLW5vdC1hLXJlYWwtc2lnbmF0dXJl"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://artifact-inspector.use.x402atlas.com/jwt" \
  -H "Content-Type: application/json" \
  -d '{"at_time":"2024-06-01T12:00:00Z","token":"eyJhbGciOiJIUzI1NiIsImtpZCI6InN5bnRoZXRpYy1leGFtcGxlIiwidHlwIjoiSldUIn0.eyJhdWQiOiJhcnRpZmFjdC1pbnNwZWN0b3IiLCJleHAiOjE3MTcyODY0MDAsImlhdCI6MTcxNzIwMDAwMCwiaXNzIjoieDQwMkF0bGFzIHN5bnRoZXRpYyIsIm5iZiI6MTcxNzIwMDAwMCwic3ViIjoiYWdlbnQtZGVtbyJ9.c3ludGhldGljLW5vdC1hLXJlYWwtc2lnbmF0dXJl"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "algorithm_version": "jwt-unverified-decode-v1",
  "at_time": "2024-06-01T12:00:00Z",
  "claims": {
    "aud": "artifact-inspector",
    "exp": 1717286400,
    "iat": 1717200000,
    "iss": "x402Atlas synthetic",
    "nbf": 1717200000,
    "sub": "agent-demo"
  },
  "header": {
    "alg": "HS256",
    "kid": "synthetic-example",
    "typ": "JWT"
  },
  "operation": "jwt-decode",
  "signature_bytes": 30,
  "signature_status": "not_verified",
  "temporal": {
    "expiration": {
      "status": "valid",
      "value": 1717286400
    },
    "issued_at": {
      "status": "past_or_present",
      "value": 1717200000
    },
    "not_before": {
      "status": "active",
      "value": 1717200000
    }
  },
  "warnings": [
    "JWT signature and claims were decoded but not verified; treat all values as untrusted."
  ]
}

Payment details

Pay to0x8c128f1ee62bb5e47867cfbae2ad89be325df1b2
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from Artifact Inspector & similar services