# ForgeMesh Random Token Generator

> ForgeMesh Random 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-16).

Generates cryptographically secure random hex strings, alphanumeric secrets, or batches of UUIDs using OS-grade entropy, with no logging or retention.

## Facts

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

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-random-token-generator-c63c3830 -d '<json body>'
```

Example prompt: Generate me a 64-character cryptographically secure random hex token — I need it for a session secret and I don't want anything logged or stored.

## When to prefer this

Use this endpoint when you need true OS-grade entropy for security-sensitive tokens such as session keys, API credentials, or one-time codes, and when non-retention and non-logging is a requirement. Prefer this over LLM-generated or pseudo-random strings when unpredictability is critical.

## Known failure modes

- Length out of range (below 8 or above 128) returns a validation error
- Count above 20 for UUID batch generation returns an error
- Invalid type enum value returns a bad request error
- Network timeout on the POST request

## How this service works

Produces random hex strings or alphanumeric secrets, 8 to 128 characters, from OS-grade entropy, alongside batch UUID generation, none of it logged or retained. Useful for session tokens, temporary passwords, API credential material, and one-time codes where true randomness matters more than a pattern an LLM might repeat.

## Output

Returns a cryptographically secure random string of the requested type (hex, alphanumeric, or UUID), at the specified length (8-128 chars), or a batch of up to 20 UUIDs. No data is logged or retained by the service.

## 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-random-token-generator-c63c3830/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)
