# CoCo JWT Decode

> CoCo JWT Decode is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Decodes a JWT token and checks whether it is expired

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/jwt-decode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-jwt-decode-348551a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pV9EaPbKutbmyLUaBSX3j

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 coco-jwt-decode-348551a0
```

Example prompt: Can you check if this JWT token is expired: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call JWT decode and expiry check without setting up a local JWT library. Ideal for AI agents or serverless pipelines that need to quickly validate token status before making authenticated API calls, especially when the x402 micropayment model fits your cost structure.

## Known failure modes

- Malformed or non-JWT string passed as token — likely returns an error or unexpected result
- Missing token query parameter — request may fail validation
- Token with no expiry claim (no 'exp') — expired field behavior may be undefined
- Network timeout or service unavailability — no response returned

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object containing at minimum an 'expired' boolean indicating whether the provided JWT token has passed its expiration time. May also include decoded token claims or header/payload data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "token": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "expired"
     ],
     "properties": {
      "expired": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "expired": false
 },
 "exampleNote": "Illustrative response subset; not a live observation."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-jwt-decode-348551a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
