# ScriptMasterLabs JWT Decode API

> ScriptMasterLabs JWT Decode API is a paid API for AI agents from acp-x402-discovery.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Decodes and inspects a JWT (JSON Web Token) to extract its header, payload, and claims, paid per-call via x402 USDC on Base.

## Facts

- Endpoint: GET https://acp-x402-discovery.onrender.com/x402/jwt-decode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-jwt-decode-api-7c50bf28
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1XqIolMVxwPKTPiGpyRQ6

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability scriptmasterlabs-jwt-decode-api-7c50bf28
```

Example prompt: Can you decode this JWT for me and show me the claims inside it: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-setup JWT decoding utility settled in USDC via x402, especially within crypto-native or agentic workflows already using the ScriptMasterLabs x402 API suite. Useful for one-off token inspection without standing up your own decode library, or when operating in a context where micropayment-settled APIs are preferred over subscription-gated services.

## Known failure modes

- Malformed or non-JWT string returns a parsing error
- Payment failure via x402 results in 402 response before decode occurs
- Empty or missing token parameter returns a 400 bad request
- Network timeout from the Render-hosted service may cause intermittent failures
- Token with encrypted payload (JWE) may not be fully decodable without a key

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

Returns the decoded JWT structure including the header (algorithm, token type), payload (all claims such as sub, iat, exp, email, roles), and potentially a verification status. The response is a JSON object with parsed fields from the token's base64url-encoded segments.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-jwt-decode-api-7c50bf28/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-discovery.onrender.com](https://www.zero.xyz/host/acp-x402-discovery.onrender.com/llms.txt)
