# PitchPilot JWT Decode Tool

> PitchPilot JWT Decode Tool is a paid API for AI agents from pitchpilot-outreach-api.pitchpilot-agents.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Decodes a JWT token and returns its header, payload, signature presence, and security flags such as expired, alg_none, weak_alg, and exp_missing.

## Facts

- Endpoint: GET https://pitchpilot-outreach-api.pitchpilot-agents.workers.dev/tools/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/pitchpilot-jwt-decode-tool-ffb3f33a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E__2ZUgSDHEPtXOD32VKO

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 pitchpilot-jwt-decode-tool-ffb3f33a
```

Example prompt: Decode this JWT for me and tell me if it's expired or using a weak algorithm: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwiZXhwIjoxNzM1Njg5NjAwfQ.signature

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call JWT decoder with built-in security flag detection (alg_none, weak_alg, expired, exp_missing) without setting up a library or runtime. Ideal for agents that occasionally need to inspect tokens without a dedicated auth framework, especially within cold-email or outreach automation workflows already using the PitchPilot toolbox.

## Known failure modes

- Malformed or invalid JWT string returns an error response
- Missing required 'token' query parameter causes a 400-level error
- Expired payment or x402 payment failure prevents the call from executing
- JWT with no dot-separated segments fails to parse

## How this service works

Paid micro-utilities for cold-email outreach agents: domain deliverability audits, cold-email grading, template generation, plus a tools toolbox (hashing, JWT decode, IDs, slugs, JSON, regex, crypto prices, domain age, weather). Paid via x402 (USDC on Base).

## Output

Returns a JSON object containing the decoded JWT header (e.g. alg, typ), the payload (all claims including sub and exp), a signature presence indicator, and a flags object with boolean values for alg_none, weak_alg, exp_missing, and expired.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "JWT to decode"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "header",
      "payload",
      "flags"
     ],
     "properties": {
      "flags": {
       "type": "object",
       "description": "alg_none | weak_alg | exp_missing | expired"
      },
      "header": {
       "type": "object"
      },
      "payload": {
       "type": "object"
      },
      "signature": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "flags": {
   "expired": true,
   "alg_none": false,
   "weak_alg": false,
   "exp_missing": false
  },
  "header": {
   "alg": "HS256",
   "typ": "JWT"
  },
  "payload": {
   "exp": 1735689600,
   "sub": "1"
  },
  "signature": {
   "present": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pitchpilot-jwt-decode-tool-ffb3f33a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pitchpilot-outreach-api.pitchpilot-agents.workers.dev](https://www.zero.xyz/host/pitchpilot-outreach-api.pitchpilot-agents.workers.dev/llms.txt)
