# ForgeMesh Secure Token Generator

> ForgeMesh Secure Token Generator is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Generates cryptographically random tokens — UUIDs (batch up to 20), hex strings, or unambiguous alphanumeric secrets — from OS-grade entropy for use as nonces, request IDs, API keys, and temporary passwords.

## Facts

- Endpoint: POST https://x402.forgemesh.io/generate-token
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-secure-token-generator-7d8f4581
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Nr0SsRUEjfIjTpbFSkP0f

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 forgemesh-secure-token-generator-7d8f4581 -d '<json body>'
```

Example prompt: Generate a batch of 10 UUIDs for me to use as primary keys, and also give me a 64-character alphanumeric secret with no ambiguous characters for a new API key.

## When to prefer this

Use this endpoint when you need cryptographically strong random tokens and cannot rely on local entropy sources, or when operating in an environment where you want guaranteed OS-grade randomness without logging. Prefer over local UUID libraries when auditability of the generation method matters, or when generating material for API keys and temporary credentials that require unambiguous character sets.

## Known failure modes

- count exceeds 20 for UUID batch — returns validation error
- length outside 8-128 range — returns validation error
- invalid type value — returns error listing valid options (uuid, hex, alphanumeric)
- payment failure or insufficient USDC balance — x402 payment required error

## How this service works

Secure token generator API: cryptographically random UUIDs (batch up to 20), hex tokens, or unambiguous alphanumeric secrets (length 8-128) from OS-grade entropy. For request ids, nonces, temporary passwords, and API-key material. Generated locally, never logged.

## Output

Returns one or more randomly generated tokens of the requested type: a UUID v4 string or batch array, a hex-encoded random string, or an unambiguous alphanumeric secret. The response includes the generated value(s), type used, and length. Tokens are generated from OS-grade entropy and never logged.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "type": {
   "type": "string",
   "description": "uuid | hex (default) | alphanumeric"
  },
  "count": {
   "type": "string",
   "description": "uuid batch size, max 20"
  },
  "length": {
   "type": "string",
   "description": "8-128, default 32"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "uuid",
  "tokens": [
   "4fa2f1f6-1e6f-4b1c-9c3a-2b8f0e6d4a11",
   "0b8e2c44-7a2e-4f6e-8e11-d2b9c1a0f9e2"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-secure-token-generator-7d8f4581/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
