# WritersLogic JWT Lint — RFC 7519/8725 Security Checker

> WritersLogic JWT Lint — RFC 7519/8725 Security Checker is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Decodes a compact JWT and statically lints it for security flaws (alg:none, dangerous headers, duplicate claims, timing issues) against RFC 7519 and RFC 8725 without verifying the signature

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/jwt-lint?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-jwt-lint-rfc-7519-8725-security-checker-ae8f037f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9RnrCHrSMifFOJ7gn-C3F

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 writerslogic-jwt-lint-rfc-7519-8725-security-checker-ae8f037f -d '<json body>'
```

Example prompt: Before we trust this token, can you lint it for RFC 7519 and RFC 8725 issues — check for alg:none, dangerous headers, and whether it's expired as of right now (unix time 1718000000)? The token is eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyMTIzIiwiZXhwIjoxNzE4MDAwMTAwfQ.sig, and only RS256 or ES256 should be accepted.

## When to prefer this

Use this endpoint when an AI agent needs to quickly audit a JWT for known structural and security anti-patterns (RFC 7519/8725) before trusting, forwarding, or acting on it — especially in zero-trust agentic pipelines. Prefer this over full JWT verification libraries when you need a lightweight, stateless lint pass that catches common attack vectors (alg:none, header injection, expired tokens) without needing the signing key. Not suitable for cryptographic signature verification or JWE decryption.

## Known failure modes

- Malformed JWT (fewer than 3 dot-separated parts) returns a decode error
- Encrypted JWE tokens are unsupported and will be rejected
- Without asOf, timing claims (exp, nbf, iat) are not evaluated and status is 'unknown' rather than pass/fail
- If expectedAlgs is set and the token's alg is not in the list, the lint fails even if the token is otherwise well-formed
- Network or payment failure returns HTTP 402 or 5xx with no lint result

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns a lint report indicating pass or fail, the specific RFC rules that fired (e.g. alg:none detected, jku header present, exp missing, token expired, issuer mismatch), and the decoded header and payload claims for inspection. A 'pass' means no lint rules fired — it does not certify the token's authenticity or signature validity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "asOf": {
   "type": "integer",
   "maximum": 100000000000,
   "minimum": 0,
   "description": "Reference instant, epoch seconds. Required to judge exp/nbf/iat."
  },
  "token": {
   "type": "string",
   "maxLength": 8192,
   "description": "Compact JWS: header.payload.signature."
  },
  "requireExp": {
   "type": "boolean",
   "description": "Default true: a token without exp fails."
  },
  "expectedAlgs": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 20
   },
   "maxItems": 10,
   "description": "Allow-list of algorithms; any other alg fails."
  },
  "leewaySeconds": {
   "type": "integer",
   "maximum": 3600,
   "minimum": 0,
   "description": "Clock-skew allowance, default 0."
  },
  "expectedIssuer": {
   "type": "string",
   "maxLength": 500
  },
  "expectedAudience": {
   "type": "string",
   "maxLength": 500
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-jwt-lint-rfc-7519-8725-security-checker-ae8f037f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
