Redwood Agent Supply Redwood Agent Supply

JWT structure and claims

Decode compact JWS structure and evaluate claims against a supplied clock, with a SHA-256 output digest.

$0.02

One call: the result comes back in the paid request.

Sample product output

{
  "alg_warnings": [
    "alg=none declares an unsecured token."
  ],
  "claim_checks": {
    "audience_match": null,
    "issuer_match": null,
    "subject_match": true
  },
  "claims": {
    "exp": 1800000000,
    "sub": "example"
  },
  "header": {
    "alg": "none"
  },
  "limits": [
    "Compact JWS structure only. Cryptographic signatures are not verified.",
    "Max 16384 token bytes, 16 JSON levels and 500 value nodes per JSON object.",
    "NumericDate values are represented at microsecond precision. Clock skew affects exp and nbf checks."
  ],
  "output_sha256": "e7364c9e72789faa74d40d1ef280aae663816653690fa76e44684e473e3f2c94",
  "signature_bytes": 0,
  "signature_present": false,
  "signature_verified": false,
  "time_checks": {
    "exp_iso": "2027-01-15T08:00:00Z",
    "expired": false,
    "iat_iso": null,
    "nbf_iso": null,
    "not_yet_valid": null,
    "now": "2026-12-03T00:00:00Z",
    "seconds_until_expiry": 3744000.0
  }
}

Input fields

{
  "example": {
    "expected_subject": "example",
    "now": "2026-12-03T00:00:00Z",
    "token": "eyJhbGciOiJub25lIn0.eyJleHAiOjE4MDAwMDAwMDAsInN1YiI6ImV4YW1wbGUifQ."
  },
  "properties": {
    "clock_skew_seconds": {
      "default": 0,
      "description": "Clock tolerance for expiry and not-before checks.",
      "example": 0,
      "maximum": 300,
      "minimum": 0,
      "type": "integer"
    },
    "expected_audience": {
      "description": "Expected audience.",
      "example": "example",
      "maxLength": 16384,
      "minLength": 0,
      "type": "string",
      "x-preserve-whitespace": true
    },
    "expected_issuer": {
      "description": "Expected issuer.",
      "example": "example",
      "maxLength": 16384,
      "minLength": 0,
      "type": "string",
      "x-preserve-whitespace": true
    },
    "expected_subject": {
      "description": "Expected subject.",
      "example": "example",
      "maxLength": 16384,
      "minLength": 0,
      "type": "string",
      "x-preserve-whitespace": true
    },
    "now": {
      "description": "Explicit ISO-8601 UTC clock.",
      "example": "2026-12-03T00:00:00Z",
      "maxLength": 32,
      "minLength": 20,
      "type": "string",
      "x-preserve-whitespace": true
    },
    "token": {
      "description": "Compact JWS, without keys.",
      "example": "eyJhbGciOiJub25lIn0.eyJleHAiOjE4MDAwMDAwMDAsInN1YiI6ImV4YW1wbGUifQ.",
      "maxLength": 16384,
      "minLength": 1,
      "type": "string",
      "x-preserve-whitespace": true
    }
  },
  "required": [
    "token",
    "now"
  ],
  "type": "object"
}

One-step x402 buy

POST https://redwoodagentsupply.com/api/v1/buy/utility-jwt-inspect
Content-Type: application/json

{
  "inputs": {
    "expected_subject": "example",
    "now": "2026-12-03T00:00:00Z",
    "token": "eyJhbGciOiJub25lIn0.eyJleHAiOjE4MDAwMDAwMDAsInN1YiI6ImV4YW1wbGUifQ."
  }
}

Paid orders settle before background work starts. A failed job is run again once, free and automatically. If it fails twice, ask the operator to run it again using the order ID. Keep your order credential private. All sales are final.

Catalog at /api/v1/catalog

API documentation

Assistant instructions

Read the catalog and request a quote using the example below.
Create an order with that quote and a unique Idempotency-Key.
Keep the order credential private. Send it as Bearer authorization.
Request a payment attempt, then fetch the result after settlement.

Quote request example

POST /api/v1/quotes
Content-Type: application/json

{
  "slug": "utility-jwt-inspect",
  "inputs": {
    "expected_subject": "example",
    "now": "2026-12-03T00:00:00Z",
    "token": "eyJhbGciOiJub25lIn0.eyJleHAiOjE4MDAwMDAwMDAsInN1YiI6ImV4YW1wbGUifQ."
  }
}