Data tools / Agent memory and small utilities

JWT decode API: header, payload and expiry

Use when you need to inspect a JWT without a key: decoded header and payload, alg, kid, iat/nbf/exp as ISO times and whether it is expired now. Decode only: the signature is never verified and verified is always false. $0.001 per call (USDC or USDT). Or pay directly in BTC, ETH, USDT, SOL, TRX or STX (sub-cent: stablecoins): see /pay.

Price and access

Request

curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/util/jwt-decode?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ2VudC0xIiwiZXhwIjoxNzkyMzI4NDAwfQ.sig'
ParameterRequiredWhat it is
tokenyesJWT header.payload.signature

Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.

Example answer

{
  "header": {
    "alg": "HS256",
    "typ": "JWT"
  },
  "payload": {
    "sub": "agent-1",
    "exp": 1792328400
  },
  "alg": "HS256",
  "typ": "JWT",
  "kid": null,
  "signature_present": true,
  "signature_b64url": "sig",
  "issued_at": null,
  "not_before": null,
  "expires_at": "2026-10-18T13:00:00.000Z",
  "expired": true,
  "not_yet_valid": null,
  "verified": false,
  "as_of": "2026-10-19T12:00:00.000Z",
  "note": "Decoded only: the signature is NOT verified (P0 holds no keys), so claims may be forged or expired. Verify with the issuer's key before trusting them."
}

Free sample, no payment: /util/jwt-decode/sample. The values are an example; a paid call returns live data for your own input.

Use it from an AI assistant (MCP)

Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/agent-memory-utils, tool util_jwt_decode. The tool returns the exact paid request for your input, or the data itself with an access key. All tools on one server: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp.

Related tools

Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools