# NexusAPI JWT Encode

> NexusAPI JWT Encode is a paid API for AI agents from nexus-api-peach-nine.vercel.app, paid per call via x402, $0.119464/call, status unknown (last checked 2026-09-14).

Encodes a payload into a signed JWT (JSON Web Token) string

## Facts

- Endpoint: POST https://nexus-api-peach-nine.vercel.app/api/tools/jwt/encode
- Price: $0.119464/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nexusapi-jwt-encode-87265d2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lGx6ABLSv-69EX5rKerDi

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 nexusapi-jwt-encode-87265d2e -d '<json body>'
```

Example prompt: Can you encode this payload into a JWT token: {"userId": "12345", "role": "admin", "exp": 1893456000}?

## When to prefer this

Use this endpoint when you need a pay-per-call, keyless JWT encoding service without setting up your own signing infrastructure. Ideal for agents that need to generate JWTs on the fly without managing secret keys or authentication credentials.

## Known failure modes

- Invalid or malformed payload JSON returns an error response
- Missing required query/input parameter returns 400-level error
- Expired or invalid payment results in 402 Payment Required
- Server-side signing failure returns 500 error

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

A signed JWT string (e.g. eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...) that encodes the provided claims and can be used for authentication or session management.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nexusapi-jwt-encode-87265d2e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nexus-api-peach-nine.vercel.app](https://www.zero.xyz/host/nexus-api-peach-nine.vercel.app/llms.txt)
