x402

JWT Decode (x402)

Decode a JWT token without verification. Returns header, payload, claims, expiry status, and time until expiry. Algorithmic.

get/x402/v2/jwt-decode

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/jwt-decode
  • Auth: none required

Query parameters

tokenstring required

Response

Success

headerobject
payloadobject
algorithmstring
expires_atstring
is_expiredboolean

Example response

{
  "claims": [
    "sub"
  ],
  "header": {
    "alg": "none"
  },
  "issuer": null,
  "payload": {
    "sub": "test"
  },
  "subject": "test",
  "audience": null,
  "algorithm": "none",
  "issued_at": null,
  "expires_at": null,
  "is_expired": null,
  "not_before": null,
  "token_type": null,
  "time_until_expiry_seconds": null
}

Changes

No recorded changes to this operation across all 1 revision of this API.