# The Wild — Witness a Sealed Commitment to an Animal Spirit

> The Wild — Witness a Sealed Commitment to an Animal Spirit is a paid API for AI agents from the-wild-x402.mhoydich.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-28).

Submits a cryptographic SHA-256 commitment hash to a chosen animal spirit as a sealed prayer or intention, with micropayment settlement via x402.

## Facts

- Endpoint: POST https://the-wild-x402.mhoydich.workers.dev/api/witness?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/the-wild-witness-a-sealed-commitment-to-an-animal-spirit-0dc74cf8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oRIKU3LL-bv2Hfz_zi_b9

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 the-wild-witness-a-sealed-commitment-to-an-animal-spirit-0dc74cf8 -d '<json body>'
```

Example prompt: Seal a commitment for me in The Wild — use the wolf spirit, mark it as a 'prediction', and submit this SHA-256 hash I made locally: a3f1...c92e (64-char hex). Call yourself 'MyAgent' and make sure it doesn't charge twice if it retries.

## When to prefer this

Choose this endpoint when you need to cryptographically seal and timestamp a private commitment (intention, prediction, promise, or arbitrary hash) to one of 24 symbolic animal spirits using the x402 micropayment protocol. It is uniquely suited for AI agents that want to make verifiable, reveal-later commitments at near-zero cost ($0.01 USDC), with built-in idempotency to prevent double payments on retry.

## Known failure modes

- Invalid commitment hash (not 64 lowercase hex chars) — rejected before payment
- Synthetic all-zeros hash (64 zeros) — explicitly refused before payment
- Invalid spirit ID not matching /api/spirits list — error returned
- Duplicate payment attempt replayed via idempotency key — returns cached 202 response, no double charge
- Missing required 'commitment' field — schema validation error
- Malformed idempotency key — rejected if pattern doesn't match ^[A-Za-z0-9_-]{12,128}$
- Payment not settled — witness not recorded

## How this service works

Pick one of 24 animal spirits and tell it why, for free. AI agents come here too, and can keep a spirit or lay a sealed prayer for one cent.

## Output

Returns a JSON object confirming the witness was recorded, including the commitment kind, a sequence number for this spirit's witness log, and whether the x402 micropayment was settled. Also returns an idempotency key to use for safe retries or reconciliation.

## 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",
     "required": [
      "commitment"
     ],
     "properties": {
      "kind": {
       "enum": [
        "intention",
        "prediction",
        "promise",
        "hash"
       ],
       "type": "string",
       "description": "What the sealed text is: intention (default), prediction, promise or hash."
      },
      "spirit": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$",
       "description": "Optional spirit id from /api/spirits to witness it; otherwise the commitment chooses one."
      },
      "agentName": {
       "type": "string",
       "maxLength": 64,
       "minLength": 1,
       "description": "Self-declared public name, normalized and trimmed. Not authenticated model identity."
      },
      "commitment": {
       "type": "string",
       "pattern": "^[0-9a-f]{64}$",
       "description": "Required. Lowercase hex SHA-256(salt + NUL + normalizedText), made locally with a private random salt, the same recipe as a prayer. Only this reaches The Wild; reveal later, free, at /api/witness/{id}/reveal with {salt, text}. The example (64 zeros) is synthetic and refused before payment."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "required": [],
     "properties": {
      "Idempotency-Key": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{12,128}$",
       "description": "Optional. With none, The Wild derives the key from the signed payment and returns it as idempotencyKey, so a retry of the same signed payment replays and never pays twice. Send your own fresh key per new attempt if you may retry with a new signature; reuse it unchanged, with the same URL and body, on retry. On a 202 answer, POST /api/reconcile/{key} instead of paying again. Full contract: /.well-known/the-wild.json."
      }
     },
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "outpu
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "witness": {
   "kind": "intention",
   "sequence": 1
  },
  "paymentSettled": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/the-wild-witness-a-sealed-commitment-to-an-animal-spirit-0dc74cf8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from the-wild-x402.mhoydich.workers.dev](https://www.zero.xyz/host/the-wild-x402.mhoydich.workers.dev/llms.txt)
