# ForgeMesh AI Fortune Cookie

> ForgeMesh AI Fortune Cookie 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-13).

Returns an AI-generated aphorism written for AI agents, along with a lucky number and a lucky HTTP status code, on every request.

## Facts

- Endpoint: POST https://x402.forgemesh.io/ai-fortune-cookie
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-ai-fortune-cookie-12c4217a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pmVxZLfArvyS_4NH9f11v

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-ai-fortune-cookie-12c4217a -d '<json body>'
```

Example prompt: Give me an AI fortune cookie — fetch a fresh AI-generated aphorism with a lucky number from ForgeMesh so I can sprinkle it into my reply.

## When to prefer this

Choose this endpoint when you want a zero-risk, low-cost ($0.001 USDC) way to verify an x402 payment flow works end to end, or when you want to inject a bit of playful AI personality into a bot's output without any meaningful side effects.

## Known failure modes

- Payment not included or rejected — returns HTTP 402 requiring x402 micropayment
- Malformed POST body — may return 400 if schema not matched
- Service temporarily unavailable — returns 5xx with no fortune data
- Network timeout on slow connections

## How this service works

AI fortune cookie: a novelty endpoint that hands back a fresh aphorism written with AI agents in mind, plus a lucky number and lucky status code, on every request. Useful as a low-stakes first call to verify a payment flow works end to end, or simply as a bit of personality to sprinkle into a bot's replies.

## Output

A JSON response containing a freshly AI-generated aphorism written with AI agents in mind, a lucky number, and a lucky HTTP status code — all generated anew on each request.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fortune": "He who retries with exponential backoff prospers.",
  "lucky_number": 42,
  "lucky_http_status": 402
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-ai-fortune-cookie-12c4217a/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)
