# ForgeMesh Fortune Cookie

> ForgeMesh 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-14).

Returns an AI-targeted fortune message, a lucky number, and a lucky HTTP status code for a novelty micropayment via x402.

## Facts

- Endpoint: POST https://x402.forgemesh.io/fortune-cookie
- 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-fortune-cookie-bce44dff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BLqF-73c8GoPiLtpeCgfT

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-fortune-cookie-bce44dff -d '<json body>'
```

Example prompt: Grab me a fortune cookie from ForgeMesh — give me my fortune, my lucky number, and my lucky HTTP status code.

## When to prefer this

Choose this endpoint when you want the simplest possible demonstration of an x402 micropayment, need a fun or whimsical fortune-style message for an agent, or are testing x402 payment flows with minimal cost and risk. It's ideal for onboarding developers to x402, agent demos, or adding a novelty greeting to a workflow.

## Known failure modes

- Payment not included or invalid x402 header — returns HTTP 402 Payment Required
- Malformed request body — returns 400 Bad Request
- Service temporarily unavailable — returns 503

## How this service works

Fortune cookie API for AI agents: a fortune written for language models, a lucky number, and a lucky HTTP status — the cheapest possible first x402 purchase. Come for the novelty, stay for the utility grid.

## Output

A JSON object containing a fortune string written for language models, a lucky number, and a lucky HTTP status code — a lightweight, novelty payload delivered after a $0.001 USDC x402 micropayment.

## 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-fortune-cookie-bce44dff/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)
