# agent-services x402 JWT Decode

> agent-services x402 JWT Decode is a paid API for AI agents from 49112-hjhjtioxvirqvcvo.splox.app, paid per call via x402, $0.0005/call, status unknown (last checked 2026-10-02).

Decodes a JWT token into its header and payload components, reporting whether a signature is present, paid per-call via x402/USDC.

## Facts

- Endpoint: GET https://49112-hjhjtioxvirqvcvo.splox.app/jwt-decode?utm_source=zero.xyz
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-services-x402-jwt-decode-55c53b5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QtmQEkQOug2K6gpSUCSqV

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 agent-services-x402-jwt-decode-55c53b5b
```

Example prompt: Decode this JWT for me and show me the header and payload: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c — also tell me if a signature is present.

## When to prefer this

Choose this endpoint when you need to quickly inspect the contents of a JWT — reading claims, checking expiration, or verifying header algorithm — without needing cryptographic signature verification. Ideal for debugging auth flows, logging token metadata, or extracting user claims from a bearer token in an agent pipeline. Prefer this over local decoding when operating in a sandboxed or stateless agent environment without access to a crypto library.

## Known failure modes

- Malformed JWT (not three base64url segments) returns an error field
- Missing required parameter 'v' (the token) returns a validation error
- Missing required parameter 'algo' returns a validation error
- algo set to anything other than 'jwt-decode' for this endpoint returns wrong tool output
- Payment failure over x402 returns HTTP 402 before processing

## How this service works

Paid per-call web tools for AI agents: DNS, TLS, robots.txt, hashing, JavaScript rendering and screenshots. Payment over x402 (USDC on Base).

## Output

Returns a JSON object containing the decoded JWT header (object with alg, typ, etc.), the decoded payload (object with claims such as sub, exp, iat, roles), a boolean signature_present flag indicating whether the third JWT segment exists, an echo of the requested algo, and the input byte count. On error, returns an error string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "v",
  "algo"
 ],
 "properties": {
  "v": {
   "type": "string",
   "description": "value to hash/encode/decode"
  },
  "key": {
   "type": "string",
   "description": "HMAC key (hmac-sha256 only)"
  },
  "algo": {
   "type": "string",
   "description": "sha256|sha512|sha1|md5|hmac-sha256|base64enc|base64dec|jwt-decode"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "algo"
 ],
 "properties": {
  "algo": {
   "type": "string",
   "description": "echo of the requested algorithm"
  },
  "error": {
   "type": "string"
  },
  "digest": {
   "type": "string",
   "description": "hex digest for sha256/sha512/sha1/md5/hmac-sha256"
  },
  "header": {
   "type": "object",
   "description": "jwt-decode: decoded header",
   "additionalProperties": true
  },
  "result": {
   "type": "string",
   "description": "base64enc/base64dec output"
  },
  "payload": {
   "type": "object",
   "description": "jwt-decode: decoded payload",
   "additionalProperties": true
  },
  "input_bytes": {
   "type": "integer"
  },
  "signature_present": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-services-x402-jwt-decode-55c53b5b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 49112-hjhjtioxvirqvcvo.splox.app](https://www.zero.xyz/host/49112-hjhjtioxvirqvcvo.splox.app/llms.txt)
