# Treat.rocks Rock Minting API

> Treat.rocks Rock Minting API is a paid API for AI agents from treat.rocks, paid per call via x402, $2/call, status unknown (last checked 2026-10-25).

Mints a digital 'rock' NFT-like collectible on treat.rocks for $2.00 USDC, returning a unique verifiable rock ID

## Facts

- Endpoint: POST https://treat.rocks/api/rock?utm_source=zero.xyz
- Price: $2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/treat-rocks-rock-minting-api-709ac372
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MRMcuQGu1im6nmyoKAoeb

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 treat-rocks-rock-minting-api-709ac372 -d '<json body>'
```

Example prompt: Mint me a rock on treat.rocks — I want to buy one of those $2 USDC digital rock collectibles right now.

## When to prefer this

Choose this endpoint when a user explicitly wants to mint or purchase a treat.rocks digital rock collectible. This is the only endpoint for creating a treat.rocks rock. It is not suitable for lookups, refunds, or general NFT minting on other platforms.

## Known failure modes

- Payment of exactly $2 USDC not provided via x402 protocol — results in 402 Payment Required
- Malformed request body or incorrect bodyType — results in 400 Bad Request
- Network or blockchain congestion causing delayed minting
- Rock already minted for a given input — may return conflict or duplicate error
- Terms of service not accepted — potential rejection of request

## How this service works

A Treat.rocks rock, $2.00 USDC. Fixed price, no refunds once minted, not an investment. Terms: https://treat.rocks/terms - Verify: https://treat.rocks/verify/<id> - Security: https://treat.rocks/SECURITY.md

## Output

Returns a minted rock record including a unique rock ID and a verification URL (https://treat.rocks/verify/<id>) that confirms ownership of the newly created digital rock collectible.

## 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"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/treat-rocks-rock-minting-api-709ac372/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from treat.rocks](https://www.zero.xyz/host/treat.rocks/llms.txt)
