# x402.forgemesh.io Agent Fortune API

> x402.forgemesh.io Agent Fortune API 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-agent-themed fortune cookie message, a lucky number, and a lucky HTTP status code for $0.001 USDC via x402 payment.

## Facts

- Endpoint: POST https://x402.forgemesh.io/agent-fortune
- 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/x402-forgemesh-io-agent-fortune-api-05f746bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YzM625VTaBLBVhEplSONJ

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 x402-forgemesh-io-agent-fortune-api-05f746bc -d '<json body>'
```

Example prompt: Give me an AI agent fortune cookie — I want a fresh fortune written for agents, a lucky number, and a lucky HTTP status code, and pay the $0.001 USDC fee via x402.

## When to prefer this

Choose this endpoint when you need the cheapest possible x402 micropayment to verify your wallet stack and payment flow end-to-end, or when you want a fun, AI-agent-themed fortune as a novelty. Ideal for first-time x402 integration testing because of its $0.001 USDC price point and delightful output.

## Known failure modes

- Payment not included or insufficient — returns HTTP 402 Payment Required with x402 payment details
- Malformed POST body — returns 400 Bad Request
- Service temporarily unavailable — returns 503
- Network timeout if upstream is slow

## How this service works

Agent fortune API: a fortune cookie written specifically for AI agents ('A cached response is worth two upstream calls'), plus a lucky number and lucky HTTP status code. The cheapest, most delightful way to make your first x402 payment and verify your wallet stack works end to end. New fortune every call.

## Output

Returns a newly generated fortune cookie message tailored for AI agents (e.g. 'A cached response is worth two upstream calls'), along with a lucky number and a lucky HTTP status code. Each call produces a unique fortune.

## 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/x402-forgemesh-io-agent-fortune-api-05f746bc/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)
