# agent402.tools JWT Toolkit

> agent402.tools JWT Toolkit is a paid API for AI agents from agent402.tools, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Decode and verify a JWT token in one bundled call — extracts payload claims and validates the signature in a single x402-paid execution.

## Facts

- Endpoint: POST https://agent402.tools/api/skill/jwt-toolkit
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-jwt-toolkit-e01f9cbf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R4rxg4KqC-ksyQ2M74bVo

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 agent402-tools-jwt-toolkit-e01f9cbf -d '<json body>'
```

Example prompt: Decode this JWT and check whether its signature is valid: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

## When to prefer this

Use this endpoint when you need both the decoded claims and signature verification in a single API call rather than calling separate decode and verify endpoints. Ideal for debugging tokens, validating incoming JWTs in automated workflows, or inspecting bearer tokens without setting up local JWT libraries.

## Known failure modes

- Malformed JWT string causes decode failure on first step
- Missing or incorrect secret/public key causes signature verification to fail
- Expired token may decode successfully but fail verification
- Network or payment failure returns no result
- Token with unsupported algorithm may not verify correctly

## How this service works

Bundled execution of the JWT toolkit workflow - Decode and verify a JWT in one pass - see the payload and check the signature. One x402 payment runs 3 underlying tools (jwt-decode, jwt-verify, jwt-sign); partial-success per step.

## Output

Returns the decoded JWT header and payload claims plus a signature verification result, covering all three underlying steps (jwt-decode, jwt-verify, jwt-sign) with partial-success reporting per step so you know exactly which parts succeeded or failed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "token": {
   "type": "string",
   "description": "JWT token string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": {
   "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0In0.xxx"
  },
  "pack": "jwt-toolkit",
  "steps": [
   {
    "ok": true,
    "slug": "jwt-decode",
    "result": {}
   },
   {
    "ok": true,
    "slug": "jwt-verify",
    "result": {}
   },
   {
    "ok": true,
    "slug": "jwt-sign",
    "result": {}
   }
  ],
  "summary": "3/3 steps succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-jwt-toolkit-e01f9cbf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
